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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        153 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X