GSPT1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
GSPT2:=SMA(GSPT1,3,1);
GSPT3:=SMA(GSPT2,4,1)-10;
GSPT4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
GSPT5:=SMA(GSPT4,3,1);
GSPT6:=NOT(CODELIKE('4'));
GSPT7:=NOT(CODELIKE('688'));
GSPT8:=IF(NAMELIKE('S'),0,1);
GSPT9:=IF(NAMELIKE('*'),0,1);
GSPT10:=NOT(CODELIKE('8'));
GSPT11:=GSPT6 AND GSPT8 AND GSPT7 AND GSPT9 AND GSPT10;
GSPT12:=SMA(GSPT5,4,1)-90;
GSPT13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)< 0.045;
GSPT14:=LOW< MA(CLOSE,5) AND CLOSE>MA(CLOSE,5);
GSPT15 := GSPT13 AND GSPT14;
GSPT16:=C>MA(C,10);
双龙共振:=BARSLASTCOUNT((REF(GSPT3,1)< GSPT3) AND (REF(GSPT12,1)>GSPT12))=1 AND GSPT11 AND GSPT15 AND GSPT16;
STICKLINE(双龙共振,0,2,3,0),COLORFF00FF;
STICKLINE(双龙共振,0,2,0.1,0),COLORYELLOW;
DRAWICON(双龙共振,1.8,28);
DRAWICON(双龙共振,1.6,29);
DRAWICON(双龙共振,1.4,30);