Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to monitor SetTrailStop

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

    How to monitor SetTrailStop

    Hi,

    When I submit the SetTrailStop(CalculationMode.Ticks, 50), the stop value will be changing and updating from bar to bar. How can I monitor and obtain the current stop value?

    Regards,
    Toyogo

    #2
    May be this helps: http://www.ninjatrader-support.com/v...ead.php?t=5790

    Comment


      #3
      Hi,

      Thanks but it doesn't help as it makes used of OnOrderUpdate() which is only triggered when the order state is changed. In my case, I want to monitor the price of the trail stop in each updating of the bar. ie. inside the OnBarUpdate(), I want to know what is the current stop loss price.

      Regards,
      Toyogo

      Comment


        #4
        You can calculate it by yourself. If you are submitting a 50tick trailing stop just keep a variable that moves 50 tick along with Close[0] too. If the price goes lower then dont adjust the 50 tick. Only change it if the value will be a new higher stop loss.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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