[原創(chuàng)]歷史測(cè)試和實(shí)時(shí)交易收盤(pán)平倉(cāng) [金字塔]
- 咨詢內(nèi)容:
if date<refx(date,1) then begin
sell(1,holding,limitr,close);
sellshort(1,holding,limitr,close);
end else begin
if(date=currentdate and time=145500 and currenttime>=145900) begin
sell(1,holding,limitr,close);
sellshort(1,holding,limitr,close);
end
end - 金字塔客服:
好像上半段程序已經(jīng)可以完成收盤(pán)平倉(cāng)啦,請(qǐng)問(wèn)下半截程序的用途是什么?
end else begin
if(date=currentdate and time=145500 and currenttime>=145900) begin
sell(1,holding,limitr,close);
sellshort(1,holding,limitr,close);
end
end - 用戶回復(fù):
上半段和下半段是條件不一樣吧
上半段滿足此條件平倉(cāng)if date<refx(date,1)
下半段滿足此條件平倉(cāng)if(date=currentdate and time=145500 and currenttime>=145900)
時(shí)間的限制有區(qū)別,一個(gè)平歷史,一個(gè)平當(dāng)前的
如果以上指標(biāo)公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態(tài)個(gè)股的話,
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容