Announcement

Collapse
No announcement yet.

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:	555
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:	501
Size:	41.2 KB
ID:	1102112

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X