Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Settrailstop not working in MarketReplay ?

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

    Settrailstop not working in MarketReplay ?

    Trailing stop does not work on Market replay ?

    My code is :
    if ( Position.MarketPosition == MarketPosition.Long
    && Close[0] >= Position.AvgPrice + DELTA * TickSize)
    { SetTrailStop("",CalculationMode.Ticks, ZZTS,false);}

    #2
    It should work. No reason why it would not. Market Replay is just like live data. No difference. You need to call Set() methods before you have made your entry for them to take effect. You cannot wait for position = Long to call the Set() method.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      whaou so fast, thanks a lot :-)
      perfect I understand and it works now.

      Comment

      Latest Posts

      Collapse

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