N: 3;
M:10;
主力状态:SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C) /2,21)-LLV(L,21))*100,3),7,1)-(13),LINETHICK2,COLORF0F000;{通达信公式-通达信指标www.gs6699.com}
副图指标公式:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);
ccdd1:副图指标公式>主力状态,COLOR9800FF;
STICKLINE(ccdd1,30,40,4,2),COLOR9800FF;
ccdd2:副图指标公式<主力状态,COLORYELLOW;
STICKLINE(ccdd2,30,40,4,2),COLORYELLOW;
STICKLINE(FILTER(CROSS(副图指标公式,主力状态)=1 OR 副图指标公式>REF(副图指标公式,1),10) AND 副图指标公式<25 ,主力状态,主力状态+10,9,1),COLORRED;
STICKLINE(FILTER(副图指标公式<REF(副图指标公式,1)AND 副图指标公式>65,5),主力状态+5,主力状态+15,9,1),COLOR00FF00;
DRAWICON(FILTER(主力状态>=REF(主力状态,1)AND 主力状态<0,15),0,1);
sddd2:=1;
sddd3:=REF(HIGH,1)*1.1;
sddd4:=HIGH*1.1;
sddd5:=(sddd4*VOL+sddd3*(CAPITAL-VOL))/CAPITAL;
sddd6:=REF(LOW,1)*0.9;
sddd7:=LOW*0.9;
sddd8:=(sddd7*VOL+sddd6*(CAPITAL-VOL))/CAPITAL;
sddd9:=EMA(sddd8,30);
sdddA:=EMA(sddd5,30);
sdddB:=sdddA-2;
sdddC:=IF(CLOSE<=sddd9,sdddB,sdddA);
sdddD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
dddss1: STICKLINE(sdddC-sdddB=0 AND sddd2 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),50,0,5,0),COLORCC9966;
dddss2: DRAWTEXT(FILTER(sdddC-sdddB=0 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1)) /REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),55,''),COLORRED;
sdddE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
dddss3: SMA(SMA(sdddE,3,1),3,1),COLORFF6633;
dddss4: 3*SMA(sdddE,3,1)-2*dddss3,COLORRED;
{DRAWICON(CROSS(90,dddss4),90,2);}
dddss5: STICKLINE(SMA(sdddE,3,1)>dddss3,SMA(sdddE,3,1),dddss3,4,0),COLOR1133FF;
{DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));}
{DRAWTEXTREL(10,900,''),LINETHICK1,COLOR00EEFF;};