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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      570 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X