加倉及移動止損要怎么寫 [金字塔]
- 咨詢內(nèi)容:
價格大于1200,買入1手,止損1150;繼續(xù)上升到1250,加倉買入1手,兩手持倉止損1200。請問要怎么寫語句?謝謝!
- 金字塔客服:
if h>1200 and h<1250 then buy(holding=0,1,thisclose);
if l<1150 and hhv(h,enterbars+1)>1200 and hhv(h,enterbars+1)<1250 then sell(1,0,thisclose);
if h>=1250 then buy(holding=1 or holding=0,1,thisclose);
if l<1200 and hhv(h,enterbars+1)>=1250 then sell(1,0,thisclose);
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容