一个资金公式和选股指标

[复制链接]
查看60 | 回复0 | 2022-7-24 07:00:07 | 显示全部楼层 |阅读模式

资金指标代码


A1:=((INDEXC - (REF(INDEXC,1))) / (REF(INDEXC,1))) * 100;
 A2:=((CLOSE - (REF(CLOSE,1))) / (REF(CLOSE,1))) * 100;
 A3:=(EMA((A2 - A1),20)) * 1000;
 A4:=REF(A3,1);
 A5:=(A3);
 STICKLINE((A3 > 0),A4,A3,3,0),COLORRED;
 STICKLINE((A3 < 0),A4,A3,3,0),COLORGREEN;
 A6:=(A3 > A4) AND (A3 < 0);
 STICKLINE((A3 < 0),A4,A5,3,0),COLORGREEN;
 STICKLINE((A3 < 0),A4,A5,2.5,0),COLOR28FF28;
 STICKLINE((A3 < 0),A4,A5,2,0),COLOR3DFF3D;
 STICKLINE((A3 < 0),A4,A5,1.5,0),COLOR51FF51;
 STICKLINE((A3 < 0),A4,A5,1,0),COLOR8EFF8E;
 STICKLINE((A3 < 0),A4,A5,0,0),COLORA2FFA2;
 STICKLINE((A3 > 0),A4,A5,3,0),COLORRED;
 STICKLINE((A3 > 0),A4,A5,2.5,0),COLOR1414FF;
 STICKLINE((A3 > 0),A4,A5,2,0),COLOR2828FF;
 STICKLINE((A3 > 0),A4,A5,1.5,0),COLOR3D3DFF;
 STICKLINE((A3 > 0),A4,A5,1,0),COLOR7A7AFF;
 STICKLINE((A3 > 0),A4,A5,0,0),COLOR8E8EFF;
资金趋势:MA(A3,8),COLORGREEN;
 0,COLORFF0000;

 

637288017.jpg

637288017.jpg

======================

如图
今天资金的红色柱子越过了前期的高点。预警
 前期的高点为昨天开始向前数55根K线的最高点,
 也就是说,是ref(红柱子,1)到ref(红柱子,56)之间的最高点

选股公式:

A1:=((INDEXC - (REF(INDEXC,1))) / (REF(INDEXC,1))) * 100;
 A2:=((CLOSE - (REF(CLOSE,1))) / (REF(CLOSE,1))) * 100;
 A3:=(EMA((A2 - A1),20)) * 1000;资金趋势:=MA(A3,8);
 B:=REF(HHV(资金趋势,55),1);
 XG:CROSS(资金趋势,B);
 

637388767.jpg

637388767.jpg

 

回复

使用道具 举报

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

本版积分规则