請教關于variable [金字塔]
- 咨詢內容:
多頭:多頭條件A成立后,一直有效,當條件B成立時,條件A失效。
空頭:空頭條件B成立后,一直有效,當條件A成立時,條件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;
是這樣寫的嗎
[此貼子已經被作者于2013/11/27 10:47:32編輯過] - 金字塔客服:
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
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容