Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price crossing MA

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

    Price crossing MA

    I couldn't seem to find an ability to build a strategy that entered the trade when price crosses and closes the other side of the EMA.

    I guess I could use a 1 period MA.

    Are you able to help at all?

    Is it possible to set a MA and PSAR as the stop, calculated on the close so the strategy will automatically close the position when the market closes through whichever is the closest to price?

    Also if I want to add a filter using stochastics, so only take long trades when both K & D are upward sloping I just wanted to check that the fact that there are 2 variables won't matter if I use the strategy wizard. Or do I need to add the condition twice zeroing out k in one and then d in another?
    The strategy seems to work if I just use the MA conditions and don't try and use the stochastic filters.

    #2
    Hi rob36,

    You will find the Strategy Wizard useful. Please see these pages for how to do cross over conditions: http://www.ninjatrader-support.com/H...OverConditions


    To set the stops the way you want: In the "Conditions and Actions" screen you want to add this as one of the "Do the following" actions. Click Add -> Misc -> Set user defined variable -> Value = select your MA or PSAR. Then go to the "Stops and Targets" page -> select Stop Loss -> Value = select the user defined variable you just set earlier.

    If you want both the K and D to be checked you need two conditions. Please see this: http://www.ninjatrader-support.com/H...ndicators.html
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Many thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      63 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      54 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      61 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      48 views
      0 likes
      Last Post CarlTrading  
      Working...
      X