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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        47 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X