請教開倉語句是否有區別! [金字塔]
- 咨詢內容:
if holding=0 and 開倉 then begin
buy(1,1,LIMITR,c);
end和
if 開倉 then begin
buy(holding=0,1,LIMITR,c);
end有區別嗎? 區別在哪?
- 金字塔客服:
從這兩句來說,是一樣效果的
- 用戶回復:
在什么樣的情況下效果會不一樣呢?
- 網友回復:
在有全局變量賦值上,會不一樣
比如:
variable:n=0;
if holding=0 and 開倉 then begin
buy(1,1,LIMITR,c);n:=n+1;
end和
if 開倉 then begin
buy(holding=0,1,LIMITR,c);
n:=n+1;
end這兩個會不一樣,缺少個holding=0 的判斷,得出的N結果會不一樣
[此貼子已經被作者于2013/12/20 8:50:51編輯過]
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容