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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    19 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    60 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    43 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X