VAR2:=2*ABS(VAR1);
VAR3:=100-(100-3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA (SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
VAR4:=100-(100-3*SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1)+2*SMA (SMA((OPEN-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100,20,1),15,1));
VARC:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);
VARD:=VAR3>REF(VAR4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VARC AND COUNT(VARC,30)=1,70,'上升通道!'),COLORWHITE;
VARE:DRAWTEXT(VARD AND COUNT(VARD,30)=1,90,'资金进场!'),COLORWHITE;
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04;
VAR09:=EMA(C,5);
VARR10:=LLV(LOW,33);
VARR11:=EMA(IF(LOW<=VARR10,VAR09,0),3)*40;
VARR12:=IF(VARR11>100,VARR11*0.312,VARR11);
底部:VARR12,COLORMAGENTA;
STICKLINE(VAR05 AND COUNT(VAR05,5)=1,0,VARR12,1,0),COLORYELLOW;
XIAO1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
XIAO2:=SMA(ABS(LOW-XIAO1),13,1)/SMA(MAX(LOW-XIAO1,0),10,1);
XIAO3:=EMA(XIAO2,10);
XIAO4:=LLV(LOW,33);
XIAO5:=EMA(IF(LOW<=XIAO4,XIAO3,0),3);
私募进场:=IF(XIAO5>REF(XIAO5,1),XIAO5,0),COLORRED,NODRAW;
私募洗盘:=IF(XIAO5<REF(XIAO5,1),XIAO5,0),COLORGREEN,NODRAW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
K:="KDJ.K"(9,3,3);
M1:=C-REF(C,1);
M2:=100*EMA(EMA(M1,6),6)/EMA(EMA(ABS(M1),6),6);
买:=IF(LLV(M2,2)=LLV(M2,7) AND COUNT(M2<0,2) AND CROSS(M2,MA(M2,2)),1,0);
红先锋8:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 888);
红先锋9:=SMA(红先锋8,9,1);
红先锋10:=SMA(红先锋9,3,1);
VAR操作线:((3 * 红先锋9) - (2 * 红先锋10)), LINETHICK2 , COLOR00FFFF;
红先锋11:=(VAR操作线 > (1 * REF(VAR操作线,1)));
回档:EMA(红先锋9,3),COLORRED,LINETHICK2;
黄线下穿减仓:=EMA(回档,3),COLORFFCC66;
无量阴跌空仓:=EMA(黄线下穿减仓,3),COLORCC9966;
红先锋:EMA(无量阴跌空仓,3),COLORCC6666,LINETHICK2;
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
AA:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100;
BB:=MA(AA,10);
趋势线:=SMA(BB,3,1)/10;
底部线:=(HHV(HIGH,34)/LLV(LOW,34));
机会1:IF(CROSS(底部线,趋势线),518,0);
机会2:IF(CROSS(趋势线,底部线),518,0);
趋势:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW;