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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X