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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 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
        547 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