超准买卖1 ,地位交叉为买入信号,高位交叉为卖出信号。
地位交叉为买入信号,高位交叉为卖出信号。
源码
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M);
D:MA(K,M);
顶线:80,colorgreen,Linethick2;
中线: 50,colorred;
底线:20,colorwhite;
VARF:=TROUGHBARS(3,15,1)<4;
VAR11:=IF(VARF=1,50,0);
DRAWTEXT(FILTER(VARF=1,3),25,'▲抄底买入'),colorred;
VAR3:=PEAKBARS(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:=IF(顶>REF(顶,1),80,0),colorgreen;
DRAWTEXT(顶A=80,75,'▼顶部卖出'),COLOR00FF00;