| MA5 := MA(CLOSE, 5);
MA10 := MA(CLOSE, 10);
MA20 := MA(CLOSE, 20);
MA60 := MA(CLOSE, 60);
MA_C:= MA5 > MA10 AND MA10 > MA20 AND CLOSE > MA60;
AR1:=(CLOSE+HIGH+LOW+OPEN)/4;
AR2:=SUMBARS(VOL,CAPITAL);
AR3:=HHV(AR1,AR2);
AR4:=LLV(AR1,AR2);
AR5:=(2*AR1-AR4-REF(AR4,1))/(AR3-AR4);
AR6:=(AR1-AR4)/(AR3-AR4);
AR7:=IF(AR1<=AR4,AR5*60,AR6*60);
AR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
AR9:=EMA(AR8,7);
ARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
ARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
波段买入:= IF(ARA+ARB<7 AND CROSS(AR8,AR9) AND AR9<-18 AND AR9<ARB,60,50),COLORYELLOW ;
ARC:=HHV(HIGH,9)-LLV(LOW,9);
ARD:=HHV(HIGH,9)-CLOSE;
ARE:=CLOSE-LLV(LOW,9);
ARF:=ARD/ARC*100-70;
AR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
AR11:=(2*CLOSE+HIGH+LOW)/4;
AR12:=SMA(ARE/ARC*100,3,1);
AR13:=LLV(LOW,34);
AR14:=SMA(AR12,3,1)-SMA(ARF,9,1);
AR15:=IF(AR14>100,AR14-100,0);
AR16:=HHV(HIGH,34);
AR17:=EMA((AR11-AR13)/(AR16-AR13)*100,8);
AR18:=EMA(AR17,5);
WIN_C:= AR17 > 0 AND AR17 - AR18 >= 0;
WAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
WAR2:=SMA(ABS(LOW-WAR1),13,1)/SMA(MAX(LOW-WAR1,0),10,1);
WAR3:=EMA(WAR2,10);
WAR4:=LLV(LOW,12);
WAR5:=EMA(IF(LOW<=WAR4,WAR3,0),3);
主力吸货:=IF(WAR5>REF(WAR5,1),WAR5,0),COLORRED,NODRAW;
洗盘:=IF(WAR5<REF(WAR5,1),WAR5,0),COLORGREEN,NODRAW;
WAR21:=SMA(ABS(HIGH-WAR1),13,1)/SMA(MIN(HIGH-WAR1,0),10,1);
WAR31:=EMA(WAR21,10);
WAR41:=HHV(HIGH,12);
WAR51:=EMA(IF(HIGH>=WAR41,WAR31,0),3);
ZHULI_C:= WAR51 < 0 AND REF(WAR51, 1) >= 0;
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势:=IF(VAR6>45,VAR6-45,0);
BANDWANG_C:= REF(趋势, 1) < 趋势;
XG:MA_C AND WIN_C AND ZHULI_C AND BANDWANG_C;
| |