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);
金风趋势:EMA(V11,3),LINETHICK1,COLORWHITE;
V12:=(金风趋势-REF(金风趋势,1))/REF(金风趋势,1)*100;
R买入:STICKLINE(金风趋势<11,金风趋势,11,5,0),COLORYELLOW;
AA:=(金风趋势<11) AND FILTER((金风趋势<=11),15) AND C<牛熊分界线;
BB0:=REF(金风趋势,1)<11 AND CROSS(金风趋势,11) AND C<牛熊分界线;
BB1:=REF(金风趋势,1)<11 AND REF(金风趋势,1)>6 AND CROSS(金风趋势,11);
BB2:=REF(金风趋势,1)<6 AND REF(金风趋势,1)>3 AND CROSS(金风趋势,6);
BB3:=REF(金风趋势,1)<3 AND REF(金风趋势,1)>1 AND CROSS(金风趋势,3);
BB4:=REF(金风趋势,1)<1 AND REF(金风趋势,1)>0 AND CROSS(金风趋势,1);
BB5:=REF(金风趋势,1)<0 AND CROSS(金风趋势,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
下单买入:STICKLINE(BB=1 AND C<牛熊分界线,11,50,5,0),COLORRED;
DRAWICON(BB=1 AND C<牛熊分界线,55,1);
DRAWTEXT(BB0,60,'★B'),COLORRED;
DRAWTEXT(AA,16,'R'),COLORYELLOW;
R卖出:STICKLINE(金风趋势>89,金风趋势,89,5,0),COLORWHITE;
CC:=(金风趋势>89) AND FILTER((金风趋势>89),15) AND C>牛熊分界线;
DD0:=REF(金风趋势,1)>89 AND CROSS(89,金风趋势) AND C>牛熊分界线;
DD1:=REF(金风趋势,1)>89 AND REF(金风趋势,1)<94 AND CROSS(89,金风趋势);
DD2:=REF(金风趋势,1)>94 AND REF(金风趋势,1)<97 AND CROSS(94,金风趋势);
DD3:=REF(金风趋势,1)>97 AND REF(金风趋势,1)>99 AND CROSS(97,金风趋势);
DD4:=REF(金风趋势,1)>99 AND REF(金风趋势,1)<100 AND CROSS(99,金风趋势);
DD5:=REF(金风趋势,1)>100 AND CROSS(100,金风趋势);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
下单卖出:STICKLINE(DD=1 AND C>牛熊分界线,89,50,5,0),COLORGREEN;
DRAWICON(DD=1 AND C>牛熊分界线,45,2);
DRAWTEXT(DD0,40,'★S'),COLORGREEN;
DRAWTEXT (CC,84,'R'),COLORBLUE;
金顶:89,LINETHICK2,COLORGREEN;
金底:11,LINETHICK2,COLORRED;
牛熊分界:50,POINTDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,金顶,'金顶'),COLORGREEN;
DRAWTEXT(ISLASTBAR,金底,'金底'),COLORRED;
DRAWTEXT(ISLASTBAR,牛熊分界,'牛熊分界'),COLORWHITE;