Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

alltrades cumulative profits

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

    alltrades cumulative profits

    I ve had problems whe using
    Performance.AllTrades.TradesPerformance.Currency.C umProfit

    As I see, when running backtesting the result changes from real trade.

    What I want is : stop trading (for a day) in case the result in a particular instrument is lower X.

    on first bar of the day
    priorTradesCumProfit = Performance.AllTrades.TradesPerformance.Currency.C umProfit;

    And then I test if ( Performance.AllTrades.TradesPerformance.Currency.C umProfit -priorTradesCumProfit > X) and if not the system does not trade.
    Am I doing it right?
    does it work on backtesting?

    #2
    Hello Dafonseca,

    Thank you for your post.

    Your logic looks fine, however, what does the code look like in how you are testing these conditions?

    Have you tried following the sample below -
    http://www.ninjatrader.com/support/f...ead.php?t=4084

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X