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 trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    22 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    70 views
    0 likes
    Last Post jeronymite  
    Started by mgco4you, Yesterday, 09:46 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X