請教編碼1 [金字塔]
- 咨詢內(nèi)容:
以下思路,請幫忙編制代碼:
入場規(guī)則:創(chuàng)造一個新的20日高點(diǎn),并且在接下來的7個交易日中再創(chuàng)一個5日低點(diǎn)。一旦5日低點(diǎn)形成,就在下一個交易日開盤時買進(jìn)1手
出場規(guī)則分三種:1、在交易的第N天出場或虧損1000元出場2、在20日高點(diǎn)出場或虧損1000元出場3、在40天低點(diǎn)出場或虧損1000元出場
謝謝! - 金字塔客服:
日線策略嗎?
- 用戶回復(fù):
日線
- 網(wǎng)友回復(fù):
if ref(l=llv(l,5) and barslast(h=hhv(h,20))<=7,1) then buy(holding=0,1,marketr);
if openprofit<-1000 then sell(1,0,marketr);
if enterbars=n then sell(1,0,marketr);
if enterbars>0 and h=hhv(h,20) then sell(1,0,marketr);
if enterbars>0 and l=llv(l,40) then sell(1,0,marketr) - 網(wǎng)友回復(fù):
多謝!
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容