this code does the following:
if the bar is closing above the given SMA value, the color changes to green.
if the bar is closing below the given SMA value, the color changes to red.
the SMA value can be changed in the properties.
hop you can use it!
greatings
emilio
Comment