VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,4,1)-10; VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100; VAR5:=SMA(VAR4,3,1); VAR6:=NOT(CODELIKE('4')); VAR7:=NOT(CODELIKE('688')); VAR8:=IF(NAMELIKE('S'),0,1); VAR9:=IF(NAMELIKE('*'),0,1); VAR10:=NOT(CODELIKE('8')); VAR11:=VAR6 AND VAR8 AND VAR7 AND VAR9 AND VAR10; VAR12:=SMA(VAR5,4,1)-90; VAR13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.045; VAR14:=LOW<MA(CLOSE,5) AND CLOSE>MA(CLOSE,5); VAR15 := VAR13 AND VAR14; VAR16:=C>MA(C,10); 双龙共振:=BARSLASTCOUNT((REF(VAR3,1)<VAR3) AND (REF(VAR12,1)>VAR12))=1 AND VAR11 AND VAR15 AND VAR16; 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);
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,4,1)-10;
VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR5:=SMA(VAR4,3,1);
VAR6:=NOT(CODELIKE('4'));
VAR7:=NOT(CODELIKE('688'));
VAR8:=IF(NAMELIKE('S'),0,1);
VAR9:=IF(NAMELIKE('*'),0,1);
VAR10:=NOT(CODELIKE('8'));
VAR11:=VAR6 AND VAR8 AND VAR7 AND VAR9 AND VAR10;
VAR12:=SMA(VAR5,4,1)-90;
VAR13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.045;
VAR14:=LOW<MA(CLOSE,5) AND CLOSE>MA(CLOSE,5);
VAR15 := VAR13 AND VAR14;
VAR16:=C>MA(C,10);
双龙共振:=BARSLASTCOUNT((REF(VAR3,1)<VAR3) AND (REF(VAR12,1)>VAR12))=1 AND VAR11 AND VAR15 AND VAR16;
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);