指标编写问答66学习的宝藏
331.问:剔除连续三天跌停的股票。
答(恒悦):
NOT(COUNT(c>ref(c,1)*0.905,3)=3)
332.问:
百分百换手
公式最终结果bfhr表示光标所在K线向回统计,换手率为100%的日期数,我想将您所编公式的 日期数代表的起始日画上竖线,随着光标移动而变动,做了一晚上,起始日的竖线就是画不到 相应的日子上.
av:=if(STKTYPE=0,100000000,CAPITAL);
bfhr:SUMBARS(vol,av);
{好思路:用成交量的和=流通盘,来表示100%换手率}
v1:=SYSPARAM(1);
v2:=barssince(c)=v1-bfhr;
VERTLINE(v2),pointdot,color996666,linethick3;
DRAWNUMBER(v2,SYSPARAM(4),100,0)
答(恒悦):
av:=if(STKTYPE=0,100000000,CAPITAL);
bfhr:SUMBARS(vol,av);
VERTLINE(BARPOS=SYSPARAM(1)),linethick3,coloryellow;
VERTLINE(BARPOS=SYSPARAM(1)-bfhr),linethick3,coloryellow;
DRAWNUMBER(BARPOS=SYSPARAM(1)-bfhr,80,bfhr,0);
333.问:
近期筹码分布某周期的百分比如何用价格的方式
答(恒悦):
input:n(5,1,1000);
区间上限:hhv(h,n);
区间下限:llv(l,n);
中间价: (区间上限-区间下限)/2+区间下限;
334.问:
编一个“跟随十字光标移动,并且以当日收盘价为准的百分比线”
答(恒悦):
wz:=SYSPARAM(1);
cc:=c;
jg:=cc;
DRAWSL(BARSSINCE(c)=wz,jg*1.875,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.75,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.5,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.25,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.125,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.875,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.75,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.5,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.25,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.125,0,datacount-wz,0);
335.问:
能否在每条线上显示价钱?
答(恒悦):
wz:=SYSPARAM(1);
cc:=c;
jg:=cc;
DRAWSL(BARSSINCE(c)=wz,jg*1.875,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.75,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.5,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.25,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*1.125,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.875,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.75,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.5,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.25,0,datacount-wz,0);
DRAWSL(BARSSINCE(c)=wz,jg*0.125,0,datacount-wz,0);
DRAWNUMBER(BARSSINCE(c)=wz,jg*1.875,jg*1.875,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*1.75,jg*1.75,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*1.5,jg*1.5,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*1.25,jg*1.25,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*1.125,jg*1.125,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*0.875,jg*0.875,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*0.75,jg*0.75,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*0.5,jg*0.5,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*0.25,jg*0.25,2);
DRAWNUMBER(BARSSINCE(c)=wz,jg*0.125,jg*0.125,2);
答():
k:=sysparam(1);
fc:=close;
cc:=fc*c/c;
a:=setlbound(cc,k);
cc;
cc*1.875;
cc*1.75;
cc*1.5;
cc*1.25;
cc*1.125;
cc*0.875;
cc*0.75;
cc*0.5;
cc*0.25;
cc*0.125;
:):):):):):) 谢谢你的分享 。 谢谢您的分享! 学习学习再学习!
页:
[1]