ihzx 发表于 2021-8-21 12:52:11

向上发散MACD和资金指数二合一(飞狐)

<p>DIFF:=EMA(C,10) -EMA(C,30);<br />
DEA:=EMA(DIFF,3);<br />
向上发散MACD:200*(DIFF-DEA), COLORSTICK;<br />
STICKLINE(C&gt;EMA(C,10),0,向上发散MACD,0,0)COLOR6666FF;<br />
STICKLINE(C&lt;EMA(C,30),0,向上发散MACD,0,0)COLORFFFF66;<br />
VAR1:=(EMA(C,10)-REF(EMA(C,10),1))/REF(EMA(C,10),1)*1000;<br />
VAR2:=(EMA(C,30)-REF(EMA(C,30),1))/REF(EMA(C,30),1)*1000;<br />
STICKLINE(VAR1&gt;=VAR2 AND VAR2&gt;0 AND C&gt;EMA(C,30),0,向上发散MACD,5,1),COLOR6666FF;<br />
个股能量线:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3)-30, COLORRED,linethick2;<br />
大盘能量线:EMA(100*(INDEXC- LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3)-30,colorgreen,linethick2;</p>
<p></p>
<p>&nbsp;</p>
页: [1]
查看完整版本: 向上发散MACD和资金指数二合一(飞狐)