提示交易天数的公式
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 请老师写个公式 通达信软件 设想:最新一天的交易日,K线图,K线下方显示为1(如图) 往后数,顺序依次为:1,5,10,20,30,60,120,240,显示周期为任意周期!! 解答如下: 如果一定要历史信号,这样 A:=REF(C,BARSLAST(CURRBARSCOUNT=10)); B:=CURRBARSCOUNT=5 AND C/A=0.99 AND C/A=1.01; DRAWICON(B,L*0.99,11)
-
文章来源:股海网作者:股海网发布时间:2019-07-08浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
请老师写个公式
通达信软件
设想:最新一天的交易日,K线图,K线下方显示为1(如图)
往后数,顺序依次为:1,5,10,20,30,60,120,240,显示周期为任意周期!!
通达信软件
设想:最新一天的交易日,K线图,K线下方显示为1(如图)
往后数,顺序依次为:1,5,10,20,30,60,120,240,显示周期为任意周期!!
解答如下:
如果一定要历史信号,这样
A:=REF(C,BARSLAST(CURRBARSCOUNT=10));
B:=CURRBARSCOUNT=5 AND C/A>=0.99 AND C/A<=1.01;
DRAWICON(B,L*0.99,11);
DRAWNUMBER(CURRBARSCOUNT<=20,L,CURRBARSCOUNT),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=10,L,CURRBARSCOUNT),COLORMAGENTA;
DRAWNUMBER(CURRBARSCOUNT=5,L,CURRBARSCOUNT),COLORMAGENTA;
D:=BARSLAST(MOD(CURRBARSCOUNT,5)=0);
E:=C/REF(REF(C,D),1)*100-100;
F:=ABS(E)<=1 AND D=0 AND CURRBARSCOUNT>=10;
DRAWICON(F,L*0.99,11);
A:=REF(C,BARSLAST(CURRBARSCOUNT=10));
B:=CURRBARSCOUNT=5 AND C/A>=0.99 AND C/A<=1.01;
DRAWICON(B,L*0.99,11);
DRAWNUMBER(CURRBARSCOUNT<=20,L,CURRBARSCOUNT),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=10,L,CURRBARSCOUNT),COLORMAGENTA;
DRAWNUMBER(CURRBARSCOUNT=5,L,CURRBARSCOUNT),COLORMAGENTA;
D:=BARSLAST(MOD(CURRBARSCOUNT,5)=0);
E:=C/REF(REF(C,D),1)*100-100;
F:=ABS(E)<=1 AND D=0 AND CURRBARSCOUNT>=10;
DRAWICON(F,L*0.99,11);
上一篇:净资产收益率大于10%的选股公式
下一篇:把六指金叉里涨不停等于1改选股