Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-06-2008, 12:37 AM   #1

Join Date: Jan 2008
Posts: 3
Ignore this user

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?
johni is offline  
Reply With Quote
Old 05-22-2008, 06:43 AM   #2

Join Date: May 2008
Location: amsterdam
Posts: 114
Ignore this user

Thanks: 25
Thanked 39 Times in 30 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
flyingdutchmen is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Exit Methods brownsfan019 Technical Analysis 6 08-27-2011 07:50 PM
{REQ} help with an exit strategy jjthetrader Coding Forum 4 09-22-2007 01:06 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 11:45 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.