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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        51 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        142 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        275 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X