Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do I change the pen while plotting
Collapse
X
-
Josh,
Let's just leave it that I think NT has done a great job with its framework, in spite of the fact that there are a couple of things I want to see improved.
I understand the current situation with respect to what I "need" to do. I'll email you about anything else.
Thanks for the help,
EV
-
Unfortunately not following you what you mean by "side effect" business. You are trying for a usage model that it simply was never designed for and as such it is not possible to do.
Leave a comment:
-
Sorry -- no can do -- that turns off display of the whole indicator.Originally posted by NinjaTrader_Josh View PostIf you are willing to just turn it completely off the data box you can use DisplayInDataBox = false.
I've got two options in mind, one of which is to put up with the extraneous display in Data Box.
I sure hope you get out of the side effects business in a future release.
--EV
Leave a comment:
-
Unfortunately this is not possible. Options available to you are all or nothing.
If you are willing to just turn it completely off the data box you can use DisplayInDataBox = false.
Leave a comment:
-
Sounds like the old red/green coloring back before you had PlotColors.Originally posted by NinjaTrader_Josh View PostUnfortunately there is no way to do this. You can only select one plot style for the whole plot.
Aaargh! The reason I want to do this is that for a displaced moving average, the last <displacement> bars are ones that are estimated, not real, so they should be displayed differently. I want to continue the bull/bear coloring, so using color is not an option.
I could use my two-plot solution if it were not that Data Box display and whether or not to plot are driven by side effects. If I could directly control whether or not Data Box shows the plot, and whether or not it actually gets plotted this would all work.
Not to beat a dead horse, but this is another example of why Computer Science 101 says not to do things by side effects -- that is an EVIL design. They can work well when all is as the originator intended -- however there are bound to be things that were unforeseen, as in this case.
Even with the side effects, this would work if the decision whether to display actually plot was made bar-by-bar on the combination of the plot color and the PlotColors entry for that bar, rather than just the color of the basic pen for the plot. This issue was brought up by someone else in an earlier thread.
My request:
1) First choice is to lose the dependence on side effects
2) My second choice would be to control whether or not to actually plot bar-by-bar.
A Pen data series that could be used in lieu of PlotColors would solve this problem, too. I'm not sure it would be worth much effort on your part, though, since this is a pretty unusual case.
--EV
Leave a comment:
-
Unfortunately there is no way to do this. You can only select one plot style for the whole plot.
Leave a comment:
-
How do I change the pen while plotting
PlotColors is very convenient.
I have an odd, but quite similar requirement -- I would like most of my plot to be a solid line (or whatever else the user configures), but I want the last part of my plot to be dashes.
Is there an easy way to do that?
I could plot two lines and for each bar use PlotColors to set the one I do not want to show to Transparent. The problem with that is it will put a confusing duplicate entry in Data Box. The only way to keep it out of Data Box is to set its base pen to Transparent -- but if I do that, it will not plot at all, regardless of what I do in PlotColors.
Help!
EVTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, 03-23-2026, 04:31 AM
|
0 responses
42 views
0 likes
|
Last Post
by sjsj2732
03-23-2026, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
294 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
290 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
135 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
98 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Leave a comment: