{步步稳盈 副图}
AA1:=EMA(EMA(C,13),13);
AA2:=(AA1-REF(AA1,1))/REF(AA1,1)*1000;
AA3:=DYNAINFO(11);
AA4:=(EMA(C,8)-EMA(C,55))*10;
AA5:=EMA(AA4,3);
AA6:=(C-AA3)/AA3<(-0.03);
AA7:=AA2>REF(AA2,1) AND AA2<(-0.2);
AA8:=CROSS(AA4,AA5) AND AA4<(-0.3);
XG1:=FILTER(AA6 AND AA7 AND AA8,13);
AC1:=(C-MA(C,6))/MA(C,6)*100;
AC2:=(C-MA(C,12))/MA(C,12)*100;
AC3:=(C-MA(C,24))/MA(C,24)*100;
AC4:=(AC1+2*AC2+3*AC3)/6;
GL:=MA(AC4,3);
XG2:=CROSS(AC4,GL) AND GL<(-9);
DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);
周DIF:=MA(MACD.DIF#WEEK,5);
周DEA:=MA(MACD.DEA#WEEK,5);
月DIF:=MA(MACD.DIF#MONTH,20);
月DEA:=MA(MACD.DEA#MONTH,20);
XG3:=月DIF>=REF(月DIF,1) AND 周DIF>=REF(周DIF,1);
RSV:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
月K:=MA(KDJ.K#MONTH(9,3,3),20);
月D:=MA(KDJ.D#MONTH(9,3,3),20);
月J:=MA(KDJ.J#MONTH(9,3,3),20);
周K:=MA(KDJ.K#WEEK(9,3,3),5);
周D:=MA(KDJ.D#WEEK(9,3,3),5);
周J:=MA(KDJ.J#WEEK(9,3,3),5);
XG4:=月K>=REF(月K,1) AND 周K>=REF(周K,1);
OK:=IF(XG3 AND XG4,20,0);
稳盈:=BARSLAST(XG2)<13 OR BARSLAST(XG1)<13 AND OK=20 AND REF(OK,1)=0 OR (XG1 AND OK);
XG:=稳盈;
{红柱}
{--------------------------------------------------}
STICKLINE(XG=1,0,1,4.0,0),COLORFFBBFF;
STICKLINE(XG=1,0,1,3.5,0),COLORFF00FF;
STICKLINE(XG=1,0,1,3.0,0),COLORFF22FF;
STICKLINE(XG=1,0,1,2.5,0),COLORFF44FF;
STICKLINE(XG=1,0,1,2.0,0),COLORFF66FF;
STICKLINE(XG=1,0,1,1.5,0),COLORFF88FF;
STICKLINE(XG=1,0,1,1.0,0),COLORFF99FF;
STICKLINE(XG=1,0,1,0.5,0),COLORFFAAFF;
{-----------------------------------------------------}
DRAWTEXT(XG=1,0.9,' 介入'),COLORYELLOW;
DRAWICON(XG=1,1.05,34);