Plot scan between two values

S

slastampa

New member
VIP
Can you please help with following code? Error: Invalid statement: input at 9:1 on lowLimit and highLimit.

Code:
input priceType = PriceType.LAST;
def LastPrice = close(priceType = priceType);
input length = 20;
input AverageType = averageType.EXPONENTIAL;
input percentdiff_b = 0.50;
input percentdiff_a = 1.00;
def avg = movingAverage(averageType,CLOSE,length);
input lowLimit = avg * (1 - percentdiff_a / 100));
input highLimit = avg * (1 - percentdiff_a / 100);
plot scan = Between(LastPrice, lowLimit, highLimit);
 
Top