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, 03-25-2026, 09:53 PM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      7 views
      0 likes
      Last Post CaptainJack  
      Started by sjsj2732, 03-23-2026, 04:31 AM
      0 responses
      155 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      357 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      393 views
      0 likes
      Last Post argusthome  
      Working...
      X