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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      111 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      158 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      78 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X