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!
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
NinjaTrader
Plot the value of a higher timeframe indicator?
Collapse
X
-
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?
Tags: None
-
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:
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:
Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
238 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
4 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM |
Comment