{三红共振主图源码如下}
MA1:MA(CLOSE,18);
EXP2:EMA(CLOSE,10);
EXP3:EMA(CLOSE,60),COLORMAGENTA,LINETHICK1 DOTLINE;
ABC1:=(CLOSE*2+HIGH+LOW)/4;
ABC2:=EMA(ABC1,13)-EMA(ABC1,34);
ABC3:=EMA(ABC2,5);
ABC4:=(-2)*(ABC2-ABC3)*3.8;
ABC5:=2*(ABC2-ABC3)*3.8;
ACB1:=CLOSE-MA(CLOSE,12.5);
ACC1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
ACC2:=EMA(ACC1,9);
ACC3:=2*(ACC1-ACC2);
红色:=ABC5>0 AND ACB1>0 AND ACC1>=0;
输出牛:=BARSLASTCOUNT(红色)=1;
DRAWICON(输出牛,L,9);
STICKLINE(输出牛,C,O,2,0),COLORYELLOW;
{长线红副图源码如下}
ACC1:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
ACC2:=EMA(ACC1,9);
ACC3:=2*(ACC1-ACC2);
绿柱消失买入:STICKLINE(ACC1<0,0,ACC1,2.5,1),COLORGREEN;
红柱消失卖出:STICKLINE(ACC1>=0,0,ACC1,2.5,1),COLORRED;
{短线红副图源码如下}
ABC1:=(CLOSE*2+HIGH+LOW)/4;
ABC2:=EMA(ABC1,13)-EMA(ABC1,34);
ABC3:=EMA(ABC2,5);
ABC4:=(-2)*(ABC2-ABC3)*3.8;
ABC5:=2*(ABC2-ABC3)*3.8;
短线多:ABC5>0,COLORRED LINESTICK;
短线空:ABC5< 0,COLORGREEN LINESTICK;
{中线红副图源码如下}
ACB1:=CLOSE-MA(CLOSE,12.5);
中线多:ACB1>0,COLORRED STICK;
中线空:ACB1<0,COLORGREEN STICK;