{参数设置N 1 999 80 ; M 1 15 3}
TT:(MA(C,10)*30+MA(C,30)*10+MA(C,60)*5+MA(C,120)*3)/(3+5+10+30);
TTT:MA(TT,10);
STICKLINE(TT>TTT,TT,TTT,2,0),COLORRED,LINETHICK2;
STICKLINE(TT<=TTT,TT,TTT,2,0),COLORGREEN,LINETHICK2;
高:=REF(HHV(H,N),M);
低:=REF(LLV(L,N),M);
顶点:REFDATE(高,DATE),COLORRED;
低点:REFDATE(低,DATE),COLORWHITE;
DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORRED;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;
STICKLINE(C/REF(C,1)>1.099,C,O,2.3,0),COLORYELLOW;
CF:=REF(C/REF(C,1)>1.095,1);
CF1:=O/REF(C,1)>1.02;
CF2:=L>REF(C,1);
CF3:=O>L AND H>C AND C>O;
CE:=CF AND CF1 AND CF2 AND CF3;
STICKLINE(CE ,O,C,3,0), COLOR0044FF;
STICKLINE(CE ,O,C,2.6,0), COLOR0077FF;
STICKLINE(CE ,O,C,2.2,0), COLOR1199FF;
STICKLINE(CE ,O,C,1.8,0), COLOR22BBFF;
STICKLINE(CE ,O,C,1.4,0), COLOR33DDFF;
STICKLINE(CE ,O,C,1,0), COLOR33FFFF;
Y:=C-REF(C,1);
Y1:=100*EMA(EMA(Y,6),6)/EMA(EMA(ABS(Y),6),6);
Y2:=LLV(Y1,2)=LLV(Y1,7) AND COUNT(Y1<0,2) AND CROSS(Y1,MA(Y1,2));
DRAWICON(FILTER(Y2=1,5),(LOW*0.985),1);