I created the following indicator to color the background when a EMA crosses over or below a SMA. However i would like the background to stay painted until the opposite crossover happens rather than just for one bar.
Is it possible to have a condition instead of a fix number to define the length of the coloring?
CrossAbove(EMA(FastEMA), SMA(SlowSMA), 1)
See indicator attached
thanks
Comment