Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating A Sell Order 20% below the Price of a Moving Average Crossover

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

    Creating A Sell Order 20% below the Price of a Moving Average Crossover

    Hi All

    I wanted to create a strategy that relies on such a sell order below. Any advice on how to do this in the strategy wizard? Thanks

    "Short sell 20% below the Price of a Moving Average Crossover"

    #2
    Hello AegisX,

    What you would want to do is build the condition when the SMA 50 crosses below SMA 200, trigger an action of saving the price of the SMA 50 to a variable. When you set the price of the variable, you would want to use an offset of .8 percent, which will multiple the 50 SMA by .8.

    Then you would set another set of conditions which would check if the current price was below 20% this figure, or .8 of this price, sell short. You could either do this by a limit order or by writing a condition which says if Close[0]<xVariable.

    I included a few screen shots to get you started.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi AlanP, Thanks for your quick replies on my posts. I will try it out on my own and will get back to you if I have any other questions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      47 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      141 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      275 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X