Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing stop and stop loss

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

    Trailing stop and stop loss

    It seems that you can not simultaneously use both a trailing stop and stop loss command. is this correct?

    if so, then if you want these values to be different then the only way to do it would be to manually program these as your own custom functions. is this correct?

    for example, i want a stop loss from entry to be 10% but i want a trailing stop from the highs to be 5%. (or reverse of course!)

    #2
    Originally posted by thinkingfield View Post
    It seems that you can not simultaneously use both a trailing stop and stop loss command. is this correct?
    Correct. You can still use SetStopLoss() and just contantly change the stop price based on your own custom logic.

    Here is a reference sample - http://www.ninjatrader-support2.com/...ead.php?t=3222
    RayNinjaTrader Customer Service

    Comment


      #3
      thanks. how do i dissable stoploss and switch to trailstop?

      just to make sure, stoploss is from where i set the price, whereas trailstop is taken from the highest price from entry?

      thanks for reply.

      Comment


        #4
        If you want to start with a StopLoss and then later switch to a trailing mode as the trade evolves, you would need to custom code the trailing alogrithm, as unfortunantely you can't use SetStopLoss and SetTrailStop concurrently - http://www.ninjatrader-support.com/H...tStopLoss.html

        A custom trailing stop example can be found in the NinjaScript sharing section in the forums under 'Strategies'.

        To your last question: it depends on which CalculationMode you use in the SetStopLooss (more in the link above) - for SetTrailStop it would get activated by your trail amount in profit.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        30 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        22 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X