Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

trijunky

Members
  • Content Count

    1
  • Joined

  • Last visited

Personal Information

  • First Name
    Brent
  • Last Name
    Popadich
  • Country
    United States

Trading Information

  • Vendor
    No
  1. Currently using TS 9.0. I have the entry strategy worked out but am clueless on how to get my exit strategy to work (I know enough Easylanguage to be dangerous). i need a way to exit intrabar the moment the price touches the midline of the Bollinger Band. I only know how to sell on candle close or next candle open. It goes something like this: Inputs: Length( 20 ), Price( Close ), NumDevsDn( 2 ) ; Variables: LowerBand( 0 ), MidLine ( 0 ) , CandleClose( 0 ), CandleOpen( 0 ), CandleHigh( 0 ), CandleLow( 0 ); CandleOpen = Open; CandleClose = Close; CandleHigh = High; CandleLow = Low; LowerBand = BollingerBand( BollingerPrice, Length, -NumDevsDn ) ; {entry criteria} if CandleLow < LowerBand And CandleClose > LowerBand And CandleClose < MidLine then Buy next bar market {exit criteria long} {THIS IS WHERE I NEED HELP! if marketposition = long and price touches midline then sell(sell the moment price touches midline). Else if candleclose < lowerband then sell next bar at market;
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.