請問,我想寫一個5分K的警示語法,用在09:00 - 09:05來選股,就是前一天是走空頭(下跌),今天開盤第1根K棒也是綠K,但是選出來的不正確,是哪裡有問題嗎?
IF Time >= 090000
AND Time <= 090500
and volume >=1500
and open < close
and openD(1) < closeD(1)
then
begin
ret=1;
END;
附加文件
2 評論
if time=090500 then
condition1=getField("Close","D")[1]<getField("Close","D")[2]; //昨天下跌
condition2=close[1]<open[1]; //今天第一根K為綠K
if condition1 and condition2 then ret=1;
end;
謝謝許教授
2 評論