Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Altering the OHLC Chart Style
Collapse
X
-
Why don't you open the file Documents -> NinjaTrader 7 -> bon -> Custom Type -> @ChartStyles.cs and simply modify the code of the public class OhlcStyle?Originally posted by One11 View PostHi Bertrand,
Just doing my quarterly check-in, hoping you might have an update on my (long -standing) request.
You will probably get what you look for by changing a few parameters.
Comment
-
Hi Harry,Originally posted by Harry View PostWhy don't you open the file Documents -> NinjaTrader 7 -> bon -> Custom Type -> @ChartStyles.cs and simply modify the code of the public class OhlcStyle?
You will probably get what you look for by changing a few parameters.
Thanks for your post. What you are referring to sounds like altering the underlying code, which is far beyond my capability. Unfortunately, my capability is largely limited to drop down lists and so on. And so, I was hoping that NT would alter the code to allow for user defined OHLC parameters as they relate to the horizontal reach of the Open and Close "nibs." As I mentioend earlier, other software applications allow for more bars on a chart for a given bar thickness. I was just hoping NT would allow for the same.
Comment
-
The above was my first post in this thread. Could someone tell me if NT8 will have this feature?Originally posted by One11 View PostI prefer the OHLC chart style over candlestick charts. However, I find NinjaTrader's OHLC bars a bit awkward.
Specifically, the horizontal Open and Close "wicks" (for lack of a better word), are a bit too large/extended. They protrude a bit too much. As a result, the bars must be spaced quite far apart so that the Close "wick" of the preceding bar does not overlap the Open "wick" of the following bar. (This can look quite confusing in a choppy market.) However, to keep them sufficiently spaced apart results in too few price bars showing up on a chart. (Other charting applications I had used in the past all had smaller horizontal Open and Close "wicks." They were not adjustable, but I did not find the need to adjust them to display the number of bars I wanted on a chart.)
Unfortunately, the Chart Properties dialogue box does not offer user-defined horizontal "wick" size. Is there any workaround or manual way of adjusting "wick" size? I do not have a programming background, so please be gentle with your suggestions.
Thanks for your time.
Comment
-
Hello One11,
Are you referring to the width of the candle outline? (This would be the border around the bar)
Are you referring to the wick that marks the high and the low? These extend to the height of the high and low. Are you referring to how far these extend? (they extend to the price level of the actual high or low)
Both of these items have an adjustable width in NinjaTrader 8.
You can download NinjaTrader 8 Beta to try this yourself by clicking the link below.
http://ninjatrader.com/PlatformDirect
I also want to mention these are both adjustable in NinjaTrader 7 as well.
Are you referring to the actual width of the bar?
Can you include a screenshot to demonstrate the overlap you are seeing?Last edited by NinjaTrader_ChelseaB; 01-21-2016, 10:15 AM.Chelsea B.NinjaTrader Customer Service
Comment
-
Hi Chelsea,
No I do not prefer candle charts. I use the standard OHLC bars. I referred in my earlier post to the horizontal "wicks" (for lack of a better term) signifying the Open and Close of a standard, old-fashioned, non-candle price bar. The Open would be expressed by the horizontal "wick" to the left of the vertical price bar, while the Close would be the horizontal "wick" at the right of the vertical price bar.
Please refer to my original post I quoted if you require additional clarification.
Since I'm not very computer savvy, I would prefer not to download a beta version of NT.
Sorry to trouble you again, but thanks for your time.
P.S. I posted a screen shot of what I am referring to in my earlier post dated 05-28-2013 @ 1:14PM. The horizontal Open (left) and Close (right) "wicks" are shorter in this photo than what is presently available in NT.Last edited by One11; 01-21-2016, 10:38 AM.
Comment
-
Hello One11,
The high and low with the OHLC chart style are not adjustable but the entire width of the bar which includes the distance the high and low tick marks are from the body of the bar can be adjusted. These scale as they are adjusted so that the width of the bar matches the length of the tick mark. This is the width setting in the Data Series window.
The behavior of OHLC bars has not changed from NinjaTrader 7 to NinjaTrader 8.
Are you wanting the tick marks (high and low on an OHLC bar) to have a separate width adjustment parameter that does not adjust with the width of the bar?Chelsea B.NinjaTrader Customer Service
Comment
-
Hi Chelsea,Originally posted by NinjaTrader_ChelseaB View PostHello One11,
The high and low with the OHLC chart style are not adjustable but the entire width of the bar which includes the distance the high and low tick marks are from the body of the bar can be adjusted. These scale as they are adjusted so that the width of the bar matches the length of the tick mark. This is the width setting in the Data Series window.
The behavior of OHLC bars has not changed from NinjaTrader 7 to NinjaTrader 8.
Are you wanting the tick marks (high and low on an OHLC bar) to have a separate width adjustment parameter that does not adjust with the width of the bar?
I watch price action very closely in a very short time frame chart, and so I use rather thick/fat price bars for visual ease. However, using thick bars makes the horizontally protruding Open and Closer markers longer, thereby reducing the number of bars I can comfortably see on a chart.
I don't care about the thickness of the Open and Close markers, only their horizontal length. What I would like is to shorten the horizontal length of the Open and Close markers of a standard OHLC price bar. In this way, I can squeeze more (thick) bars in a chart without the Open and Close of neighboring bars overlapping one another.
I've been asking for a few years now if this feature of the standard price bar was ever going to be user-definable, but it would appear not to be the case.
Comment
-
Hi One11,
Just to clarify once more, are you wanting the tick marks (high and low on an OHLC bar) to have a separate width adjustment parameter that does not adjust with the width of the bar?
I can check to see if there is a feature request for this and if there is not I can enter a feature request in your behalf.
Unless there is a feature request it will likely never be added. If there is a feature request, it will be up to development to decide when or if this will be implemented. Not all feature requests are approved and some feature requests make it into future versions.
You could also contract the building of a custom chart style to have this functionality and have this immediately if you wanted. Let me know if you would like a link to a list of professional NinjaScript consultants that could create this script at your request. (This would be a simple change and I would not imagine it would take much work to achieve)Chelsea B.NinjaTrader Customer Service
Comment
-
Hi Chelsea,Originally posted by NinjaTrader_ChelseaB View PostHi One11,
Just to clarify once more, are you wanting the tick marks (high and low on an OHLC bar) to have a separate width adjustment parameter that does not adjust with the width of the bar?
I can check to see if there is a feature request for this and if there is not I can enter a feature request in your behalf.
Unless there is a feature request it will likely never be added. If there is a feature request, it will be up to development to decide when or if this will be implemented. Not all feature requests are approved and some feature requests make it into future versions.
You could also contract the building of a custom chart style to have this functionality and have this immediately if you wanted. Let me know if you would like a link to a list of professional NinjaScript consultants that could create this script at your request. (This would be a simple change and I would not imagine it would take much work to achieve)
Sorry for all the back-and-forth.
To clarify, yes, I would like the Open and Close (not the high and low, as you wrote) marks to have a separate adjustment parameter, apart from the vertical thickness of the bar. I am looking for the horizontal protrusion to be user defined rather than the thickness of these marks, since I imagine the thickness would correspond with the overall thickness of the presently user-definable bar thickness.
This is a feature request for which Bertrand of NT advised me earlier in this thread it had an ID 1214 (see Bertrand's post dated 01-23-2013 @ 9:21 AM) and ID 2384 (see Bertrand's post dated 05-29-2013 @ 9:40 AM). So the request is on record, but I suppose it is not getting much play. Oh, well.
But thanks for your time. Have a nice weekend.
Comment
-
Hello One11,
I have checked into see if this feature request has a new id and the id has changed.
This is being tracked with ID# SFT-674.
"Make the length of left- and right-facing lines on OHLC bars configurable in Data Series window".
Please let me know if you would like a list of consultants that could create this chart style at your request.Chelsea B.NinjaTrader Customer Service
Comment
-
Thank you for the update. Much appreciated. I will get back to you re: list of consultants if I wish to pursue that avenue. Thanks again for your help.Originally posted by NinjaTrader_ChelseaB View PostHello One11,
I have checked into see if this feature request has a new id and the id has changed.
This is being tracked with ID# SFT-674.
"Make the length of left- and right-facing lines on OHLC bars configurable in Data Series window".
Please let me know if you would like a list of consultants that could create this chart style at your request.
Comment
-
Try this one. It is a HLC bar. The close line is half the bar spacing so that should be just fine for you. Please see attachment.
Just place in 'C:\Users\User\Documents\NinjaTrader 7\bin\Custom\Type' folder and restart NT.
I have registered it as 'ChartStyleType.Custom3' so make sure you have no other conflicting ChartStyles with this number.
Comment
-
Thank you for your help. Very much appreciated.Originally posted by Sim22 View PostTry this one. It is a HLC bar. The close line is half the bar spacing so that should be just fine for you. Please see attachment.
Just place in 'C:\Users\User\Documents\NinjaTrader 7\bin\Custom\Type' folder and restart NT.
I have registered it as 'ChartStyleType.Custom3' so make sure you have no other conflicting ChartStyles with this number.
Comment
-
Here is a modded OHLC
Okay, try this one.
The open-close are non-adjustable at this point. They appear as normal OHLC bars at regular spacing but when they are thicker/closer the Open-Close will shrink, which is what you want I believe.
Registered to custom7. Called "OHLC_One11".
I am working on a user adjustable input to change the open-close 'notches' width by using the Pen property, similar to 'wick' or 'outline' on the candlesticks. Haven't quite got there yet.
Just import the zip file as you would any other indicator. Restart NT7.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
83 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
47 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
66 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment