{双涨回马主图源码如下}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
界:=MA(CLOSE,27);
ZT:=C/REF(C,1)>1.0993 AND C=H;
STICKLINE(ZT,O,C,2,0),COLORRED;
DT:=C/REF(C,1)<0.913 AND C=L;
STICKLINE(DT,O,C,2,0),COLORGREEN;
MA3:MA(C,3),COLORRED,LINETHICK1;
MA7:MA(C,7),COLORYELLOW,LINETHICK1;
MA10:MA(C,10),COLORGREEN,LINETHICK1;
YCX:=MA3>=REF(MA3,1);
H1:=MAX(MAX(MA3,MA7),MA10);
L1:=MIN(MIN(MA3,MA7),MA10);
一阳穿三线:= H1<C AND O<L1 AND YCX AND MA3>REF(MA3,1);
ZTT:=C>REF(C,1)*1.091 AND C=H;
XG:=REF(ZTT,5) AND REF(ZTT,4) AND C>O AND C>REF(C,1) AND C>REF(O,5) AND REF(ZTT,6)=0;
DRAWICON(XG,LOW-0.2,1);
DRAWICON(XG,LOW-0.5,9);
{双涨回马副图源码如下}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
指导:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
界:=MA(CLOSE,27);
B买:=IF(CROSS(指导,界) OR CROSS(买线,卖线),C,DRAWNULL);
持仓:=IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;
S卖:=IF(CROSS(界,指导) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:=IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;
ZT:=C/REF(C,1)>1.0993 AND C=H;
DT:=C/REF(C,1)<0.913 AND C=L;
MA3:=MA(C,3),COLORRED,LINETHICK1;
MA7:=MA(C,7),COLORYELLOW,LINETHICK1;
MA10:=MA(C,10),COLORGREEN,LINETHICK1;
YCX:=MA3>=REF(MA3,1);
H1:=MAX(MAX(MA3,MA7),MA10);
L1:=MIN(MIN(MA3,MA7),MA10);
一阳穿三线:= H1<C AND O<L1 AND YCX AND MA3>REF(MA3,1);
ZTT:=C>REF(C,1)*1.091 AND C=H;
XG:=REF(ZTT,5) AND REF(ZTT,4) AND C>O AND C>REF(C,1) AND C>REF(O,5) AND REF(ZTT,6)=0;
STICKLINE(XG,50,38,2.5,0),COLORYELLOW ;
STICKLINE(XG,38,12,2.5,0),COLORRED;
STICKLINE(XG,12,0,2.5,0),COLORYELLOW;