Does your charting software allow the SMA/EMA change color?

does your charting software allow charts to be created where I can choose to have the SMA/EMA change color based upon whether the moving average is in an up trend or down trend? See this example.

Hi,

Yes, the Moving Average has a Colour Scheme in the properties called Custom. You can select that, and use scripts to set conditions for various colours.

For an MA you could use MA() IsUp for example of a 5SMA line being higher than the previous day.

More information here: Custom Bar/Tool Colours controlled by Script Formulas