KDJ月周日捕捉大牛股之预警准确率98%
VAR1:=MA(KDJ.K#MONTH(9,3,3),21);
月D:MA(KDJ.D#MONTH(9,3,3),21),COLORLICYAN;
月J:MA(KDJ.J#MONTH(9,3,3),21),COLOR000080;
DRAWBAND(月D,RGB(0,80,80),月J,RGB(120,0,0));
VAR2:=MA(KDJ.K#WEEK(9,3,3),5);
周D:MA(KDJ.D#WEEK(9,3,3),5),COLOR009900;
周J:MA(KDJ.J#WEEK(9,3,3),5),COLOR000099;
DRAWBAND(周D,RGB(0,130,20),周J,RGB(180,0,80));
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
{股票指标网}
D:SMA(VAR4,3,1),COLORYELLOW;
J:3*VAR4-2*D,COLORMAGENTA;
DRAWBAND(D,RGB(0,180,0),J,RGB(250,0,0));
VAR5:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7);
VAR6:=HIGH-REF(HIGH,1);
VAR7:=REF(LOW,1)-LOW;
VAR8:=SUM(IF(VAR6>0 AND VAR6>VAR7,VAR6,0),7);
VAR9:=SUM(IF(VAR7>0 AND VAR7>VAR6,VAR7,0),7);
VAR10:=VAR8*100/VAR5;
VAR11:=VAR9*100/VAR5;
VAR12:=MA(ABS(VAR11-VAR10)/(VAR11+VAR10)*100,3);
VAR13:=(VAR12+REF(VAR12,3))/2;
VAR14:=VAR8*100/VAR5;
VAR15:=VAR9*100/VAR5;
VAR16:=MA(ABS(VAR15-VAR14)/(VAR15+VAR14)*100,3);
大牛股:IF(VAR12>90 AND VAR10=0,80,0),LINESTICK,COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:MA(KDJ.K#MONTH(9,3,3),21)
输出月D:MA(KDJ.D#MONTH(9,3,3),21),COLORLICYAN
输出月J:MA(KDJ.J#MONTH(9,3,3),21),COLOR000080
DRAWBAND(月D,RGB(0,80,80),月J,RGB(120,0,0))
VAR2赋值:MA(KDJ.K#WEEK(9,3,3),5)
输出周D:MA(KDJ.D#WEEK(9,3,3),5),COLOR009900
输出周J:MA(KDJ.J#WEEK(9,3,3),5),COLOR000099
DRAWBAND(周D,RGB(0,130,20),周J,RGB(180,0,80))
VAR3赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
VAR3的3日[1日权重]移动平均
VAR4的3日[1日权重]移动平均
输出J:3*VAR4-2*D,画洋红色
DRAWBAND(D,RGB(0,180,0),J,RGB(250,0,0))
VAR5赋值:SUM(MAX(MAX(最高价-最低价,最高价-1日前的收盘价的绝对值),ABS(最低价-1日前的收盘价)),7)
VAR6赋值:最高价-1日前的最高价
VAR7赋值:1日前的最低价-最低价
如果VAR6>0 AND VAR6>VAR7返回VAR6否则返回0
如果VAR7>0 AND VAR7>VAR6返回VAR7否则返回0
VAR10:=VAR8*100/VAR5
VAR11:=VAR9*100/VAR5
VAR12:=MA(VAR11-VAR10的绝对值/(VAR11+VAR10)*100,3)
VAR13:=(VAR12+3日前的VAR12)/2
VAR14:=VAR8*100/VAR5
VAR15:=VAR9*100/VAR5
VAR16:=MA(VAR15-VAR14的绝对值/(VAR15+VAR14)*100,3)
如果VAR12>90 AND VAR10=0返回80否则返回0