請幫忙編寫一下后臺交易策略 [金字塔]
- 咨詢內容:
sell(holding>0 and 平多 or 清倉時間,0,LIMIT,c),orderqueue,IGNORECHECKPRICE;;
sellshort(holding<0 and 平空 or 清倉時間,0,LIMIT,c),orderqueue,IGNORECHECKPRICE;;
buy(holding=0 and 開多 and 開倉時間,1,LIMIT,c),orderqueue,IGNORECHECKPRICE;;
buyshort(holding=0 and 開空 and 開倉時間,1,LIMIT,c),orderqueue,IGNORECHECKPRICE;;求管理將清倉時間變量改成中午11:28分清倉和下午2:58分清倉 開倉時間為早9:00分和下午1:30分
我現在使用機構版交易對后臺交易不是太了解,想將以上交易代碼改成后臺程序化,品種默認自選,注:這個策略是以超短線1分鐘圖表交易
- 金字塔客服:
再幫助寫一下2分鐘之內發生交易掛單未成交撤單
- 用戶回復:
清倉時間:= time>=112800 and time<=113000 or (time>=145800 and time<=150000);
開車時間:=time>090000 and time<112800 or (time>133000 and time<145800);
tsell(tholding>0 and 平多 or 清倉時間,0,lmtc),orderqueue;
tsellshort(tholding<0 and 平空 or 清倉時間,0,lmt,c),orderqueue;
tbuy(tholding=0 and 開多 and 開倉時間,1,Lmt,c),orderqueue;
tbuyshort(tholding=0 and 開空 and 開倉時間,1,Lmt,c),orderqueue;
后面的撤單需求,按照當前的后臺函數,是檢測不了多少時間的未成交單,只能檢測當前是否有未成交單
- 網友回復:
實在是感謝至極
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容