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

exit on entry candle?

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

    exit on entry candle?

    How could you tell builder to exit at the end of candle you got in at?
    I'm thinking of the BarTimer indicator but its not already set up for that.
    Or BarsSinceEntryExecution > 1 but that'll exit late.
    Thanks

    #2
    maybe I have to do it via Multi Time Frame (MTF)
    Like if my strategy is running on a 5min candle then
    I need to only allow it for 5 1min candles and exit on the 5th?

    Comment


      #3
      Hello ezrollin,

      Thank you for your post.

      Not a great way to do that with the Strategy Builder - the best you could really do is run the strategy OnBarClose, then check if you're in a position when the bar closes and send an order, but that order would be on the next bar, not on the bar you entered on. Adding a 1 minute added series wouldn't really help since you can't route orders to that series using the Strategy Builder, but that would be an option if you unlocked the code and manually created that logic.

      Please let us know if we may be of further assistance to you.
      Kate W.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      20 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X