|
Josh McCormick
2020-08-09 12:19:28
|
|
QUESTION:
==========
I might have missed it, but I didn't see it documented anywhere. And it doesn't logically make sense.
It appears in my testing that ChartSmoothLine always reacts to UpdateColor, first argument true or not.
Is this a bug? Or am I overlooking some documentation?
It was with some frustration that I spent time debugging why this simple plot wasn't coloring correctly.
The ema5 line was always purple, which made absolutely no sense.
=======================================================================
ema5=ema(5);
ema13=ema(13);
Plot (ema13,"EMA13",ColorBlue,ChartSmoothLine,StyleWidth3);
Plot (ema5,"EMA5",ColorLightBlue,ChartSmoothLine,StyleWidth3);
UpdateColor (ema5<ema13,colorPurple);
After I replaced ChartSmoothLine with ChartLine, the script plotted as expected.
Ema5 was light blue above Ema13 and switched to purple below Ema13:
========================================================
ema5=ema(5);
ema13=ema(13);
Plot (ema13,"EMA13",ColorBlue,ChartLine,StyleWidth3);
Plot (ema5,"EMA5",ColorLightBlue,ChartLine,StyleWidth3);
UpdateColor (ema5<ema13,colorPurple);
Thanks as always,
Josh McCormick
|
|