[求助]漲幅不同分別平倉(cāng),怎么編寫? [金字塔]
- 咨詢內(nèi)容:
條件A,開多;在平倉(cāng)時(shí),區(qū)分兩種情況:開倉(cāng)價(jià)在昨天收盤價(jià)跌幅-1%以上的,按條件B平倉(cāng);但如果開倉(cāng)價(jià)是在昨天收盤價(jià)跌幅-1%以下的,則按贏利兩跳平倉(cāng)。請(qǐng)教下如何編寫,謝謝
- 金字塔客服:
if b and (enterprice-ref(close,todaybar))/ref(close,todaybar)<=-0.01 then 平倉(cāng)語(yǔ)句
if (enterprice-ref(close,todaybar))/ref(close,todaybar)>-0.01 and (enterprice-ref(close,to;daybar))/ref(close,todaybar)<0 and h>=enterrpcie+2*mindiff then 平倉(cāng)語(yǔ)句;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容