Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to create conditions on multiple timeframe?

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

    How to create conditions on multiple timeframe?

    Hello, I have created a stochastic crossover strategy that I am applying to the 1 minutes chart (trading on the 1 minutes chart). All is good on that part.

    However, I would like to insert 2 additional condition that look at the 5 minutes and 15 minutes data to make sure that the 8 and 21 EMA have crossed in those 2 timeframe. So basically my strategy will not execute unless the 8 and 21 period EMA on both the 5 and 15 minutes chart have crossed. How do I go about doing this? I am not a coder so I hope there is a simple solution here through strategy builder.

    #2
    Hi samdas,
    You can add additional data series in Strategy Builder under "Additional Data". If that's the same instrument, check the box "Use Primary Instrument", then determine the type as you like 5M, 15M). Then refer to this in the code. To add an indicator referring to such additional data series, make sure to pick the right "Input Series". Instead of "Default Input", pick the respective other (under Data Series). Give it a try and have fun.
    NT-Roland

    Comment


      #3
      Hello samdas,

      Thanks for your post and welcome to the NinjaTrader forums!

      Forum member NT-Roland has provided good guidance.

      To supplement that, here is a short video that may help: https://paul-ninjatrader.tinytake.co...MF8xMTY0NTQyMw

      In case you have not accessed the other reference materials, here are links:

      Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
      Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
      Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by yertle, Yesterday, 08:38 AM
      7 responses
      28 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by bmartz, 03-12-2024, 06:12 AM
      2 responses
      21 views
      0 likes
      Last Post bmartz
      by bmartz
       
      Started by funk10101, Today, 12:02 AM
      0 responses
      4 views
      0 likes
      Last Post funk10101  
      Started by gravdigaz6, Yesterday, 11:40 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by MarianApalaghiei, Yesterday, 10:49 PM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X