|
本帖最後由 as36914 於 14-6-24 22:39 編輯
Input:A1(18),A2(33),A3(115),A4(223);
Vars:MA1(0),MA2(0),MA3(0),MA4(0),value99(0);
if date <> date[1] then begin
value99 = 0;
MA1 = AverageFC(close,A1);
MA2 = AverageFC(close,A2);
MA3 = AverageFC(close,A3);
MA4 = AverageFC(close,A4);
end;
if MA1 > ma2 then value90 = 1;
if ma1 < ma2 then value90 = -1;
if ma3 > ma4 then value91 = 1;
if ma3 < ma4 then value91 = -1;
value99 = value90 + value91 ;
plot1(value99);
XX
請教各位高手~~為什麼value99 隔天開盤~~為什麼沒有歸零
拜託了
謝謝
|
|