Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Small backtests while running live strategies

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

    Small backtests while running live strategies

    Hi folks:

    I use:

    [CODE]if (Historical) return;CODE]

    when running live strategies (all of them go green immediately without having to wait for yellow strats to turn green) to ignore the immediate last signal if it is in the middle of a trade.

    However, when that is on, that strategy will not backtest while it is like that.

    I am wondering, if I activate the strategies with it ON and then once they are enabled, go into the code and turn the [CODE]if (Historical) return;CODE] OFF with [CODE]//if (Historical) return;CODE] will that effect the currently running strategies when they were enabled when [CODE]if (Historical) return;CODE] was ON?

    I have be playing with it and it appears to be ok and I remember having discussions before how when the strategies are loaded and enabled then changes to the code would not effect the enable ones (from the past I remember). I just want to be sure and get your take on it.

    So, I would like to be sure I can do this so that I can effectively run short and brief backtests using that method if I ever so choose to do it in the future (there would not be real heavy backtesting)...



    Greg

    #2
    Hi Greg, your understanding would be correct - the enabled and running ones would not be updated if you compiled new changes in, starting a new instance then would be needed. However I would just make a copy of the script and have two version then or an input where you can set as desired for your current worked with instance...

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    650 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X