在后臺統(tǒng)計當(dāng)日的交易次數(shù) [金字塔]
- 咨詢內(nèi)容:
在后臺里統(tǒng)計模型的當(dāng)日交易次數(shù) ,如果當(dāng)日交易次數(shù)超過10次就停止運行該模型
- 金字塔客服:
交易次數(shù)指的是開倉次數(shù),平倉次數(shù),還是開平加一起的次數(shù)?
- 用戶回復(fù):
開倉次數(shù)
- 網(wǎng)友回復(fù):
if extgbdata('cs')<10 and 開多條件 then begin
tbuy(1,1,mkt);
extgbdataset('cs',extgbdata('cs')+1);
end
if extgbdata('cs')<10 and 開空條件 then begin
tbuyshort(1,1,mkt);
extgbdataset('cs',extgbdata('cs')+1);
end
if time=closetime(0) then extgbdataset('cs',0);
使用走完k線下單模式
- 網(wǎng)友回復(fù): 如果想用在固定輪詢模式的話 需要怎么改動
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容