这是公式源码,经检测没有未来!
操盘线:EMA(C,7),COLORRED,LINETHICK2 ;
底线:EMA(C,20),COLORYELLOW,LINETHICK3 ;
支撑线:EMA(C,50),COLORRED,LINETHICK3;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
高点距离:=IF(REF(RSI1,1)<21 {OR 45<REF(RSI1,1)<50 AND REF(RSI1,2)>50} AND RSI1>REF(RSI1,1),LLVBARS(RSI1,4),0);
高点距离1:=IF(RSI1>REF(RSI1,1) AND REF(RSI1,2)>50 AND 45<REF(RSI1,1)<50 AND RSI1>50,LLVBARS(RSI1,3),1);
高点取值111:=IF(高点距离1<3 ,REF(H,高点距离1),0);
高点取值11:=IF(C>高点取值111 ,高点取值111,REF(高点取值111,1));
高点取值1:=IF(高点距离<4 ,REF(H,高点距离),0);
高点取值:IF(C>高点取值1,高点取值1,REF(高点取值1,1{H,高点距离})),LINETHICK2;
选股1:=IF(C>高点取值 AND 高点取值>0 ,50,DRAWNULL);
选股2:=IF(选股1=50,100,DRAWNULL);
DRAWTEXT(高点取值=高点取值11 OR ABS(高点取值-高点取值11)/高点取值<0.008 AND C>高点取值 AND RSI1<60,L-0.0035*L,'↖买入持股'),COLORRED;
DRAWTEXT(CROSS(高点取值11,高点取值) OR ABS(高点取值11-高点取值)/高点取值<0.005 AND RSI1>35 AND C>高点取值 ,H+0.035*H,'↙买入'),COLORRED; |