我寫了一個簡單的程式想要篩盤中k線突破均價線,可是有一些股出現記算錯誤,請問我有沒注意到的地方嗎?謝謝!
[程式碼]
if date<>date[1]
then begin
value11=0;
value12=1;
end;
value11+=V*(H+L)/2;
value12+=V;
value13=value11/value12;
value14=EMA(close,9);
if (c>value13) and (L<=value13)
then ret=1;
[錯誤訊息]
如附件
1 評論