Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Strategy Backtest when balance = 0

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

    Stop Strategy Backtest when balance = 0

    Is it possible for the Backtest to stop when loses are equal to the balance left? I did some examples for myself and after 4 trades the cumulative loses is equal to my account amount, therefore the strategy should stop. But it doesn't. Any way to do it?

    thanks

    #2
    Hello,

    Thank you for the post.

    We have a few example on halting a strategy in the Reference samples here on the forum: http://ninjatrader.com/support/forum...ead.php?t=4804

    These would likely aid in preventing further trading, in regard to the account amount you could see this example which includes accessing PnL information: http://ninjatrader.com/support/forum...ead.php?t=4084

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

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