困擾幾個月的問題了,把我的代碼貼出來,請大師指點 [金字塔]
- 咨詢內容:
這個問題以后困擾了我好幾個月了,快崩潰了!
我一直想用MACD 來下單的
ZH1:'803731';
PZ1:'IF06';
VARIABLE:A=0;
VARIABLE:B=0;
VARIABLE:E=0;
VARIABLE:D=0;thisc:=CALLSTOCK(stklabel,vtclose,1,0);
MA5:=MA(thisc,5);
MA10:=MA(thisc,10);
ENTERTIME:=TIME>090000 AND TIME<151400;
MACD1:=stkindi(stklabel,'MACD.MACD1',0,1,0);
h1:=CALLSTOCK(stklabel,vthigh,3,-1);
l1:=CALLSTOCK(stklabel,vtlow,3,-1);
h2:=CALLSTOCK(stklabel,vthigh,2,-1);
l2:=CALLSTOCK(stklabel,vtlow,2,-1);
thish:CALLSTOCK(stklabel,vthigh,1,0);
thisl:CALLSTOCK(stklabel,vtlow,1,0);
15分鐘的最低價:l1;
15分鐘的最高價:h1;//早盤15分鐘突破
if Tholding=0 and thish>15分鐘的最高價+m AND thisl>MA5 AND time<095000 then begin
Tbuy(1,1,mkt,0,0);
end
if Tholding=0 and thisl<15分鐘的最低價-m AND thish<MA10 AND time<095000 then begin
Tbuyshort(1,1,mkt,0,0);
end
//開平反手if Tholding>0 and Tenterbars>10 AND MACD1<0 AND ENTERTIME THEN begin
Tsell(1,0,mkt,0,0);
tBUYSHORT(1,2,MKT,0,0);
end
if Tholding<0 and Tenterbars>10 AND MACD1>0 AND ENTERTIME then begin
Tsellshort(1,0,mkt,0,0);
Tbuy(1,2,mkt,0,0);
end我是在10筆圖上跑的,引用的一分鐘的數據
我的想法主要是通過MACD>0 或<0 開倉的可以他總是在圖表上顯示的位置不開倉, 而在下一分鐘上開倉。
哪位大師可以幫我一下,不勝感激!!!
- 金字塔客服:
走完k線模式?
- 用戶回復:
固定時間一秒
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容