H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1; 阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORRED;
中线:=(支撑+阻力)/2,COLORWHITE,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
QSX:EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(QSX-REF(QSX,1))/REF(QSX,1)*100;
准备:STICKLINE(QSX<11,QSX,11,5,0),COLORYELLOW;
AA:=(QSX<11) AND FILTER((QSX<=11),15) AND C<中线;
ACB0:=REF(QSX,1)<11 AND CROSS(QSX,11) AND C<中线;
ACB1:=REF(QSX,1)<11 AND REF(QSX,1)>6 AND CROSS(QSX,11);
ACB2:=REF(QSX,1)<6 AND REF(QSX,1)>3 AND CROSS(QSX,6);
ACB3:=REF(QSX,1)<3 AND REF(QSX,1)>1 AND CROSS(QSX,3);
ACB4:=REF(QSX,1)<1 AND REF(QSX,1)>0 AND CROSS(QSX,1);
ACB5:=REF(QSX,1)<0 AND CROSS(QSX,0);
ACB:=ACB1=1 OR ACB2=1 OR ACB3=1 OR ACB4=1 OR ACB5=1;
下单买入:STICKLINE(ACB=1 AND C<中线,11,50,5,0),COLORFF00FF;
DRAWICON(ACB=1 AND C<中线,55,1); DRAWTEXT(ACB0,60,'★买'),COLORFF00FF;
DRAWTEXT(AA,16,''),COLORYELLOW;
准备卖出:STICKLINE(QSX>89,QSX,89,5,0),COLORWHITE; CC:=(QSX>89) AND FILTER((QSX>89),15) AND C>中线; ABC0:=REF(QSX,1)>89 AND CROSS(89,QSX) AND C>中线;
ABC1:=REF(QSX,1)>89 AND REF(QSX,1)<94 AND CROSS(89,QSX);
ABC2:=REF(QSX,1)>94 AND REF(QSX,1)<97 AND CROSS(94,QSX);
ABC3:=REF(QSX,1)>97 AND REF(QSX,1)>99 AND CROSS(97,QSX);
ABC4:=REF(QSX,1)>99 AND REF(QSX,1)<100 AND CROSS(99,QSX);
ABC5:=REF(QSX,1)>100 AND CROSS(100,QSX);
ABC:=ABC1=1 OR ABC2=1 OR ABC3=1 OR ABC4=1 OR ABC5=1;
下单卖出:STICKLINE(ABC=1 AND C>中线,89,50,5,0),COLORGREEN; DRAWICON(ABC=1 AND C>中线,45,2); DRAWTEXT(ABC0,40,'★卖'),COLORGREEN; DRAWTEXT (CC,84,'准备卖出'),COLORWHITE;
顶:89,COLORGREEN; 底:11,COLORRED;
中:50,POINTDOT,COLORWHITE; DRAWTEXT(ISLASTBAR,顶,'顶'),COLORGREEN; DRAWTEXT(ISLASTBAR,底,'底'),COLORRED; DRAWTEXT(ISLASTBAR,中,'中'),COLORWHITE;