input:length(20);
variable:up1(0),down1(0),mid1(0),bbandwidth(0);
up1 = bollingerband(Close, Length, 1);
down1 = bollingerband(Close, Length, -1 );
mid1 = (up1 + down1) / 2;
bbandwidth = 100 * (up1 - down1) / mid1;
if bbandwidth crosses above 5 and close > up1 and close> up1[1]
and average(close,20)>average(close,20)[1]
then ret=1;
我修改後好像還是不行
請問我要撰寫語法,可是我調整後還是不行,
想要編寫一個
布林通道震幅A日都在B%內
(上通道除下通道)減一)乘100%=C%
輸入A日語B%選出C
請教大大如何編寫
5 評論