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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        62 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        33 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        44 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        58 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Working...
        X