1.macdͬ?同花d同?˳ָ?깫ʽԴ??
2.求同花顺 公式:MACD红柱缩短后(不转绿)再转长(转长的第一根红柱)谢谢!
3.有关同花顺macd公式的顺指式源编写
macdͬ??˳ָ?깫ʽԴ??
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIF,MID);
MACD0:=(DIF-DEA)*2;
XXX:=IF(N=1,DIF,IF(N=2,DEA,IF(N=3,MACD0,0)));
XG:CROSS(DIF,DEA) AND REF(LLV(L,BARSLAST(CROSS(DEA,DIF))+1),BARSLAST(CROSS(DIF,DEA))+1)<REF(LLV(L,BARSLAST(CROSS(DEA,DIF))+1),BARSLAST(CROSS(DIF,DEA))+1+REF(BARSLAST(CROSS(DIF,DEA))+1,BARSLAST(CROSS(DIF,DEA))+1)) AND REF(LLV(XXX,BARSLAST(CROSS(DEA,DIF))+1),BARSLAST(CROSS(DIF,DEA))+1)>REF(LLV(XXX,BARSLAST(CROSS(DEA,DIF))+1),BARSLAST(CROSS(DIF,DEA))+1+REF(BARSLAST(CROSS(DIF,DEA))+1,BARSLAST(CROSS(DIF,DEA))+1));
这个公式可以通过参数n调整选择dif背离,dea背离,macd绿柱背离,不能选背驰.
参数照着上填写.
求同花顺 公式:MACD红柱缩短后(不转绿)再转长(转长的第一根红柱)谢谢!
DIF:EMA(CLOSE,花顺黄金指标源码推荐)-EMA(CLOSE,);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
第一红:BARSLASTCOUNT(MACD>0)=1;
短后长:MACD>0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2);
试试吧。测试过了。同花d同
有关同花顺macd公式的顺指式源react前端源码编写
你说的红柱就是macd的数值,也就是花顺原创源码指标今天的数值比昨天的小,下面是同花d同通达信的macd选股公式供你参考,然后自己去改DIFF := EMA(CLOSE,顺指式源) - EMA(CLOSE,);DEA := EMA(DIFF,);
MACD := 2*(DIFF-DEA);
CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,) and MA(CLOSE,)>MA(CLOSE,)
and DIFF>DEA AND MACD>REF(MACD,1) and DIFF>0 AND DEA>0 and MA(VOL,5)>MA(VOL,)
and MA(CLOSE,)>=REF(MA(CLOSE,),1);这里的MACD>REF(MACD,1)这句话的意思就是说今天的macd和昨天的REF(MACD,1),如果需要前天的花顺macd值,语句则变为REF(MACD,同花d同2),需要大前天的顺指式源值只需要把2改成3,明白没有,花顺建议你先学习股票公式语言函数,同花d同读源码方式
顺指式源顺指式源2024-11-26 20:30
2024-11-26 20:10
2024-11-26 19:58
2024-11-26 19:54
2024-11-26 19:44
2024-11-26 19:06