平倉條件,如果想做止盈止損怎么寫? [金字塔]
- 咨詢內(nèi)容:
例如,盈利或虧損1.5倍ATR出場(chǎng)。需要判斷先后嗎?
- 金字塔客服:
atr:=stkindi('','atr.atr',0,datatype);
if openprofit/multipler>1.5*atr then begin
sell(1,0,marketr);
sellshort(1,0,market);
end
if openprofit<0 and abs(openprofit)/multipler>1.5*atr then begin
sell(1,0,marketr);
sellshort(1,0,market);
end
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容