加倉及移動止損要怎么寫 [金字塔]
- 咨詢內容:
價格大于1200,買入1手,止損1150;繼續上升到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);
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容