Can someone give me advice why is MACDDiff still ploting with 240 min. chart although I gave the data2 comand in
the code. MACD line(yellow) looks fine but the MACDAvg(cyan) has some issues as well.
inputs:
double FastLength( 12 ), { the shorter of the two exponential moving average
lengths used to calculate the MACD value, in bars }
double SlowLength( 26 ), { the longer of the two exponential moving average
lengths used to calculate the MACD value, in bars }
double MACDLength( 9 ), { the number of bars over which to exponentially average
the MACD value }
int MACDDiff_Up_Color( UpColorDefault ), { color to be used to plot positive
values of MACDDiff }
int MACDDiff_Down_Color( DownColorDefault ), { color to be used to plot
negative values of MACDDiff }
int BackgroundColorAlertCell( DarkGray ) ; { if alert criteria are met, this is
the color used for the cell background in RadarScreen; if it is not desired
for the cell background color to change when the alert criteria are met, set
this input to the default cell background color }