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 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