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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    115 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    163 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    83 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    127 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    87 views
    0 likes
    Last Post PaulMohn  
    Working...
    X