gspt1:=HIGH< REF(HIGH,1) AND LOW< REF(LOW,1);
gspt2:=HIGH< REF(HIGH,1) AND LOW>REF(LOW,1);
gspt3:=HIGH>REF(HIGH,1) AND LOW< REF(LOW,1);
gspt4:=HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
gspt5:=REF(H,2)< H AND REF(L,2)< L AND REF(H,2)>REF(H,1) AND REF(L,2)< REF(L,1);
gspt6:=COUNT(gspt1,6)>=3 AND COUNT(gspt2 OR gspt3,5)=0 AND LLVBARS(L,6)=1 AND HHVBARS(H,6)>=5 AND gspt4;
gspt7:=COUNT(gspt1,7)>=3 AND COUNT(gspt2 OR gspt3,6)=1 AND LLVBARS(L,7)=2 AND HHVBARS(H,7)>=6 AND gspt5;
gspt8:=COUNT(gspt1,7)>=3 AND COUNT(gspt2 OR gspt3,6)=1 AND LLVBARS(L,7)=1 AND HHVBARS(H,7)>=6 AND gspt4;
gspt9:=COUNT(gspt1,8)>=3 AND COUNT(gspt2 OR gspt3,7)<=2 AND LLVBARS(L,8)=2 AND HHVBARS(H,8)>=7 AND gspt5;
gspt10:=COUNT(gspt1,8)>=3 AND COUNT(gspt2 OR gspt3,7)<=2 AND LLVBARS(L,8)=1 AND HHVBARS(H,8)>=7 AND gspt4;
gspt11:=COUNT(gspt1,9)>=3 AND COUNT(gspt2 OR gspt3,8)<=3 AND LLVBARS(L,9)=2 AND HHVBARS(H,9)>=8 AND gspt5;
gspt12:=COUNT(gspt1,9)>=3 AND COUNT(gspt2 OR gspt3,8)<=3 AND LLVBARS(L,9)=1 AND HHVBARS(H,9)>=8 AND gspt4;
gspt13:=COUNT(gspt1,10)>=3 AND COUNT(gspt2 OR gspt3,9)<=4 AND LLVBARS(L,10)=2 AND HHVBARS(H,10)>=9 AND gspt5;
gspt14:=COUNT(gspt1,10)>=3 AND COUNT(gspt2 OR gspt3,9)<=4 AND LLVBARS(L,10)=1 AND HHVBARS(H,10)>=9 AND gspt4;
gspt15:=COUNT(gspt1,11)>=3 AND COUNT(gspt2 OR gspt3,10)<=5 AND LLVBARS(L,11)=2 AND HHVBARS(H,11)>=10 AND gspt5;
gspt16:=gspt6 OR gspt7 OR gspt8 OR gspt9 OR gspt10 OR gspt11 OR gspt12 OR gspt13 OR gspt14 OR gspt15;
gspt28:=REF(L,1)< REF(L,2) AND REF(L,1)< L AND REF(H,1)< REF(H,2) AND REF(H,1)< H AND C>REF(H,2) AND C>O;
gspt29:=gspt16 AND gspt28;
DRAWICON(gspt29,LOW,9);
CPX:MA(CLOSE,18),COLORGREEN,LINETHICK1;
IF(CPX>=REF(CPX,1),CPX,DRAWNULL),COLORRED,LINETHICK1;
DRAWTEXT_FIX(C>O,0,0.07,0,'公式平台,公式源码 http://www.gspt.com'),COLOR333333;
STICKLINE(C>=CPX AND C>O,O,C,-1,1),COLOR0000DD;
STICKLINE(C>=CPX AND C>O,H,C,0,0),COLOR0000DD;
STICKLINE(C>=CPX AND C>O,O,L,0,0),COLOR0000DD;
STICKLINE(C>=CPX AND C<=O,O,C,-1,0),COLOR0000DD;
STICKLINE(C>=CPX AND C<=O,H,O,0,0),COLOR0000DD;
STICKLINE(C>=CPX AND C<=O,C,L,0,0),COLOR0000DD;
STICKLINE(C< CPX AND C>O,O,C,-1,1),COLORFFBB00;
STICKLINE(C< CPX AND C>O,H,C,0,0),COLORFFBB00;
STICKLINE(C< CPX AND C>O,O,L,0,0),COLORFFBB00;
STICKLINE(C< CPX AND C<=O,O,C,-1,0),COLORFFBB00;
STICKLINE(C< CPX AND C<=O,H,O,0,0),COLORFFBB00;
STICKLINE(C< CPX AND C<=O,C,L,0,0),COLORFFBB00;
STICKLINE(gspt29=1 AND C>O,O,C,-1,1),COLORYELLOW;
STICKLINE(gspt29=1 AND C>O,H,C,0,0),COLORYELLOW;
STICKLINE(gspt29=1 AND C>O,O,L,0,0),COLORYELLOW;