Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to configure an "Occurs within 'time'" condition in strategy builder

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

    How to configure an "Occurs within 'time'" condition in strategy builder

    I'm looking to achieve a simple function using the NT strategy builder wizard and having a difficult time creating something logical for it to understand.

    What I am looking to do essentially is to create an 'occurs within' condition that allows me to have two or more conditions being true within period range. For example:

    20/50 EMA cross and 10/50 EMA cross occurring within 5 periods.

    So, I need to be able to assign something to signal if both have occurred within 5 periods. So far, I can only get it to signal when both are true during the same period.

    Lastly, is there a quick function that allows me to visualize the indicators used within the strategy on the chart?

    Thank you much!

    #2
    Hello CaptainFill,

    You should be able to do this simply by setting the lookback parameter to 5 in both your crossing conditions.

    Yes, there is a PlotOnChart setting anytime you use an indicator in the condition builder. Set that to true to visualize your indicators.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thank you Ryan! So simple! I was just too blind to see it right in front of me.

      Thanks again, I will try not to abuse this fantastic help

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      305 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      196 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      186 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      274 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      228 views
      0 likes
      Last Post CarlTrading  
      Working...
      X