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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    637 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    571 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X