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 NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    127 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X