Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy/Backtest

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

    Strategy/Backtest

    Is it possible to code a backtest to be performed within a strategy (i.e. OnBarUpdate, etc.)? Is it technically feasible? For example, after each daily bar, I'd like to run a backtest optimization to modify a user variable x.

    Thanks,
    Tom

    #2
    Hello eleven,

    Thanks for your post.

    There are no documented or supported ways to run a Strategy Analyzer backtest within a strategy itself and modify a variable in the strategy based on that backtest.

    You would need to run a backtest on the strategy using the Strategy Analyzer and then change the values of your strategy based on the results of that backtest.

    That said, we are tracking interest in this feature in an internal ticket. I have added your vote to the feature request.

    The internal tracking number for your feature request is SFT-4391. Please reference this internal tracking number when contacting Platform Support if you ever have questions regarding this feature request.

    When a feature request is implemented, you'll find a description of the new feature in the release notes:
    Let us know if we may assist further.
    Last edited by NinjaTrader_BrandonH; 01-13-2022, 08:24 AM.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X