{三步登高副源码如下}
VAR1:=HHVBARS(CLOSE,100);
VAR2:=(REF(C,VAR1)/REF(LLV(C,100),VAR1)-1)*100;
VAR3:=HHVBARS(CLOSE,200);
VAR4:=IF(VAR1=VAR3,VAR2,(REF(H,VAR3)/REF(LLV(C,200),VAR3-1))*100);
VAR5:=BARSCOUNT(CLOSE);
VAR6:=50*(MIN(CLOSE,0)-L)/REF(CLOSE,1);
VAR7:=50*ABS(CLOSE-0)/REF(CLOSE,1);
VAR8:=VAR2<100 AND IF(VAR5<250,1,VAR4<200);
VAR18:=C>O AND REF(C<O,1) AND C>REF(C,1) AND V>REF(V,1) AND VAR6<1 AND VAR7>VAR6 AND V<3*REF(V,1);
VAR16:=LLV(C,3)>REF(C,3) AND HHV(V,3)<REF(V,3) AND EVERY(C>O,3) AND UPNDAY(C,2) AND C/REF(C,3)<1.1;
XG:VAR16 AND REF(VAR18,3) AND VAR8;
{三步登高主图源码如下}
VAR1:=HHVBARS(CLOSE,100);
VAR2:=(REF(C,VAR1)/REF(LLV(C,100),VAR1)-1)*100;
VAR3:=HHVBARS(CLOSE,200);
VAR4:=IF(VAR1=VAR3,VAR2,(REF(H,VAR3)/REF(LLV(C,200),VAR3-1))*100);
VAR5:=BARSCOUNT(CLOSE);
VAR6:=50*(MIN(CLOSE,0)-L)/REF(CLOSE,1);
VAR7:=50*ABS(CLOSE-0)/REF(CLOSE,1);
VAR8:=VAR2<100 AND IF(VAR5<250,1,VAR4<200);
VAR9:=C>O AND REF(C<O,1) AND C>REF(C,1) AND V>REF(V,1) AND VAR6<1 AND VAR7>VAR6 AND V<3*REF(V,1);
VAR10:=LLV(C,3)>REF(C,3) AND HHV(V,3)<REF(V,3) AND EVERY(C>O,3) AND UPNDAY(C,2) AND C/REF(C,3)<1.1;
VAR18:=VAR8 AND VAR10 AND REF(VAR9,3);
VAR16:=BARSLAST(VAR18);
STICKLINE(REFX(VAR18,3),C,O,3,0),COLORRED;
STICKLINE(EVERY(C>REF(L,VAR16+3),VAR16),REF(L,VAR16+3),REF(L,VAR16+3),4,1);
DRAWICON(VAR18,L,9);