来函数检测结果如下:
该公式没有未来函数



RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

K1:=SMA(RSV1,5,1);

D1:=SMA(K1,5,1);

J1:=3*K1-2*D1;

AA1:=EMA(J1,5);

AA2:=REF(AA1,1);

STICKLINE(AA1>AA2,AA1,AA2,3,0),COLOR0055AA;

STICKLINE(AA1>AA2,AA1,AA2,2.5,0),COLOR0077CC;

STICKLINE(AA1>AA2,AA1,AA2,2,0),COLOR0099DD;

STICKLINE(AA1>AA2,AA1,AA2,1,0),COLOR01BEE7;

STICKLINE(AA1<=AA2,AA1,AA2,3,0),COLOR006600;

STICKLINE(AA1<=AA2,AA1,AA2,2.5,0),COLOR009900;

STICKLINE(AA1<=AA2,AA1,AA2,2,0),COLOR00BB00;

STICKLINE(AA1<=AA2,AA1,AA2,1,0),COLOR00CC00;

RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K2:=SMA(RSV2,3,1);

D2:=SMA(K2,3,1);

J2:=3*K2-2*D2;

BB1:=EMA(J2,5);

BB2:=REF(BB1,1);

STICKLINE(BB1>BB2,BB1,BB2,3,0),COLOR000045;

STICKLINE(BB1>BB2,BB1,BB2,2.5,0),COLOR000085;

STICKLINE(BB1>BB2,BB1,BB2,2,0),COLOR0000C5;

STICKLINE(BB1>BB2,BB1,BB2,1,0),COLOR0000E5;

STICKLINE(BB1<=BB2,BB1,BB2,3,0),COLOR353500;

STICKLINE(BB1<=BB2,BB1,BB2,2.5,0),COLOR555500;

STICKLINE(BB1<=BB2,BB1,BB2,2,0),COLOR757500;

STICKLINE(BB1<=BB2,BB1,BB2,1,0),COLOR858500;

DD:=AA1>AA2 AND BB1>BB2;

注意买入:DD AND NOT(REF(DD,1)) AND (AA1< 50 OR BB1< 50) ,LINETHICK0;

DRAWICON(注意买入,BB2,1);

注意卖出:REF(DD,1)=1 AND NOT(DD),LINETHICK0;

DRAWICON(注意卖出,105,2);

95;

50;

2;

均价:SUM(AMOUNT,1)/SUM(V,1)/100,LINETHICK0;

止损:C*(1-0.025),LINETHICK0;

VAR1:=EMA(CLOSE,3)-EMA(CLOSE,89);

VAR2:=EMA(VAR1,21);

VAR3:=(VAR1-VAR2)*10;

VAR4:=POW(VAR3,3)*0.1+POW(VAR3,2);

VAR5:=IF(VAR3>0.015,VAR4,0)/45;

VAR6:=VAR5/REF(VAR5,1)>5 AND REF(VAR5,1)/REF(VAR5,2)>5;

DRAWICON(VAR6 AND 注意买入,BB2,38);

原理解析:
RSV1赋值:(收盘价-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100
RSV1的5日[1日权重]移动平均
K1的5日[1日权重]移动平均
J1赋值:3*K1-2*D1
AA1赋值:J1的5日指数移动平均
AA2赋值:1日前的AA1
当满足条件AA1>AA2时,在AA1和AA2之间画柱状线
当满足条件AA1>AA2时,在AA1和AA2之间画柱状线
当满足条件AA1>AA2时,在AA1和AA2之间画柱状线
当满足条件AA1>AA2时,在AA1和AA2之间画柱状线
当满足条件AA1<=AA2时,在AA1和AA2之间画柱状线
当满足条件AA1<=AA2时,在AA1和AA2之间画柱状线
当满足条件AA1<=AA2时,在AA1和AA2之间画柱状线
当满足条件AA1<=AA2时,在AA1和AA2之间画柱状线
RSV2赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV2的3日[1日权重]移动平均
K2的3日[1日权重]移动平均
J2赋值:3*K2-2*D2
BB1赋值:J2的5日指数移动平均
BB2赋值:1日前的BB1
当满足条件BB1>BB2时,在BB1和BB2之间画柱状线
当满足条件BB1>BB2时,在BB1和BB2之间画柱状线
当满足条件BB1>BB2时,在BB1和BB2之间画柱状线
当满足条件BB1>BB2时,在BB1和BB2之间画柱状线
当满足条件BB1<=BB2时,在BB1和BB2之间画柱状线
当满足条件BB1<=BB2时,在BB1和BB2之间画柱状线
当满足条件BB1<=BB2时,在BB1和BB2之间画柱状线
当满足条件BB1<=BB2时,在BB1和BB2之间画柱状线
DD赋值:AA1>AA2 AND BB1>BB2
输出注意买入:DD AND NOT(1日前的DD) AND (AA1< 50 OR BB1< 50) ,LINETHICK0
当满足条件注意买入时,在BB2和1之间画图标
输出注意卖出:1日前的DD=1 AND NOT(DD),LINETHICK0
当满足条件注意卖出时,在105和2之间画图标
95
50
2
输出均价:1的成交额日累和/1的V日累和/100,LINETHICK0
输出止损:C*(1-0.025),LINETHICK0
VAR1赋值:收盘价的3日指数移动平均-收盘价的89日指数移动平均
VAR2赋值:VAR1的21日指数移动平均
VAR3赋值:(VAR1-VAR2)*10
VAR4赋值:POW(VAR3,3)*0.1+POW(VAR3,2)
如果VAR3>0.015返回VAR4否则返回0
VAR6赋值:VAR5/1日前的VAR5>5 AND 1日前的VAR5/2日前的VAR5>5
当满足条件VAR6 AND 注意买入时,在BB2和38之间画图标

声明:本站所有资源,均为用户自主上传,仅作为学习交流之用,其版权归原作者或原出版社所有,本站不对所涉及的版权问题负法律责任。如有侵权,请联系我们删除!