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 cmoran13, Yesterday, 01:02 PM
    0 responses
    29 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    21 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    160 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    95 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    148 views
    2 likes
    Last Post CaptainJack  
    Working...
    X