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 fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,404 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      95 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      160 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      9 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X