Moving Averages plotting a "straight line"?
Moving Averages plotting a "straight line"?
05 Oct 2020, 03:10
Hello everyone, I'm trying to create a moving average that changes color if EMA1 < EMA2 but when condition is false the the other EMA color is plotted as a straight line, there is a way to remove the straight part?
Picture below.
Replies
PanagiotisCharalampous
05 Oct 2020, 08:45
Hi arthur.albert990,
You need to use a DiscontinuousLine plot type.
Best Regards,
Panagiotis
@PanagiotisCharalampous
arthur.albert990
16 Oct 2020, 14:36
RE:
Hello PanagiotisCharalampous,
Thank you for your help, it worked great.!
@arthur.albert990
arthur.albert990
05 Oct 2020, 03:13
RE: Code below.
@arthur.albert990