三红共振选股:=(INDEXC-EMA(INDEXC,12))/EMA(INDEXC,12)*100;
指标公式:=EMA(三红共振选股,9);{股票公式-股票指标www.gs6699.com}
DIF2:(EMA(C,12)-EMA(C,26))/EMA(C,26)*100;
DEA2:EMA(DIF2,9);
DRAWBAND(DIF2,RGB(205,92,92),DEA2,RGB(28,134,238));
MACD2:(DIF2-DEA2)*2,NODRAW;
STICKLINE(MACD2>=0 AND MACD2>REF(MACD2,1),0,MACD2,2.5,0),COLORRED;
STICKLINE(MACD2<0 AND MACD2<REF(MACD2,1),0,MACD2,2.5,0),COLORMAGENTA;
ssddd1:IF(DIF2>=REF(DIF2,1),DIF2,DRAWNULL)COLORRED,LINETHICK2;
ssddd2:STICKLINE(MACD2<0 AND MACD2>=REF(MACD2,1),0,MACD2,2.5,0)COLORWHITE;
ssddd3:STICKLINE(MACD2>=0 AND MACD2<REF(MACD2,1),0,MACD2,2.5,0)COLORYELLOW;
ssddd4:(MACD2-LLV(MACD2,20))/(HHV(MACD2,20)-LLV(MACD2,20))*10,COLORRED,LINETHICK2;
ssddd5:IF(ssddd4>REF(ssddd4,1),ssddd4,DRAWNULL),COLORRED;
ssddd6:IF(ssddd4<REF(ssddd4,1),ssddd4,DRAWNULL),COLORGREEN,LINETHICK2;
ssddd7:(DIF2-LLV(DIF2,20))/(HHV(DIF2,20)-LLV(DIF2,20))*10,COLORYELLOW;
ssddd8:(DEA2-LLV(DEA2,20))/(HHV(DEA2,20)-LLV(DEA2,20))*10,COLORLICYAN;
DRAWICON(CROSS(ssddd8,0.001),-9,13);
ssddd9:IF(ssddd4=0 AND ssddd7=0,-7,-10);
ssddd91:IF(ssddd4=0 AND ssddd7=0 AND ssddd8=0,-5,-10),LINETHICK2,COLORGREEN;
ssddd92:IF(LAST(MACD2<0,5,0)AND MACD2>=REF(MACD2,1),-12,-10),COLORYELLOW;
DRAWICON(ssddd4<10 AND REF(ssddd4,1)=10,ssddd4*0.985,2);
ssddd94:IF(指标公式<=-5 AND DEA2<=-5,5,0);