Buying on First Monday Open and Exit on Friday - Traders Laboratory

Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 12:37 AM
johni has no status.

 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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?

Reply With Quote
  #2 (permalink)  
Old 05-22-2008, 06:43 AM
flyingdutchmen has no status.

 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -4. The time now is 01:10 AM.

 

 
 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76