Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 traderqz, Today, 12:06 AM
        5 responses
        8 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Mongo, Today, 11:05 AM
        2 responses
        7 views
        0 likes
        Last Post Mongo
        by Mongo
         
        Started by guillembm, Today, 11:25 AM
        0 responses
        3 views
        0 likes
        Last Post guillembm  
        Started by Tim-c, Today, 10:58 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Yesterday, 09:06 AM
        4 responses
        30 views
        0 likes
        Last Post traderqz  
        Working...
        X