用法参考 MI 动力指数 的用法共选股作为参考用的,测试一下。
V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2:=EMA(V1,300);
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
V4:SMA(V3,2,1);
V5:SMA(V4,2,1);
V6:=CLOSE/REF(CLOSE,1)>=1.1;
信号确定:IF((V6 AND COUNT(V6,3)=1),50,0),colormagenta,LINETHICK3;
DRAWTEXT(信号确定,50,'信号确定'),colormagenta,LINETHICK3;
V10:=PEAKBARS(3,15,1)<10;
V12:=IF(V10=1,50,0);
头部:= IF(V12=50,100,0);
风险:IF(头部>REF(头部,1),50,0),colorgreen,LINETHICK3;
DRAWTEXT(风险,50,'风险'),coloryellow,LINETHICK3;
V9:=TROUGHBARS(3,15,1)<10;
V11:=IF(V9=1,50,0);
底部:= IF(V11=50,50,0);
关注:IF( 底部>REF(底部,1),40,0),colorred,LINETHICK3;
DRAWTEXT(关注,40,'关注'),coloryellow,LINETHICK3;