請(qǐng)教關(guān)于variable [金字塔]
- 咨詢內(nèi)容:
多頭:多頭條件A成立后,一直有效,當(dāng)條件B成立時(shí),條件A失效。
空頭:空頭條件B成立后,一直有效,當(dāng)條件A成立時(shí),條件B失效。
variable:M1=0;
variable:M2=0;IF 條件A then begin
M1:=1;
M2:=0;
END
IF M1=1 then buy;
IF 條件B then begin
M1:=0;
M2:=1;
END
IF M2=1 then buyshort;
是這樣寫(xiě)的嗎
[此貼子已經(jīng)被作者于2013/11/27 10:47:32編輯過(guò)] - 金字塔客服:
IF 條件A and holding=0 then begin
buy;
M1:=1;
M2:=0;
END
IF 條件B and holding=0 then begin
buyshort;
M1:=0;
M2:=1;
END
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容