Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 KonAdams, Today, 10:53 PM
        0 responses
        0 views
        0 likes
        Last Post KonAdams  
        Started by JGriff5646, Today, 10:02 PM
        0 responses
        9 views
        0 likes
        Last Post JGriff5646  
        Started by AdamDJ8, Today, 09:18 PM
        0 responses
        5 views
        0 likes
        Last Post AdamDJ8
        by AdamDJ8
         
        Started by knowmad, Today, 03:52 AM
        2 responses
        33 views
        0 likes
        Last Post knowmad
        by knowmad
         
        Started by ETFVoyageur, Today, 07:05 PM
        0 responses
        11 views
        0 likes
        Last Post ETFVoyageur  
        Working...
        X