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 RubenCazorla, 08-30-2022, 06:36 AM
      3 responses
      77 views
      0 likes
      Last Post PaulMohn  
      Started by f.saeidi, Yesterday, 12:14 PM
      9 responses
      23 views
      0 likes
      Last Post f.saeidi  
      Started by Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      3 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,772 views
      0 likes
      Last Post Leafcutter  
      Working...
      X