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 argusthome, 03-08-2026, 10:06 AM
        0 responses
        110 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        59 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        37 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        41 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        78 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X