Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to check if 2 losses are on the same day

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

    how to check if 2 losses are on the same day

    Hi

    how would one program this condition

    IF last 2 trades are on same day AND both are losses THEN dont trade until next day

    Thanks

    #2
    We have a sample working with the Performance class for this, it would only need a slight modification for your case -

    Comment


      #3
      Thanks for the reply

      3 questions :

      1) Performance.AllTrades.Count : does this count a trade that has entry at a prior date and exit today ?

      2) how do I express the "in the same day" condition. What is the best/simplest way to do it in NT ?

      3) What is the difference between Performance.Alltrades and Performance.RealtimeTrades ? aren't all trades in a working (live) strategy real time trades ?

      Thanks

      Comment


        #4
        1. Yes, all trades includes historical and realtime trades done by the strategy.

        2. Please take a look at the sample code provided, if you have a session break save the count to know at which point the transition to today occured.

        3. AllTrades are historical and realtime trades, realtime trades only the ones taken as the strategy was running live.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X