Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Tell when Strategy Lost a Trade?

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

    How to Tell when Strategy Lost a Trade?

    hey guys, I'm trying to figure out the Logic to tell my strategy "IF it Loses 2 trades in a Row" Cancel Strategy. I been searching through the Guide but can't find it.

    Can someone help.

    1. How do I write IF the Trade LOSS? I don't know if the GetPNL works this way. So how can I make it that IF my Stop LOSS is hit. I tried (PositionMarketPosition) but that's a bust.

    2. How do I write something for the STRATEGY to CANCEL Existing Orders. (maybe "return;"

    any Ideas?

    #2
    ginx10k, would suggest you check into the approach outlined in this sample here - it will help to pause strategy execution for the session after x consecutive losers.

    Comment


      #3
      Thanks

      That's exactly what I was looking for. Thanks Bertrand

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      59 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      283 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X