飞狐天堂星MACD实战副图指标
源码
MA3:MA(CLOSE,3);
MA5:MA(CLOSE,5);
MA7:MA(CLOSE,7);
MA15:MA(CLOSE,15);
ma30:ma(close,30);
ma60:ma(close,60),coloryellow;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
双线合一:=count(cross(diff,dea),2)=1 ;
短均线多头:=ma3>ma5 and ma5>ma7;
中均线多头:=ma15>ma30 and ma30>ma60;
aa:=双线合一 and 短均线多头 and filter(双线合一 and 短均线多头,2);
stickline(diff>=dea,h,l,0.5,0),colorred;
stickline(diff>=dea,o,c,5,0),colorred;
stickline(diff<dea,h,l,0.5,0),colorf0f000;
stickline(diff<dea,o,c,5,0),colorf0f000;
短线介入:drawicon(aa and diff<0.15,l*0.99,1);
大胆介入:drawicon(aa and diff>macd and diff<0.15,l*0.95,1);