I have added the following code to the _MACD.afl to color the MACD bars red when below zero and green when above zero:
dynamic_color = IIf( ml > sl, colorGreen, colorRed );
Plot( ml-sl, "MACD Histogram", dynamic_color, styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
My question:
How do I modify the _Price.afl to color the price bars based on if MACD is below or above zero?
dynamic_color = IIf( ml > sl, colorGreen, colorRed );
Plot( ml-sl, "MACD Histogram", dynamic_color, styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
My question:
How do I modify the _Price.afl to color the price bars based on if MACD is below or above zero?