Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy not executing due to backtest data

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

    Strategy not executing due to backtest data

    Hi,

    Im sure this is simple but couldnt find the answer

    When I enable a strategy on a chart it paints on the calculated historical performance of the strategy based on what would have happened.

    It currently says the strategy would have gone long 5 days ago.

    The issue is that if I now want to start the strategy for real it wont go long as I have entriesperdirection set to 1 and the fake entry from 5 days ago seems to be stopping it.

    If I set Tools->Options->Strategies->Immediately submit live working historical orders it will indeed submit an order.

    My concern is though - I dont want it to submit the order unless the strategy is currently in a GO LONG situation, regardless of it thinks it should be long from 5 days ago.


    Or perhaps another way of asking - how do I set the strategy to be real time only and ignore all fake historical actions?

    #2
    spinalwiz, to execute the first real time generated entry signal please work with 'WaitUntilFlat' as option to start your strategy realtime.

    To start processing any trade triggering conditions only if you start the strategy live on realtime data, add this to the OnBarUpdate() start -

    if (Historical) return;

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    66 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    149 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    99 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    286 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X