Register Login
Forums    February 9, 2012
TradersStudio Forums
order type for ChannelBreakout
Last Post 06-02-2010 12:48 AM by mur ang. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
steven chen
New Member
New Member
Posts:5

--
06-01-2010 09:42 AM
    Hi:

    Testing Channel Breakout code based on the close prices (not intra-day). Have this code below:
    Buy("ChanBuy",1,Highest(Close,LLen,0),stop,Day)
    Sell("ChanSell",1,Lowest(Close,LLen,0),stop,Day)

    The above works with "stop" order type (it generates a stop-and-reversal trades).
    However my intent is to trade this at the next day open price after the signal, so I replace "stop" with "market" order type. But I then get a tons of trades, almost every day. What did I do wrong here? Thanks.
    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    06-02-2010 12:48 AM
    If Highest(Close,LLen,0)=Close then Buy("",1,0,market,day) If Lowest(Close,LLen,0)=Close then sell("",1,0,market,day)
    You are not authorized to post a reply.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement