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
Modify OHLC bars look
Collapse
X
-
Originally posted by dtl-saw View PostLast edited by pashalv; 10-23-2023, 12:46 PM.
-
Yes, copy attached BarsHalf.cs file into NinjaTrader 8\bin\Custom\ChartStyles\ folder
The style shows as BarsHalf in the Chart Style dropdown
You can modify the length of the open and close segments by changing point 3 and point 5 if you want shorter/longer segments
Regards,
Attached Files
Leave a comment:
-
Hello dtl-saw, thanks for posting.
The ChartStyle is what you would need to modify. See the original "OHLC" chart style within the Chart Styles of the editor. You may make a copy of this script and modify it. The important part of the code is in the OnRender method. Please review this code and let me know if any questions come up.
Kind regards.
Leave a comment:
-
Modify OHLC bars look
I want to modify the OHLC bars look so that the open and close line segments are almost 100% width of the bars and the bar body remains very thin.
Currently when I make the bars wider by using <SHIFT><CTRL><up arrow> and <down arrow> then when the bars get wider body of the bar gets way to wide so that it becomes fuzzy and outgrows the actual prices of the highs and lows of the bar. If the body of the bar remains very thin while the open and close segments of the bar are much longer than what is currently reasonable with NT then it's easier to read the OHLC values both when zoomed in or when zoomed out. I don't know why you are making the bars fuzzy when widening and I don't expect you to change your code but I'd like to make my own version of the OHLC bars as a bars add on.
If you could give me a hint and let me know if I could reuse your bars code and maybe what section of the code to work on to keep the bars body very thin while making the Open and Close segments almost 100% width of the bar to bar spacing.
I've attached a png (top pic) showing what I'm trying to get from NT - as you can see the open segment of the new bar almost touches the close segment of the previous bar.
I've also attacched a png (bottom pic) of what NT looks like when I size the bar for ~100% bar spacing and you can see that the bar body is taking up about 1/3 of the total available horizontal space for the bar and I want to modify that so the bar body remains very thin or the thinnest setting possible.
thanks
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by cre8able, Today, 01:16 PM
|
0 responses
1 view
0 likes
|
Last Post
by cre8able
Today, 01:16 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
2 responses
47 views
0 likes
|
Last Post
by chbruno
Today, 01:15 PM
|
||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM | ||
Started by samish18, Today, 01:01 PM
|
0 responses
5 views
0 likes
|
Last Post
by samish18
Today, 01:01 PM
|
Leave a comment: