Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: Enter on next open

You are not authorized to post a reply.   
Author Messages
manfred
Posts:2

05-19-2008 7:47 AM Alert 

Hi,

I try to make TS buy the next bar's open when the current close is higher than the highest high of x bars. Kind of a channel breakout on close. I have

If MarketPosition <> 1 And Close > HighestHigh(CBO, 0) Then
        Buy("BuyEnt",1,0,Market,Day)
    End If

Where CBO is the length in days of the channel.

Always 0 trades. No doubt a newbie issue but I am new to Basic. Some help would be very nice.

manfred
Posts:2

05-19-2008 1:36 PM Alert 
Found what was wrong. Overlooked the offset. Set it to 1 and now it works.
You are not authorized to post a reply.



ActiveForums 3.6
TradersStudio® Copyright 2004-2008 All Rights Reserved   |  Privacy Statement  |  Terms Of Use