Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing stop

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

    Trailing stop

    Hi,

    I'm trying to build a strategy for my long position. I want to get out of the trade when 4 ema cross 32hma. Is it possible to do it? Please help.

    Thank you.

    #2
    Hello nutmame1,

    Thanks for your post and welcome to the NinjaTrader forums!

    A strategy would be used to both enter and exit a trade, is this what you are wanting to do?

    If so, are you using the Strategy builder or working directly in Ninjascript code.

    Or do you have a manually placed entry and are looking to use a chart alert to exit the trade when those cross conditions occur?

    Comment


      #3
      I will enter manually and use the strategy to get out of the trade. Is it possible?

      Comment


        #4
        Hello nutmame1,

        Thanks for your reply.

        You can enter manually and exit with a strategy although that is an unusual process. To do so would require creating your strategy directly in Ninjascript which is based on C# programming language and using the AdoptAccountPosition: https://ninjatrader.com/support/help...itionaware.htm and https://ninjatrader.com/support/help...ccountPosition

        You would not be able to use the Strategy Builder for this.

        An easier path, if you are not a programmer, would be to use the Chart Alert feature where you can construct the conditions of a moving average cross and issue an order based on that cross. For reference, here is the chart alerts in the help guide: https://ninjatrader.com/support/help...t8/?alerts.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        77 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X