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 Line Width
Collapse
X
-
Tags: None
-
Hello afshinmoshrefi,
Thank you for your note.
You would use the following within State == State.SetDefaults.
Code:Plots[0].Width = 4;
Code:AddPlot(Brushes.Goldenrod, NinjaTrader.Custom.Resource.NinjaScriptIndicatorNameSMA); Plots[0].Width = 4;
Please let us know if you need further assistance.Attached FilesAlan P.NinjaTrader Customer Service
- Likes 1
-
It would be a nice feature to be able to adjust plot width on individual bars as PlotBrushes does for color.
Comment
-
Hello afshinmoshrefi,
Thank you for your note.
This is not something that is currently possible however I will forward your suggestion to the development team and ask them if they can add this to a list of future considerations for the software.
Please let us know if we may be of further assistance.Alan P.NinjaTrader Customer Service
Comment
-
Originally posted by tradesmart View PostIt would be a nice feature to be able to adjust plot width on individual bars as PlotBrushes does for color.
Is there a workaround or something?
Greetings
Comment
-
So far the only workaround I've found that works is to generate several plots with the same properties as the plot with adjustable width, except that all duplicates are set to Brushes.Transparent, each with a different width, and then to give them a color on some events:
Code:if (VolumePercent[1] > 1.8){ PlotBrushes[8][1] = VolumeColor; } else if ( VolumePercent[1] > 1.30 && VolumePercent[1] < 1.8){ PlotBrushes[7][1] = VolumeColor; } else if ( VolumePercent[1] > 1.10 && VolumePercent[1] < 1.30){ PlotBrushes[6][1] = VolumeColor; }
Edit: and it only works limited to some setups.Last edited by seykool; 11-15-2020, 06:10 AM.
Comment
-
Hello seykool,
The most direct approach would be to custom render the bars in OnRender().
Below are links to a few chart styles in the User App Share that have custom logic to custom render the bars at different widths.
https://ninjatraderecosystem.com/use...ars-option-v1/
https://ninjatraderecosystem.com/use...e-chart-style/
As well as a few indicators that render over the bars.
https://ninjatraderecosystem.com/use...andlesticks-2/
https://ninjatraderecosystem.com/use...ashi-smoothed/
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.Last edited by NinjaTrader_ChelseaB; 11-15-2020, 08:03 PM.Chelsea B.NinjaTrader Customer Service
Comment
-
Hello neoikon,
Thank you for your note.
We are still tracking interest in this feature request. I have sent a request to add your vote to track additional interest. I will follow up with the internal tracking number of this request for your reference as soon as your vote has been added.
Thanks in advance for your patience.Emily C.NinjaTrader Customer Service
Comment
-
Hello neoikon,
Thanks for your patience.
Interest in this feature request is being tracked under the number SFT-5967 and your vote has been added.
As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted on the Release Notes page of the Help Guide.
Release Notes — https://ninjatrader.com/support/help...ease_notes.htmBrandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
3 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
21 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment