Jim![]() New User Posts: 2 Joined: 10/27/2014 Location: Saint Louis, MO ![]() | Hi, Does anyone have a reference for how to plot a color change code for this histogram? If the current bar is greater than the previous bar, then plot green If the current bar is less than the previous bar, then plot red. Thanks, Jim #Indicator #PARAM "ShortPeriods", 5 #PARAM "LongPeriods", 34 Dim fMACDao as Single if bar > LongPeriods then fMACDao = SMA((H+L)/2, ShortPeriods) - SMA((H+L)/2, LongPeriods) Plothist("MACDao", fMACDao, 0) end if Return fMACDao |