- ago
I have two moving averages. I want to draw the band between them Red when the first above the second and Green on the opposite .


I used :
DrawLine(bar, ema1[bar], bar, ema2[bar], ema1[bar] < ema2[bar] ? WLColor.Green : WLColor.Red, 10, LineStyle.Solid, "macd");

but DrawLine seems slow and not the right way.

Any suggestion?
7
925
Solved
6 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.10% )
- ago
#1
Let's mark this topic a feature request and we can add a new pair of plot methods, PlotIndicatorCloud and PlotTimeSeriesCloud.
2
- ago
#2
Marked.
0
Cone8
 ( 6.32% )
- ago
#3
I'd really like to see this one implemented too. Currently PlotIndicator using PlotStyle.Cloud is hard-coded to a Red lower cloud, and, you can't control the color's alpha on either side. Worse, if you use PlotStyle.Cloud, you can't control the line widths, and, you can't plot it again with another statement because the plotted indicator is cached so as not to be plotted again.

Please add your vote in the starter topic!
2
Glitch8
 ( 12.10% )
- ago
#4
I’ll get this done for B28. We’re in a holding period for a couple of days until we receive our new code signing certificate anyway 🤦🏼‍♂️
0
Cone8
 ( 6.32% )
- ago
#5
Awesome!
0
Glitch8
 ( 12.10% )
- ago
#6
Added PlotIndicatorCloud and PlotTimeSeriesCloud in B28.
0
Best Answer

Reply

Bookmark

Sort