Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop loss

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

    Stop loss

    Hi
    how do I go about iabout anti to have ema as my entry and exit but sometimes using ema as exit can be a big loss. How do I also add a 30 points stop loss along with ema crossing, which ever come first.

    If it can be don't on strategies builder.

    #2
    Hello SuperDude123,

    Are you asking how to make a condition that uses the EMA for deciding to enter or exit? Are you asking how to use the EMA price for order placement?

    For any type of logic with targets like setting a stoploss or alternatively doing an exit you would have to avoid using the stops and targets page of the builder, that page is for fixed targets that use a pre defined value. You can find an example of working with targets here: https://ninjatrader.com/support/foru...rategy-builder

    Comment


      #3
      I'm trying to used ema and set stop loss, which ever come first

      Comment


        #4
        Hello SuperDude123,

        If you are trying to use either the EMA as an exit or a stoploss you would have to use logic like the linked break even sample to do that. You would need to use a variable to control if the stoploss order is being resubmitted on each bar. Resubmitting the order on each bar holds it open, once the order is expired you could use another set to exit using a market order.


        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        563 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        329 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X