gspt1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
gspt2:=SMA(gspt1,3,1);
gspt3:=SMA(gspt2,3,1);
gspt4:=SMA(gspt3,3,1);
gspt5:=CROSS(gspt3,gspt4) AND gspt3< 20;
gspt6:=CROSS(gspt4,gspt3) AND gspt3>80;
gspt7:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
gspt66:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
gspt68:=gspt7< REF(gspt66,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
0,COLORYELLOW;
90,COLORGREEN;
STICKLINE(FILTER(gspt5,10)=1,0,90,2,0),COLORRED;
DRAWTEXT(FILTER(gspt5,10)=1,79,' 底'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(gspt5,10)=1,67,' 部'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(gspt5,10)=1,55,' 信'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(FILTER(gspt5,10)=1,43,' 号'),LINETHICK1,COLOR00AAFF;
STICKLINE(FILTER(gspt6,5)=1,0,90,2,0),COLORGREEN ;
DRAWTEXT(FILTER(gspt6,5)=1,79,' 顶'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(gspt6,5)=1,67,' 部'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(gspt6,5)=1,55,' 信'),LINETHICK1,COLORFFCC66;
DRAWTEXT(FILTER(gspt6,5)=1,43,' 号'),LINETHICK1,COLORFFCC66;
DRAWTEXT_FIX(C>O,0,0.2,0,'公式平台 公式源码 http://www.gspt.com'),COLOR333333;
DRAWTEXT(gspt68 AND COUNT(gspt68,30)=1,62,'主'),COLORFF00FF;
DRAWTEXT(gspt68 AND COUNT(gspt68,30)=1,50,'力'),COLORFF00FF;
DRAWTEXT(gspt68 AND COUNT(gspt68,30)=1,38,'进'),COLORFF00FF;
DRAWTEXT(gspt68 AND COUNT(gspt68,30)=1,26,'场'),COLORFF00FF;
趋势:EMA(gspt3,3)-10,LINETHICK2,COLOR0000FF;
A1:IF(趋势>76,趋势,80),COLORYELLOW;
DRAWICON(CROSS(趋势,0),0,1);
STICKLINE(趋势<=4,0,20,5,0),COLORCC9900;
DRAWTEXT(FILTER(趋势<=4,15),30,'建仓区'),COLORWHITE;
STICKLINE(趋势>=90 AND gspt4,0,30,5,0),COLORGRAY;
A2:IF(CROSS(gspt2,MA(趋势,8)) AND gspt2< 15,10,0),COLORRED;