Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Configuring "Backtest" Account

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

    Configuring "Backtest" Account

    I'm trying to build a strategy that works within the limits of my live trading account. Testing this is difficult because the backtest account has 100k which performs overly liberal. Is there a way to modify this account to reflect reality?

    #2
    Hello Skifree,

    Unfortunately, backtests will not use the account cash value at all and will not have limits.

    You would need to code logic into the script that stops trading after the loss exceeds the amount.

    This example provides some sample code of how to calculate the PnL.
    Hello, I've updated the DailyLossLimit and DailyLosLimitMultiTrade examples that were posted on the forum for NinjaTrader 7 for NinjaTrader 8. These are often requested and I felt they are good examples to have for NT8. DailyLossLimitExample_NT7 - http://ninjatrader.com/support/forum...241#post451241 (http://ninjatrader
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    77 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X