if getfielddate("Date") <> getfielddate("Date")[1] then value1 = volume; //開盤第一根成交量
if currentTime >= 090100 and currentTime <= 093000 then begin
value2 = getbarOffset(date, 090100);
condition1 = volume = highest(volume, value2) ;
condition2 = volume > value2 ;
condition3 = GetField("量比", "1") > 1 ;
condition4 = GetField("Volume", "D") > 200;
condition5 = GetField("Volume", "D")[1] > 500 ;
condition6 = GetField("high","1") > GetField("high","1")[1] ;
condition7 = GEtField("HIGH","D") >= GEtField("open","D")*1.012 ;
condition8 = GetField("買進特大單量") > (GetField("成交量") * 0.1) ;//特大單比重大於10趴
condition9 = (GetField("買進特大單量")+GetField("買進大單量"))*4 >= GetField("成交量") ;//主力力道大於25趴
condition10 = GetInfo("IsRealTime") = 1 ;
if
condition1 and condition2 and condition3 and condition4 and condition5 and condition6 and condition6 and condition7 and condition8 and condition9 and condition10
then begin
ret = 1;
print (file("C:\Users\jim\Downloads\破高.txt"),Symbol,SymbolName,"時間=", NumToStr(Date, 0), "成交=", NumToStr(Close, 2), "量=", GetField("量比", "1"), "漲幅=",GetQuote("PriceChangeRatio"));
end;
end;
為什麼輸出的文字檔都一堆重複的是哪裡錯嗎?
1 評論