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

Trailing stop moves with each bar

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

    Trailing stop moves with each bar

    Hi people, i would like to ask the following question.

    Based on the trailing stop model of the system that you offer called "Trail Builder Example", what kind of conditions should I introduce so that the trailing stop moves by always placing below/above the open of the last bar instead of moving at a fixed distance from the price?

    #2
    Hello Carlos19,

    Instead of setting the stop price to (Close[0] + (TrailStopDistance * TickSize)), set the stop price to Open[1] in a condition that ensures CurrentBar is greater than 1.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I have done is, but the only thing I have achieved is that the stop is placed at the open of the bar prior to the entry bar and remains there static until the price touches it. I must have misunderstood. Could you provide me with an example to see where I am going wrong?

      Thank you very much.

      Comment


        #4
        Hello Carlos19,

        Attached is a screenshot.
        Click image for larger version

Name:	2023-01-30_9-55-10.png
Views:	60
Size:	25.3 KB
ID:	1233298
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by alifarahani, Today, 09:40 AM
        3 responses
        15 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by RookieTrader, Today, 09:37 AM
        4 responses
        17 views
        0 likes
        Last Post RookieTrader  
        Started by PaulMohn, Today, 12:36 PM
        0 responses
        4 views
        0 likes
        Last Post PaulMohn  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        40 views
        0 likes
        Last Post love2code2trade  
        Started by junkone, Today, 11:37 AM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X