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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X