Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Execute order on same candle

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

    Execute order on same candle

    Is it possible to tell nijatrader to execute a long order on a trade without waiting for the bar to close . All I want nijatrader to do is; if a candle reaches 20 ticks upwards ( from low to high) to go long right away. Not on the second candle.

    #2
    Originally posted by wallsteetking View Post
    Is it possible to tell nijatrader to execute a long order on a trade without waiting for the bar to close . All I want nijatrader to do is; if a candle reaches 20 ticks upwards ( from low to high) to go long right away. Not on the second candle.
    You would have to set CalculateOnBarClose to false. If you do so, remember the load that it puts on your computer resources.

    Comment


      #3
      I tried that did not work

      I tried that did not work see picture
      Attached Files

      Comment


        #4
        Hello,

        This will work in live. However is this a backtest or historical processing? If thats the case then there is no way to change this. NinjaTrader will always open a position at the open price of the next bar as we felt this is the best way for more realistic backtesting.

        You must always run COBC = True on Historical.

        What you can do however is do whats known as adding granularity to your backtest if you need more granularity.

        Please see here on how to do this.

        You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by


        Let me know if I can be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kujista, Today, 05:44 AM
        0 responses
        6 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        8 views
        0 likes
        Last Post ZenCortexCLICK  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        172 responses
        2,281 views
        0 likes
        Last Post sidlercom80  
        Started by Irukandji, Yesterday, 02:53 AM
        2 responses
        18 views
        0 likes
        Last Post Irukandji  
        Started by adeelshahzad, Today, 03:54 AM
        0 responses
        11 views
        0 likes
        Last Post adeelshahzad  
        Working...
        X