{主图}
ZF:=(C-REF(C,10))/REF(C,10)*100;
A:=BARSLAST(H=HHV(H,10) AND ZF =30);
ZFA:=(HHV(H,A+1)-L)/L*100;
B:=BARSLAST(L=LLV(L,A+1) AND ZFA 20 AND A
CC:=BARSLAST(H=HHV(H,B+1) AND A 5 AND H REF(H,A));
ZFC:=(HHV(H,CC+1)-L)/L*100;
D:=BARSLAST(L=LLV(L,CC+1) AND ZFC 8 AND L REF(L,B) AND CC
GD:=REF(HHV(C,CC+1),D);
GL:=REF(H,A)/H*100;
XG:=CROSS(COUNT(C GD,D+1)=1,0.5) AND A B AND B CC AND CC D AND GL
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,0.5,0),COLORYELLOW;
{未来函数画线主图}
ZF:=(C-REF(C,10))/REF(C,10)*100;
A:=BARSLAST(H=HHV(H,10) AND ZF =30);
ZFA:=(HHV(H,A+1)-L)/L*100;
B:=BARSLAST(L=LLV(L,A+1) AND ZFA 20 AND A
CC:=BARSLAST(H=HHV(H,B+1) AND A 5 AND H REF(H,A));
ZFC:=(HHV(H,CC+1)-L)/L*100;
D:=BARSLAST(L=LLV(L,CC+1) AND ZFC 8 AND L REF(L,B) AND CC
GD:=REF(HHV(C,CC+1),D);
GL:=REF(H,A)/H*100;
XG:=CROSS(COUNT(C GD,D+1)=1,0.5) AND A B AND B CC AND CC D AND GL
Q1:=BARSLAST(CROSS(BACKSET(XG,A+1)=1,0.5));
Q2:=BARSLAST(CROSS(BACKSET(XG,B+1)=1,0.5));
Q3:=BARSLAST(CROSS(BACKSET(XG,CC+1)=1,0.5));
Q4:=BARSLAST(CROSS(BACKSET(XG,D+1)=1,0.5));
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,0.5,0),COLORYELLOW;
DRAWLINE(Q1=0,H,Q2=0,L,0),COLORYELLOW;
DRAWLINE(Q1=0,H,Q3=0,H,1),COLORYELLOW;
DRAWLINE(Q2=0,L,Q3=0,H,0),COLORYELLOW;
DRAWLINE(Q3=0,H,Q4=0,L,0),COLORYELLOW;
{选股}
ZF:=(C-REF(C,10))/REF(C,10)*100;
A:=BARSLAST(H=HHV(H,10) AND ZF =30);
ZFA:=(HHV(H,A+1)-L)/L*100;
B:=BARSLAST(L=LLV(L,A+1) AND ZFA 20 AND A
CC:=BARSLAST(H=HHV(H,B+1) AND A 5 AND H REF(H,A));
ZFC:=(HHV(H,CC+1)-L)/L*100;
D:=BARSLAST(L=LLV(L,CC+1) AND ZFC 8 AND L REF(L,B) AND CC
GD:=REF(HHV(C,CC+1),D);
GL:=REF(H,A)/H*100;
XG:CROSS(COUNT(C GD,D+1)=1,0.5) AND A B AND B CC AND CC D AND GL