指標(biāo)高低顯示 [金字塔]
- 咨詢內(nèi)容:
我想顯示macd紅藍(lán)柱子的峰值,并在高低點(diǎn)標(biāo)記數(shù)值,請(qǐng)問怎么寫.?
- 金字塔客服:
在系統(tǒng)自帶的macd指標(biāo)里面添加下面的代碼
runmode:0;
nn1:=barslast(macd1<0 and ref(macd1>0,1));
nn2:=barslast(macd1>0 and ref(macd1<0,1));
ll1:=llv(macd1,nn1);
hh1:=hhv(macd1,nn2);
if macd1<0 then ll:=ll1;
if macd1>0 then hh:=hh1;
drawtext(macd1>0 and macd1=hh1,macd1,numtostr(macd1,2));
drawtext(macd1<0 and macd1=ll1,macd1,numtostr(macd1,2));
- 用戶回復(fù):
顯示不對(duì)噢, 只顯示了一邊, 并不是顯示的最大值.
- 網(wǎng)友回復(fù):
我本地測(cè)試是沒問題的,顯示了最高值
- 網(wǎng)友回復(fù):
wo de xiaoguo
此主題相關(guān)圖片如下:111.png
dd
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容