黑马趋势 // 黑马趋势
天:80,colorligreen,LINETHICK1;
零:0,colorwhite,LINETHICK1;
地:20,coloryellow,LINETHICK1;
M:=60;
N:=30;
N3:=BARSLAST(CROSS(C,MA(C,13)));
N4:=BARSLAST(CROSS(MA(C,13),C));
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
趋势:EMA(J,6), coloryellow;
做空趋势:=100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),colorgreen;
黑马趋势:IF(N3<N4,N3+1,0),colorwhite;
IF(趋势>REF(趋势,1),趋势,DRAWNULL), colryellow,LINETHICK4;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
AA6:=SMA(AA3,21,8);
主力:CEILING(SMA(AA5,13,8)), colormagenta,LINETHICK2;
条件:= 3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1);
买入信号8:=IF(CROSS(条件,8),1,0),colorred,NODRAW;
买入信号10:=IF(CROSS(条件,10),1,0),colorred,NODRAW;
卖出信号:=IF(CROSS(90,条件),1,0) ,colorgreen ,NODRAW;
STICKLINE(买入信号10,60,0,4,0),coloryellow;
STICKLINE(买入信号10,50,0,4,0),colorred;
STICKLINE(买入信号8,60,0,4,0),coloryellow;
STICKLINE(买入信号8,50,0,4,0), colormagenta;
STICKLINE(卖出信号,60,0,4,0),coloryellow;
STICKLINE(卖出信号,50,0,4,0),colorgreen;
STICKLINE(主力-AA6<-65,0,5,7,0),colormagenta;
STICKLINE(主力-AA6>85,100,96,7,0),colorgreen;
DRAWICON(FILTER(J>REF(J,1) AND 主力>=REF(主力,1) AND 主力<25 ,5),主力,1);
DRAWICON(FILTER(J<REF(J,1) AND 主力<=REF(主力,1) AND J>85 ,5),J,15);
|
