{追涨副图}
{参数N:=5;}
JC:=(C+O+H+L)/4;
PK:=(REF(JC,2)-REF(JC,1))>0;
JD:(C-MIN(REF(C,1),O))/MIN(REF(C,1),O)*100;
STICKLINE(JD>0,0,JD,2,0),COLORRED;
STICKLINE(JD<0,0,JD,2,0),COLORCYAN;
GCD:=JD>REF(HHV(JD,2),1)&&JD>0;
OCD:=(REF(EVERY(GCD=0,4),1)&&GCD>0);
PY:SUM(JD,5);
ZJX:=PY>REF(PY,1)&&REF(PY,1)=LLV(PY,4)&&GCD;
PY10:SUM(JD,10);
ZJX10:=PY10>REF(PY10,1)&&REF(PY10,1)=LLV(PY10,4)&&GCD;
PY20:SUM(JD,20);
ZJX20:=PY20>REF(PY20,1)&&REF(PY20,1)=LLV(PY20,4)&&GCD;
TPY:=ZJX OR(ZJX10 OR ZJX20)&&REF(JD,1)<0.1&&C>O&&PK;
XGD:=(REF(EVERY(TPY=0,2),1)&&TPY>0);
DRAWICON(XGD,PY20*0.8,34);