GSPT1:=(C-LLV(L,18))/(HHV(H,18)-LLV(L,18))*100;
GSPT2:=SMA(SMA(GSPT1,2,1)+3,2,1);
GSPT3:=MA(-100*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34)),19);
GSPT4:=3*SMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5,1);
GSPT5:=SMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5,1);
GSPT6:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
GSPT7:=EMA(GSPT6,3);
GSPT8:=EMA(GSPT7,2);
GSPT9:=3*GSPT7-2*GSPT8;
GSPT10:=LLV(LOW,8);
GSPT11:=HHV(HIGH,8);
GSPT12:=EMA((CLOSE-GSPT10)/(GSPT11-GSPT10)*100,3);
GSPT13:=EMA(GSPT12,3);
GSPT14:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
GSPT15:=SMA(GSPT14,3,1);
GSPT16:=SMA(GSPT15,2.5,1);
GSPT17:=BARSLAST(REF(CROSS(GSPT9,GSPT8),1));
GSPT18:=REF(CLOSE,GSPT17+1)>CLOSE AND GSPT9>REF(GSPT9,GSPT17+1) AND CROSS(GSPT9,GSPT8);
GSPT19:=BARSLAST(REF(CROSS(GSPT8,GSPT9),1));
GSPT20:=REF(CLOSE,GSPT19+1)<CLOSE AND REF(GSPT8,GSPT19+1)>GSPT8 AND CROSS(GSPT8,GSPT9);
GSPT21:=CROSS(GSPT7,50) AND CROSS(GSPT8,40);
GSPT22:=CROSS(GSPT7,50) AND CROSS(GSPT8,50) AND CROSS(GSPT13,22);
GSPT23:=CROSS(GSPT7,50) AND CROSS(GSPT8,50) AND CROSS(GSPT13,35);
GSPT48:=CROSS(GSPT7,50) AND CROSS(GSPT8,50) AND CROSS(GSPT13,45);
GSPT49:=CROSS(GSPT7,50) AND CROSS(GSPT8,50) AND CROSS(GSPT13,55.3);
变速率:(GSPT2-(GSPT3+100));
DRAWTEXT(BARSLAST(变速率>0)=1,变速率,'1'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=2,变速率,'2'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=3,变速率,'3'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=5,变速率,'5'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=8,变速率,'8'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=13,变速率,'13'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=21,变速率,'21'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=34,变速率,'34'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率>0)=55,变速率,'55'),COLORYELLOW;
DRAWTEXT(BARSLAST(变速率<0)=1,变速率,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=2,变速率,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=3,变速率,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=5,变速率,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=8,变速率,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=13,变速率,'13'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=21,变速率,'21'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=34,变速率,'34'),COLORGREEN;
DRAWTEXT(BARSLAST(变速率<0)=55,变速率,'55'),COLORGREEN;
趋势线:GSPT4-2*SMA(GSPT5,3,1),COLORYELLOW,LINETHICK1;
天:100,COLOR9F9F5F,LINETHICK1;
地:-10,COLOR7070DB,LINETHICK1;
进:GSPT15,COLORMAGENTA,LINETHICK1;
退:GSPT16,COLORGREEN,LINETHICK1;
DRAWBAND(GSPT16,RGB(10,250,10),GSPT15,RGB(250,10,10));
DRAWICON(CROSS(GSPT15,GSPT16),GSPT15,1);
DRAWICON(CROSS(GSPT16,GSPT15),GSPT16,2);
DRAWTEXT(CROSS(96,GSPT9) AND (GSPT9<=80),75,'回'),COLORFF6EC7;
DRAWTEXT(CROSS(GSPT9,1) AND (GSPT9<=20),15,'反'),COLORFF8855;
DRAWTEXT(GSPT18>0,5,'底'),COLORB0C4DE;
DRAWTEXT(GSPT20>0,98,'顶'),COLOR0099FF;
STICKLINE(GSPT21,71,19,2,0),COLORFF8855;
DRAWTEXT(GSPT21,46,' 财'),COLORYELLOW;
STICKLINE(GSPT22,71,19,2,0),COLORFF0088;
DRAWTEXT(GSPT22,46,' 财'),COLORYELLOW;
STICKLINE(GSPT23,71,19,2,0),COLORFF0088;
DRAWTEXT(GSPT23,46,' 财'),COLORYELLOW;
STICKLINE(GSPT48,71,19,2,0),COLORFF0088;
DRAWTEXT(GSPT48,46,' 财'),COLORYELLOW;
STICKLINE(GSPT49,71,19,2,0),COLORFF0088;
DRAWTEXT(GSPT49,46,' 财'),COLORYELLOW;