Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Theoretical question about inserting a backtest feature inside an algorithm

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

    Theoretical question about inserting a backtest feature inside an algorithm

    Hi,
    I am interested to know if it is possible (in theory) to include a logic/code inside an algorithm, that could conduct a backtest for the given day and update some of the parameters that are set as variable based on the optimum results from that same backtest.

    Something like a walk forward that would be updating itself as a background process of the algorithm and to update the variables.

    I know it sounds weird, but if you think of it...it is a pretty sound logic. Especially for scalpers. Having the flexibility to fine tune itself for the given day, could be a very neat feature.

    Let me know what you think.

    Thanks.

    #2
    Hello,

    Thank you for the question.

    Yes you could write your own logic that determines values that are reset throughout the day, this would essentially just be logic that resets variables in your script based on what your logic is returning.

    This could be run based on a specific time of day, OnBarUpdate, or various other ways.

    Please let me know if I may be of additional assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, Yesterday, 02:41 AM
    0 responses
    14 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    22 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X