macd頂?shù)妆畴x [金字塔]
-
咨詢(xún)內(nèi)容:
macd綠柱與上一個(gè)周期macd綠柱diff的比較,如果diff>ref(diff,1) and low<ref(low,1)則底背離,同理紅柱頂背離,謝謝!
?
-
金字塔客服:
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
底背離:macd<0 and ref(macd,1)<0 and diff>ref(diff,1) and l<ref(l,1);
頂背離:macd>0 and ref(macd,1)>0 and diff<ref(diff,1) and h>ref(h,1);
?
-
用戶(hù)回復(fù):
謝謝金老師,怎樣把頂背離,底背離寫(xiě)到背離點(diǎn)上?
?
-
網(wǎng)友回復(fù):
macd:=stkindi('','macd.macd1',0,datatype);
diff:=stkindi('','macd.diff',0,datatype);
底背離:macd<0 and ref(macd,1)<0 and diff>ref(diff,1) and l<ref(l,1);
頂背離:macd>0 and ref(macd,1)>0 and diff<ref(diff,1) and h>ref(h,1);
drawtext(底背離,macd,'底背離');
drawtext(頂背離,macd,'頂背離');
?
?
?
-
網(wǎng)友回復(fù):
怎樣實(shí)現(xiàn)區(qū)間的llv(diff)與ref(llv(diff),1)的比較?
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容