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 WHICKED, Today, 12:56 PM
        2 responses
        13 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Felix Reichert, Today, 02:12 PM
        0 responses
        1 view
        0 likes
        Last Post Felix Reichert  
        Started by Tim-c, Today, 02:10 PM
        0 responses
        1 view
        0 likes
        Last Post Tim-c
        by Tim-c
         
        Started by cre8able, Today, 01:16 PM
        2 responses
        9 views
        0 likes
        Last Post cre8able  
        Started by chbruno, 04-24-2024, 04:10 PM
        3 responses
        48 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X