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 proptrade13, Today, 11:06 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by quantismo, 04-17-2024, 05:13 PM
        4 responses
        30 views
        0 likes
        Last Post quantismo  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        32 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by kulwinder73, Today, 10:31 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X