|
|
|
|
|||||||
| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Buying on First Monday Open and Exit on Friday
Wanted to buy on the first monday open on the first week and exit on the friday (Same week), the buy always on the tuesday open since TS2000i only allow this bar on close (monday close or next bar open (tuesday open).
Using the closeW (1) and OpenW(1) has the above problem. Tried to use closeW(5) and OpenW(5) to generate signal on monday open. This work but if friday is holiday then there is no signal for the coming week. Anyone knows how to code this correctly? |
|
||||
|
Re: Buying on First Monday Open and Exit on Friday
im not sure if every worth is supported in your software, im using TradeSignal5 equila
if DayOfWeek = 2 then buy this bar on open; if DayOfWeek = 5 this ExitLong this bar on close; //ExitLong could be replaced by Sell |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webinar Friday | Infinity_Tom | Infinity AT Forum | 0 | 02-15-2008 09:02 AM |
| {REQ} help with an exit strategy | jjthetrader | Coding Forum | 4 | 09-22-2007 01:06 PM |
| Possible Exit Methods | brownsfan019 | Technical Analysis | 2 | 05-08-2007 05:37 PM |
| Friday, April 6th is a US holiday | brownsfan019 | Market Analysis | 6 | 05-06-2007 11:30 AM |
| Tough Friday Trading | Soultrader | Market Analysis | 0 | 09-29-2006 11:15 PM |
|
|
|