編寫盈利是個點位平倉 [金字塔]
- 咨詢內(nèi)容:
請教如何編寫盈利10個點位平倉。我使用的是1小時周期。MA5>MA10開多,反之開空。本周結(jié)束開倉。次周期一旦達(dá)到10個點位盈利即平倉。請大師幫忙編寫下。謝謝!
- 金字塔客服:
處理中,請稍等
- 用戶回復(fù):
用走完一根k線模式
ma5:ma(c,5);
ma10:ma(c,10);
if ma5>ma10 then buy(holding=0,1,market);
if ma5<ma10 then buyshort(holding=0,1,market);
if h-ENTERPRICE>=10 and enterbars>=0 then sell(holding>0,holding,market);
if ENTERPRICE-l>=10 and enterbars>=0 then sellshort(holding<0,holding,market);
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容