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
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.
-
Originally 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
-
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 adeelshahzad, Today, 11:49 AM
|
1 response
3 views
0 likes
|
Last Post Today, 11:56 AM | ||
Started by spottysallrite, Today, 11:31 AM
|
1 response
4 views
0 likes
|
Last Post Today, 11:43 AM | ||
Started by johnMoss, 03-04-2024, 01:53 PM
|
2 responses
32 views
0 likes
|
Last Post
by Overnhou
Today, 11:21 AM
|
||
Started by Padan, Today, 02:02 AM
|
5 responses
17 views
0 likes
|
Last Post Today, 11:14 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
28 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
Comment