TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
VB1:=FILTER(A1,10);
C1:=BACKSET(VB1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
VB2:=FILTER(A2,10);
C2:=BACKSET(VB2,10+1);
LD:=FILTER(C2,10);
AAD:=REF(C,BARSLAST(HD));
BA:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
A3:=LLV(LOW,1);
A4:=LLV(LOW,5);
A5:=LLV(LOW,8);
A6:=HHV(H,21);
A7:=LLV(LOW,21),COLORRED;
A8:=(A6+A7)/2;
波峰:=IF(T1,AAD,AAD),COLORFF00FF,POINTDOT;
//STICKLINE1(T1,AAD,AAD,4,0),COLOR80FF80;
波谷:=IF(T2,BA,BA),COLOR808000,POINTDOT;
//STICKLINE1(T2 ,BA,BA,4,0),COLOR0000FF;
DRAWTEXT(AAD<>REF(AAD,1),H+10*MINPRICE,'卖'),COLORGREEN,FONTSIZE21,VALIGN2;
DRAWTEXT(BA<>REF(BA,1) ,L-10*MINPRICE,'买'),COLORRED,FONTSIZE21,VALIGN0;
DRAWSL(ISLASTBAR,C,0,DAYBARPOS,1,COLORWHITE),POINTDOT;
STICKLINE(AAD<>REF(AAD,1),H+10*MINPRICE,H,COLORGREEN,0);
STICKLINE(BA<>REF(BA,1) ,L-10*MINPRICE,L,COLORRED,0);
是否有未来函数
(来源:文华财经)