VAR1:=AMOUNT/V/100;
VAR2:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
VAR3:='┄┄┄┄';
VAR4:=EMA(C,2);
VAR5:=EMA(SLOPE(C,20)*20+C,55);
VAR6:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR7:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR8:=REF(VAR7,1);
VAR9:=SMA((CLOSE-VAR8),6,1)/SMA(ABS(CLOSE-VAR8),6,1)*100;
VAR10:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VAR11:=EMA(0.667*REF(VAR10,1)+0.333*VAR10,5);
VAR12:=IF(V>=1.3*MA(V,5) AND COUNT(VAR10>=VAR11 AND VAR10<-17,3) AND REF(L,1)=LLV(L,120),1,0);
VAR13:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VAR14:=SMA(MAX(VAR7-VAR8,0),10,1)/SMA(ABS(VAR7-VAR8),10,1)*100;
VAR15:=IF(COUNT(VAR14<20,5)>=1 AND COUNT(VAR7=LLV(VAR7,10),10)>=1 AND C>=O*1.038 AND V>MA(V,5)*1.2,1,0);
VAR16:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),20);
VAR17:=HIGH-REF(HIGH,1);
VAR18:=REF(LOW,1)-LOW;
VAR19:=SUM(IF(VAR17>0 AND VAR17>VAR18,VAR17,0),20);
VAR20:=SUM(IF(VAR18>0 AND VAR18>VAR17,VAR18,0),20);
VAR21:=VAR19*100/VAR16;
VAR22:=VAR20*100/VAR16;
VAR23:=EMA(CLOSE,10)-EMA(CLOSE,20);
VAR24:=EMA(VAR23,7);
VAR25:=VAR23>VAR24;
VAR26:=(VAR22>VAR21 AND VAR22>25 AND VAR21<25);
VAR27:=REF(VAR26,1) AND VAR26=0 AND VAR25 AND C/REF(C,1)<1.02 AND C/REF(C,1)>1 AND MA(C,5)>MA(C,10);
VAR28:=CLOSE/MA(CLOSE,35);
VAR36:=CLOSE/MA(CLOSE,55)*100<77;
VAR38:=CROSS(VAR28,VAR36) AND C>O AND VAR4>=VAR5;
STICKLINE(VAR2,OPEN,CLOSE,1.35,0),COLORRED,COLORYELLOW;
STICKLINE(VAR2,OPEN,CLOSE,3.6,0),COLORYELLOW;
STICKLINE(VAR2,H,L,0,0),COLORYELLOW;
DRAWTEXT((O+C)/2 AND VAR2,(O+C)/2,VAR3),COLORMAGENTA;
DRAWTEXT(VAR2,L,VAR3),COLORGRAY;
STICKLINE(VAR4>=VAR5,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(VAR4>=VAR5,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(VAR4<VAR5,LOW,HIGH,0.0,1),COLORCYAN;
STICKLINE(VAR4<VAR5,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(CROSS(VAR4,VAR5),OPEN,CLOSE,2,0),COLOR00FFFF;
STICKLINE(CROSS(VAR5,VAR4),OPEN,CLOSE,2.2,0),COLORFF0000;
DRAWTEXT(VAR2,H*0.998,' --涨停'),COLORYELLOW;
牛线:(16*VAR6+15*REF(VAR6,1)+14*REF(VAR6,2)+13*REF(VAR6,3)+12*REF(VAR6,4)+11*REF(VAR6,5)+10*REF(VAR6,6)+9*REF(VAR6,7)+8*REF(VAR6,8)+7*REF(VAR6,9)+6*REF(VAR6,10)+5*REF(VAR6,11)+4*REF(VAR6,12)+3*REF(VAR6,13)+2*REF(VAR6,14)+REF(VAR6,15))/135,COLORRED;
马线:EMA(牛线,5),COLORGREEN;{,公式源码 }
水平面:MA(CLOSE,31),DOTLINE,COLORYELLOW;
DRAWTEXT_FIX(C>O,0,0.07,0,'VAR36:VAR38'),COLORMAGENTA;
DRAWICON(FILTER(REF(VAR9,1)>81 AND VAR9<80 OR CROSS(82,VAR13),5),H/0.98,2);
DRAWICON(FILTER(VAR15 OR VAR12,5),L*0.97,1);
DRAWICON(CROSS(VAR4,VAR5) AND H/C<1.03,L*0.97,1);
DRAWICON(CROSS(VAR5,VAR4),H*1.02,2);
DRAWICON(CROSS(牛线,马线) AND H/C<1.03,L*0.97,25);
DRAWICON(CROSS(马线,牛线),H*1.0298,27);
DRAWTEXT(VAR27,L*0.967,'买入关注 --'),COLORYELLOW;
DRAWTEXT(VAR38,L*0.96,'-★反转 --'),COLOR00FFFF;