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

Creating multiple time periods in Strategy Builder

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

    Creating multiple time periods in Strategy Builder

    Is it possible to create a strategy in the builder using multiple time periods? eg: if the 5 minute MACD is above zero and the 1 hour MACD is also above zero then buy one contract.

    #2
    Hello greg6622,

    Thanks for your post and welcome to the NinjaTrader forums!

    Yes, you can add other time frames to the strategy builder and can use those as inputs to indicators that you can then use as conditions.

    Basically, in the "Additional data" page, you would add the other data series (do not add the data series on the chart as that is already used). If I understand your example you have a 5 minute chart and what to access a 60 minute time frame so in that case, you would only need to add the 60-minute bars. Once you click "add" you would check "use primary instrument" and then change the default 1-minute to your 60-minute bar. In the conditions builder, you would select the MACD indicator and change the "input series" to be the 60 minute bars.

    Here is a short video I made the other day where there is a 5-minute chart, adding 60-minute bars in the strategy builder and using those to check the RSI value on the 60-minute bars, so this should be very close to what you want to do: https://Paul-ninjaTrader.tinytake.co...NV8xMDg3NzUyMQ
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RookieTrader, Today, 09:37 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by alifarahani, Today, 09:40 AM
    0 responses
    5 views
    0 likes
    Last Post alifarahani  
    Started by Gerik, Today, 09:40 AM
    0 responses
    5 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by KennyK, 05-29-2017, 02:02 AM
    3 responses
    1,284 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by AttiM, 02-14-2024, 05:20 PM
    11 responses
    185 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X