N:=18;m:=27;
均价:=(2*C+(H-L)/2+L)/3;
价差:=SUM(均价-REF(均价,1),2)/2;
高低:=(均价+价差);
实价:=(高低+均价)/2;
aa:=eMA(((SLOPE(实价,N)*20)+实价),N*3),COLORYELLOW;
bb:=eMA(((SLOPE(均价,N)*20)+均价),N*3),COLORYELLOW;
多空线:=(AA+bb)/2,COLORRED,PRECISION2;
行情1:=EMA(EMA(EMA((AA+BB)/2,7),21),63),COLORYELLOW,LINETHICK2;
AaA:=eMA(((SLOPE(实价,N*2)*20)+实价),n*6),COLORYELLOW,LINETHICK1;
BbB:=eMA(((SLOPE(均价,N*2)*20)+均价),n*6),COLORYELLOW,LINETHICK1;
行情2:=(AAA+BBB)/2,COLORWHITE,LINETHICK2;
行情线:=ema((行情1+行情2)/2,m),COLOR7F00FF,COLORYELLOW,LINETHICK2;
x:=行情线-多空线/3;
x1:REVERSE(MA(行情线-均价,2)),COLORWHITE;
SQX:(均价-X)/X,COLORRED;
DRAWICON(CROSS(SQX,0),0,1);
DRAWTEXT(CROSS(x1,SQX),x1,'★'),COLORYELLOW;
0;