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?
    Paul H.NinjaTrader Customer Service

    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
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Holligoly, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post Holligoly  
        Started by Raginpower, Today, 01:53 PM
        0 responses
        10 views
        0 likes
        Last Post Raginpower  
        Started by andrewjoseph939, Today, 12:55 PM
        0 responses
        20 views
        0 likes
        Last Post andrewjoseph939  
        Started by NT-Roland, Yesterday, 04:44 AM
        4 responses
        16 views
        0 likes
        Last Post NT-Roland  
        Started by szferi, Yesterday, 02:04 AM
        4 responses
        32 views
        0 likes
        Last Post bltdavid  
        Working...
        X