N1:=5;N2:=10;
LC:=REF(CLOSE,1);
A0:=(2*C+H+L)/4;
均线:=MA(A0,3)>REF(MA(A0,3),1);
压力线:2,colorblue,LINETHICK1,LINETHICK3;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
趋势线A:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,colormagenta;
趋势线B:MA(趋势线A,3),colormagenta,LINETHICK1;
龙线:3*趋势线A-2*趋势线B,LINETHICK1,colorred,LINETHICK2;
DRAWBAND(趋势线A,RGB(255,000,255),趋势线B,RGB(000,255,000));
VAR1:=C-REF(C,1);
抄底线:0,colorwhite;
警戒线:10,colorgreen,LINETHICK1;
{DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9),coloryellow;
A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);
DRAWTEXT(底背离,-0.6,'启动'),coloryellow;
A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(顶背离,11,'清仓'),colorcyan;};
量占比:=TOSTRING(OPENVOL/REF(VOL,0)*0,0);
量占比1:='公式平台,公式源码 http://www.gspt.com'+量占比+'0';
DRAWTEXT_FIX(ISLASTBAR,0.01,0.13,0,量占比1),coloryellow;