Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator plot as OHLC bar
Collapse
X
-
Hello RReef,
Thank you for your note.
There is currently no option to set an indicator to OHLC for the plot.
OHLC data is provided for instruments by the data feed provider. Indicators calculate on the close data of an instrument historically and when using CalculateOnBarClose = true in NinjaTrader.
However, if CalculateOnBarClose = false then the real-time data can reflect where a high, low, open and close occurred for the indicator. With that said the historical data is still only the close of the bar so only the close of the indicator. There would be no method to pull each tick that built a bar as historical data is only the OHLC of the bar for the instrument.
A possible solution would be to add an additional time frame to your indicator (a smaller interval such as 1 Tick) and use this to determine the OHLC of the indicator for each bar. Yet, you would still need to create so custom plotting here to draw such a "bar" for the indicator.
For information on adding additional time frames to your code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm
You can view a custom plot sample by going to the NinjaTrader Control Center > Tools > Edit NinjaScript > Indicator > CustomPlotSample > OK.
Please let me know if I may be of further assistance.
-
There are a few indicators that plot as OHLC bars. One of them are the default Heikin-Ashi bars. To be clear, they are not coded as a bar type but as indicatorOriginally posted by RReef View Posti read on forums NT cant do it, but it was suggested many times. May be situation had changed.
Of course it is possible to code any type of indicator to plot as OHLC bar. This may require accessing synhronized tick data for spreads.
Comment
-
You can Plot anything any way that you want. You would just need a custom Plot to do so. Look at the "spread" indicator, in the "File Sharing" section of this forum, to see an example of how to plot the indicator as OHLC.Originally posted by RReef View Posti read on forums NT cant do it, but it was suggested many times. May be situation had changed.
I already sometime back, made a request for this option. I do not know if the request is still actively being tracked/considered by NT Development or not.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
605 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
351 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment