Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Switch Buy/Sell Stop Order for Channel Breakout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Switch Buy/Sell Stop Order for Channel Breakout

    I have done a lot of searching in the forums to try and find a decent solution to this problem.

    I have a channel that I want to buy or sell a breakout via a market stop order. Due to the restriction of not being able to have two simultaneous opposing orders with NT 6.5 (hope v7 "fixes" this), I am trying to monitor the recent price action to either submit the appropriate closest stop order.

    The problem is when a single bar (for example on a 1min chart) spans a large range and effectively triggers both conditions to submit the buy/sell stop orders.

    I believe in real-time, just monitoring Close[0] with CalculateOnBarClose = false; will allow the strategy to execute fine as it will cancel/replace the orders as needed should price bounce around before filling. However, I am concerned with backtesting this strategy first to get a feel for how robust it is and if there are any tweaks I can make to it. So far I cannot find a way during backtesting to determine how to allow the appropriate buy/sell stop order to get submitted in time in situations where a single bar may span from one side of the channel to the other and go through where the buy/sell stop order should be. Are there any good examples or resources on how I can better improve my backtesting results with this type strategy?

    #2
    Welcome to our support forums PrimWell_Chris - I think the best approach would be to recreate your channel on a tick based chart to 'split up' the wide range bar and then using the concept introduced in this reference sample for intrabar fill simulation - http://www.ninjatrader-support2.com/...ead.php?t=6652
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Excellent. I was wondering if going to a Tick Chart was the correct move to make. Thank you

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,404 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      95 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      160 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      9 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X