I wrote a a script to back test a Moving Average Crossing a Displaced Moving Average as follows:
#Inputs
input averageTypeFast = AverageType.SMA;
input averageTypeSlow = AverageType.SMA;
input fastMALength = 5;
input slowMALength = 10;
input slowMADisplace = -1;
plot fastMA = MovingAverage(averageTypeFast, close, fastMALength);
plot slowMA = MovingAverage(averageTypeSlow, close, slowMAlength, slowMADisplace); **
** TOS returned the following ERROR... 3 params expected but 4 found while calling movingaverage
Can anyone help me correct this error? Your help would be greatly appreciated!
#Inputs
input averageTypeFast = AverageType.SMA;
input averageTypeSlow = AverageType.SMA;
input fastMALength = 5;
input slowMALength = 10;
input slowMADisplace = -1;
plot fastMA = MovingAverage(averageTypeFast, close, fastMALength);
plot slowMA = MovingAverage(averageTypeSlow, close, slowMAlength, slowMADisplace); **
** TOS returned the following ERROR... 3 params expected but 4 found while calling movingaverage
Can anyone help me correct this error? Your help would be greatly appreciated!