Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Issue with my stoploss

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

    Issue with my stoploss

    When I I have my fast ema cross above ema slow on my long trade, and my stoploss is 50 ticks, on the way to back on short wich means fast crossbelow slow, my stoploss does not functioning,meaning it doesnt reach to 50 ticks its exiting depending on my moving avarage setting... (fast crossbelow slow).I want to rich my stoploss or my profittarget before any other trade....

    #2
    XXtrem, which code would you use to call / set the stoploss? Is it only tied to the Longentry via the signal names for example?

    Comment


      #3
      Thanks for reply

      I am using DefaultStoploss from Wizard end.

      Originally posted by NinjaTrader_Bertrand View Post
      XXtrem, which code would you use to call / set the stoploss? Is it only tied to the Longentry via the signal names for example?

      Comment


        #4
        XXtrem,

        The default behavior is for entries to reverse positions, so this is likely what you are seeing.

        If you don't want this behavior and only want to exit based on stop losses and targets, then you can add market position checks to your entry conditions.

        if (Position.MarketPosition == MarketPosition.Flat && yourCrossOverConditions)
        {
        //entries here
        }

        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X