請(qǐng)老師幫忙寫個(gè)策略 [金字塔]
-
咨詢內(nèi)容:
老師:請(qǐng)幫忙寫個(gè)代碼
連續(xù)2根陽線,第3根open 開多,盈利10跳 平多(開倉當(dāng)根,若滿足盈利就當(dāng)根平倉);?
- 金字塔客服: 老師:請(qǐng)幫忙寫個(gè)代碼
-
用戶回復(fù):
if ref(all(c>o,2),1) and holding=0 then buy(1,1,marketr);
if close-enterprice>10*mindiff and holding>0 then sell(1,holding,marketr);
if low<ref(low,enterbars+1) and holding>0 then sell(1,1,marketr);
連續(xù)2根陽線,第3根open 開多,盈利10跳 平多(開倉當(dāng)根,若滿足盈利就當(dāng)根平倉);若開倉后low<第一根陽線的LOW,則止損。
?
?來源:程序化久久網(wǎng)( www.kzuj.com.cn )
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信:cxhjy888 進(jìn)行 有償收費(fèi) 編寫!(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容