同花顺涨跌和量指标公式

[复制链接]
查看210 | 回复0 | 2021-8-20 21:35:28 | 显示全部楼层 |阅读模式

N:=10;
N1:=28;
C3:=VOL*(MAX((CLOSE-OPEN),(CLOSE-REF(CLOSE,1)))/MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)));
XV:SUM(C3,N),colorblack;
XVN:EMA(XV,N),colormagenta;
XVN1:EMA(XV,N1),colorblue;
XVH:EMA(XV,N)+STD(XV,N),colormagenta;
XVH1:EMA(XV,N)+STD(XV,N)*2,colormagenta;
XVL:EMA(XV,N)-STD(XV,N),colorblue;
XVL1:EMA(XV,N)-STD(XV,N)*2,colorblue;
DRAWTEXT(XV>XVN,XVH1,'买'),colorred,ALIGN1,VALIGN1,FONTSIZE14;
DRAWTEXT(XVN>XV,XVH1,'卖'),colorblue,ALIGN1,VALIGN1,FONTSIZE14;
DRAWTEXT(CROSS(EVERY(XV<0,2),0.5),XV,'0↓'),colorblue,ALIGN1,VALIGN0,FONTSIZE14;
DRAWTEXT(CROSS(EVERY(XV>0,2),0.5),XV,'0↑'),colorred,ALIGN1,VALIGN0,FONTSIZE14;

202108202132.jpg

202108202132.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则