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

Plot the value of a higher timeframe indicator?

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

    Plot the value of a higher timeframe indicator?

    Is it possible to retrieve the output value of an indicator running on a different timeframe? As an example, my primary series is a ES 1 second chart - what I would like to do is plot the value of an indicator, e.g. an ADX(14) running on ES 5 minute bars, on the 1 second chart, so that the 5 min indicator value is plotted and updated with every second bar. My reasoning is to capture and better visualize the intrabar moves of the indicator value within the forming 5 minute bar with more granular detail on the 1 second chart. Could I access the 5 min indicator value by making a public Series<double> in the #region Properties section?

    #2
    Hello JBTrader2005,

    Thanks for your post and welcome to the Ninjatrader forums.

    If you are wanting to see this on a chart, then you can accomplish your goal by adding a 5 minutes data series to the 1 second chart and then add the ADX by assigning it to the 5 minute data series. To get the current value displayed of the ADX indicator, you would set its calculate mode to Calculate.OnPriceChange in the settings of the indicator. Here is a screenshot that shows the 1 second bars, the 5 minute bars and the ADX based on the 5 minute bars:

    Click image for larger version

Name:	JBT-1.PNG
Views:	470
Size:	45.8 KB
ID:	1102111


    If you do not want to see the 5 minute bars, you can hide them by setting the bars (colors) to transparent and in the same panel as the 1 second bars, this leaves the 1 second bars visible and the ADX based on the 5 minute bars. Here is a screenshot:

    Click image for larger version

Name:	JBT-2.PNG
Views:	431
Size:	41.2 KB
ID:	1102112
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by maybeimnotrader, Yesterday, 05:46 PM
    2 responses
    20 views
    0 likes
    Last Post maybeimnotrader  
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Started by frankthearm, Today, 09:08 AM
    5 responses
    22 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X