請教一下,我要計算布林下軌,使用下列程式碼,可是計算出的數字卻跟用系統預設的數字不同,可否解答?
input:
Length(20, "MA的天數"),
UpperBand(2, "上通道標準差倍數"),
LowerBand(2, "下通道標準差倍數");
variable: mid(0), up(0), down(0);
up = bollingerband(Close, Length, UpperBand);
mid = average(close, Length);
down = bollingerband(Close, Length, -1 * LowerBand);
value1=bollingerband(Close, 20, -2);
Ret = 1;
outputfield(1,down,2,"布林低軌");



5 評論