清泉子低位进通达信公式 副图 源码附图
N:=10;N1:=6;
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
STICKLINE(VAR7,0,VAR7,6,1),COLORFFAAFF;
趋势线:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLORAABBDD;
VAR8:=REF(趋势线,1)<REF(趋势线,2) AND 趋势线<(-30) AND 趋势线>=REF(趋势线,1) OR (REF(CROSS((-30),趋势线),1) AND CROSS(趋势线,(-30))) OR 趋势线=(-30);
VAR9:=REF(趋势线,1)<REF(趋势线,2) AND 趋势线<(-20) AND 趋势线>(-25) AND 趋势线>=REF(趋势线,1) OR (REF(CROSS((-20),趋势线),1) AND CROSS(趋势线,(-20)));
WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));
WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));
买进:VAR8;
STICKLINE(买进,(-1),200,3,0),COLORRED;
上市天数:BARSCOUNT(CLOSE),NODRAW,COLORWHITE;
买入天数:BARSLAST(买进),NODRAW,COLORCYAN;
VAR10:=REF(CLOSE,买入天数);
VAR11:=VAR10*1.05;
VAR12:=VAR10*0.85;
涨幅:(CLOSE-VAR10)/VAR10*100,NODRAW,COLORYELLOW;
VAR13:=CLOSE>VAR11;
VAR14:=CLOSE<VAR12;
VAR15:=VAR13 AND COUNT(REF(VAR13,1),买入天数)=0 AND COUNT(REF(VAR14,1),买入天数)=0;
VAR16:=VAR14 AND COUNT(REF(VAR14,1),买入天数)=0 AND COUNT(REF(VAR13,1),买入天数)=0;
DRAWICON(VAR15,50,1);
DRAWICON(VAR16,50,2);
止赢次数:SUM(VAR13 AND COUNT(REF(VAR13,1),买入天数)=0 AND COUNT(REF(VAR14,1),买入天数)=0,上市天数),NODRAW,COLORCYAN;
止损次数:SUM(VAR14 AND COUNT(REF(VAR14,1),买入天数)=0 AND COUNT(REF(VAR13,1),买入天数)=0,上市天数),NODRAW,COLORYELLOW;
总操作次数:止赢次数+止损次数,NODRAW,COLORCYAN;
成功率:止赢次数/总操作次数*100,NODRAW,COLORYELLOW;
VAR17:=止赢次数*10;
VAR18:=止损次数*2;
净赢幅:VAR17-VAR18,NODRAW,COLORCYAN;
{股票指标网 整理}
来函数检测结果如下:
该公式没有未来函数
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N赋值:10
N1:=6
VAR1赋值:1日前的最低价
VAR2赋值:SMA(最低价-VAR1的绝对值,3,1)/SMA(最低价-VAR1和0较大值,3,1)*100
如果收盘价*1.2返回VAR2*10否则返回VAR2/10
VAR4赋值:38日内最低价最低值
VAR5赋值:38日内VAR3最高值
VAR6赋值:IF(90日内最低价最低值,1,0)
VAR7赋值:EMA(IF(最低价<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6
当满足条件VAR7时,在0和VAR7之间画柱状线
输出趋势线:(收盘价-收盘价的40日简单移动平均)/收盘价的40日简单移动平均*100,COLORAABBDD
VAR8赋值:1日前的趋势线<2日前的趋势线 AND 趋势线<(-30) AND 趋势线>=1日前的趋势线 OR (REF(CROSS((-30),趋势线),1) AND CROSS(趋势线,(-30))) OR 趋势线=(-30)
VAR9赋值:1日前的趋势线<2日前的趋势线 AND 趋势线<(-20) AND 趋势线>(-25) AND 趋势线>=1日前的趋势线 OR (REF(CROSS((-20),趋势线),1) AND CROSS(趋势线,(-20)))
输出WR1:100*(N日内最高价最高值-收盘价)/(N日内最高价最高值-N日内最低价最低值)
输出WR2:100*(N1日内最高价最高值-收盘价)/(N1日内最高价最高值-N1日内最低价最低值)
输出买进:VAR8
STICKLINE(买进,(-1),200,3,0),画红色
输出上市天数:收盘价的有效数据周期数,NODRAW,画白色
输出买入天数:上次买进距今天数,NODRAW,COLORCYAN
VAR10:=买入天数日前的收盘价
VAR11:=VAR10*1.05
VAR12:=VAR10*0.85
输出涨幅:(收盘价-VAR10)/VAR10*100,NODRAW,画黄色
VAR13:=收盘价>VAR11
VAR14:=收盘价
VAR15:=VAR13 AND COUNT(1日前的VAR13,买入天数)=0 AND COUNT(1日前的VAR14,买入天数)=0
VAR16:=VAR14 AND COUNT(1日前的VAR14,买入天数)=0 AND COUNT(1日前的VAR13,买入天数)=0
当满足条件VAR15时,在50和1之间画图标
当满足条件VAR16时,在50和2之间画图标
输出止赢次数:SUM(VAR13 AND COUNT(1日前的VAR13,买入天数)=0 AND COUNT(1日前的VAR14,买入天数)=0,上市天数),NODRAW,COLORCYAN
输出止损次数:SUM(VAR14 AND COUNT(1日前的VAR14,买入天数)=0 AND COUNT(1日前的VAR13,买入天数)=0,上市天数),NODRAW,画黄色
输出总操作次数:止赢次数+止损次数,NODRAW,COLORCYAN
输出成功率:止赢次数/总操作次数*100,NODRAW,画黄色
VAR17:=止赢次数*10
VAR18:=止损次数*2
输出净赢幅:VAR17-VAR18,NODRAW,COLORCYAN
{股票指标网 整理}