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

Indicators on Multiple Time Frame Charts

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

    Indicators on Multiple Time Frame Charts

    I've been reading to learn more about using multiple time frames on charts. I would like to implement an indicator which uses secondary five minute data on a primary lower time frame setting (say one minute, or even better 150 Tick). I looked at the sample multiple time frame setting but it is just reading price data on multiple time frames. What if I want to calculate a simple trend indicator on a larger time frame which can accessed by a strategy running on a smaller time frame. Is that possible and do you have some sample code which demonstrates how to do it? Here's what I would like to do:

    Calculate if a short moving average is above a longer moving average on a secondary five minute time frame of the same instrument. If the five minute short average is greater than the five minute longer average, dsiplay a value of 1 on a bar chart. If the short ma on the five minute chart is lower than the long ma on the five minute chart display a -1 bar chart on the primary chart. I would also like to be able to reference these bar values in a strategy running on the 1 minute chart. Is any of this possible?
    Thanks
    DaveN

    #2
    Hi daven,

    Yes, this is certainly possible.

    You can create an indicator with Multiple series in NinjaTrader 7, which calculates the moving averages on different series, then plot the values. You can then access the indicator from a Strategy.


    Have you seen this sample:


    ...which details how to access the CCI on different series.
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DavidHP, Today, 07:56 AM
    0 responses
    0 views
    0 likes
    Last Post DavidHP
    by DavidHP
     
    Started by Aviram Y, 08-09-2023, 09:04 AM
    10 responses
    298 views
    0 likes
    Last Post MrHump
    by MrHump
     
    Started by jpapa, Today, 07:22 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by kevinenergy, 02-17-2023, 12:42 PM
    116 responses
    2,758 views
    1 like
    Last Post kevinenergy  
    Started by franatas, 12-04-2023, 03:43 AM
    7 responses
    106 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X