求老師幫忙 [金字塔]
- 咨詢內容:
//為什么我的后臺止贏不好用,是哪里寫錯了?
//如果持倉盈利大于50點則開始移動止贏
持倉:=holding;
持倉1:=THOLDING2;
VARIABLE:biaoji=0;
VARIABLE:zuigao=0;
VARIABLE:zuidi=0;
if h-tenterprice>50 and tbuyholding(0)>0 and biaoji=0 then begin
zuigao:=HIGH;
biaoji:=1;
end
if HIGH>zuigao and tbuyholding(0)>0 then zuigoa:=HIGH;
if LOW<zuigao-1 and tbuyholding(0)>0 then begin
tsell(1,0,mkt);
biaoji:=0;
end
if tenterprice-l>50 and TSELLHOLDING(0)>0 and biaoji=0 then begin
zuidi:=LOW;
biaoji:=1;
end
if LOW<zuidi and TSELLHOLDING(0)>0 then zhuidi:=LOW;
if HIGH>zuidi-1 and tbuyholding(0)>0 then begin
tsellshort(1,0,mkt);
biaoji=0;
end - 金字塔客服:
后臺不要用圖表全局變量variable
后臺的全局變量是用extgbdataset或者GLOBALVARIABLE
GLOBALVARIABLE用法和variable一樣,extgbdataset用法看函數說明,比GLOBALVARIABLE復雜一點 - 用戶回復:
好的,我具體研究一下
謝謝!
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容