Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

can wizard prevent entering when far from MA

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

    can wizard prevent entering when far from MA

    i don't know how to code NinjaScript. I built a wizard strategy I'm happy with except one problem. if the price breaks out, I don't want to enter there. (I know it will pull back).

    My entry trigger is when one MA crosses another. I'd like to add to that entry condition something like "open price of current bar must be within 10 ticks below SMA(13)".

    I see there is a Misc field called 'numeric value', but I think I need to create an expression, like SMA(13) - numeric value 10.

    Due to time constraints, I'm hoping not to dig into Ninjascript just yet, but the problem is these entries cause a stop-out condition which costs profits.

    #2
    First of all welcome here to our forums - I would suggest to look into realizing that task with the NT supplied MAEnvelopes indicator as filter for example, for a courtesy example 'howto', please find attached an example script you can import in your NinjaTrader and then review from the wizard interface.

    I'm demanding here for the entry to be done that the Close price is within the MAEnvelope bounds, you can set the percentage level for the Upper / Lower boundaries used as desired.
    Attached Files

    Comment


      #3
      thanks Bertrand. I was able to import your Strategy, tweak and it's working better than my old strategy! i love that the wizard can do so many things.

      i'm now working on adding a condition that, after breakout, if the price retouches the SMA(13) again, that i would now enter. this would entry be after pullback, in other words. so, the trigger wouldn't be my 2 MA's crossing, but price touching 1 MA.

      if you have something like this, let me know. Thanks again!
      Last edited by PLeary; 08-01-2013, 08:42 AM.

      Comment


        #4
        Glad to hear that feedback, have a great day.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        43 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X