Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buy on the open

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

    Buy on the open

    I am trying to buy on the open of the daily bar if a condition exists, however in backtest the strategy is getting in on the next bars open regardless of calculateonbarclose true or false.

    Thanks.

    #2
    Hello brucelevy,

    Thanks for your post.

    In backtesting the bars do not process all the ticks that made up the bar thus your strategy will only execute once at the end of the bar regardless of the CalculateOnBarClose setting.

    You may want to modify your strategy for backtesting purposes, please see: http://ninjatrader.com/support/forum...ead.php?t=6652

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    157 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    91 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    143 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    131 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X