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 maybeimnotrader, Yesterday, 05:46 PM
|
2 responses
20 views
0 likes
|
Last Post Today, 12:20 PM | ||
Started by adeelshahzad, Today, 03:54 AM
|
5 responses
32 views
0 likes
|
Last Post Today, 11:29 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
7 responses
32 views
0 likes
|
Last Post Today, 11:19 AM | ||
Started by merzo, 06-25-2023, 02:19 AM
|
10 responses
823 views
1 like
|
Last Post Today, 10:38 AM | ||
Started by frankthearm, Today, 09:08 AM
|
5 responses
22 views
0 likes
|
Last Post Today, 10:19 AM |
Comment