拼凑画线
我是一个小一级的学生,在这里感受到了所有的老师和学友们的热情和无私.
拼凑了个指标,希望老师和学友们不要笑话.
祝福理想的老师和学友们新的一年中,快乐健康如意!
感谢老师们提供的源码,感谢原作者!
源码如下:
{p1 3 1 255 1}
var9q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3))
or ref(c,1)=hhv(c,4) and close>=ref(c,2)
or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1)
or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
varaq:=c=hhv(c,4) and ref(c,1)=llv(c,4);
varbq:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3))
or ref(c,1)=llv(c,4) and c<ref(c,2)
or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1)
or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
varcq:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4)
and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
vardq:=ref(c,1)=hhv(c,4) and c<ref(c,2)
or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3)
or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2))
and ref(c,2)>=ref(c,4) and c<ref(c,1);
gj:=if(c=indexc,(indexc+indexh+indexl+indexo)/4,amount/(v+0.01)/100);
明日阻力:=l+(gj-l)+(c-l);
明日支撑:=l+(c-gj);
今日阻力:ref(明日阻力 , 1),linethick0,color0000ff;
今日支撑:ref(明日支撑 , 1),linethick0,colorff0000;
if datatype>1 then begin;
工作线:ma(c,14),linethick2,coloryellow;
partline(工作线,(工作线>ref(工作线,1))),linethick2,colorred;
partline(工作线,(工作线<ref(工作线,1))),linethick2,colorgreen;
var1111:=backset(ref(high,2)=hhv(high,5),3);
var2222:=cross(var1111,0.9);
var3333:=backset(ref(low,2)=llv(low,5),3);
var4444:=cross(var3333,0.9);
压力: ref(high,barslast(var2222)), pointdot,colorea91b5;
stickline(close,ref(high,barslast(var2222)),ref(high,barslast(var2222)),5,0),colorea91b5;
支撑: ref(low,barslast(var4444)), pointdot,color00b4ff;
stickline(close,ref(low,barslast(var4444)),ref(low,barslast(var4444)),5,0),color00b4ff;
下档线:=(((close - llv(low,13)) / (hhv(high,13) - llv(low,13))) * 100);
arsv:=sma(下档线,3,1);
ak:=sma(arsv,3,1);
ad:=((3 * arsv) - (2 * ak));
aj12:=(((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100);
arsv24:=sma(aj12,3,1);
ak24:=sma(arsv24,3,1);
ad24:=((3 * arsv24) - (2 * ak24));
撑压位:=if(cross(ad24,ad),high,ref(high,barslast(cross(ad24,ad)))){,linethick2,colorffffff};
底:=llv(high,30){,color00ff00,linethick2};
stickline(barstatus=2 ,撑压位,撑压位,40,1),linethick1,colorffffff;
drawtext(barstatus=2 ,撑压位,' 撑压'),colorffffff,valign1;
stickline(barstatus=2 ,底,底,40,1),color00ff00,linethick1;
drawtext(barstatus=2 ,底,' 底线'),color00ff00,valign0;
stickline(barstatus=2,今日阻力,今日阻力,20,0),color0000ff;
stickline(barstatus=2 ,今日支撑,今日支撑,20,0),colorff0000;
end;
wn:=p1;{原码 n:=3;}
wa1:=ref(h,wn)=hhv(h,2*wn+1); wb1:=filter(wa1,wn); wc1:=backset(wb1,wn+1); wd1:=filter(wc1,wn);{高点}
wa2:=ref(l,wn)=llv(l,2*wn+1); wb2:=filter(wa2,wn); wc2:=backset(wb2,wn+1); wd2:=filter(wc2,wn);{低点}
we1:=(ref(llv(l,2*wn),1)+ref(hhv(h,2*wn),1))/2; we2:=(h+l)/2;{高低点出现在同一k线上时可作取舍}
wh1:=(wd1 and not(wd2 and we1>=we2)) or dispstatus=2 or barscount(c)=1;
wl1:=(wd2 and not(wd1 and we1<we2));wh2:=wd1 and not(wd2 and we1>=we2);
wx1:=ref(barslast(wh1),1)+1; wf1:=backset(wh1 and count(wl1,wx1)>0,llvbars(if(wl1,l,10000),wx1));
wg1:=wf1>ref(wf1,1); wi1:=backset(wg1,2); wld:=wi1>ref(wi1,1);{过滤后低点}
wl2:=wld or dispstatus=2 or barscount(c)=1;
wx2:=ref(barslast(wl2),1)+1; wf2:=backset(wl2 and count(wh2,wx2)>0,hhvbars(if(wh2,h,0),wx2));
wg2:=wf2>ref(wf2,1); wi2:=backset(wg2,2); whd:=wi2>ref(wi2,1);{过滤后高点}
wr1:=backset(dispstatus=2,barslast(whd)+1); ws1:=wr1>ref(wr1,1); {前一高}
wt1:=backset(dispstatus=2,barslast(wld)+1); wu1:=wt1>ref(wt1,1); {前一低}
wr2:=backset(ws1,ref(barslast(whd),1)+2); ws2:=wr2>ref(wr2,1); {前二高}
wt2:=backset(wu1,ref(barslast(wld),1)+2); wu2:=wt2>ref(wt2,1); {前二低}
wt3:=backset(wu2,ref(barslast(wld),1)+2); wu3:=wt3>ref(wt3,1); {前三低}
wt4:=backset(wu3,ref(barslast(wld),1)+2); wu4:=wt4>ref(wt4,1); {前四低}
wr3:=backset(ws2,ref(barslast(whd),1)+2); ws3:=wr3>ref(wr3,1); {前三高}
wr4:=backset(ws3,ref(barslast(whd),1)+2); ws4:=wr4>ref(wr4,1); {前四高}
drawline(ws2,h,ws1,h,1),linethick1,color008888; {★压力1:}
drawline(wu2,l,wu1,l,1),pointdot,linethick1,color008888;{★支撑1:}
drawline(ws3,h,ws2,h,1),linethick1,color888000; {★压力2:}
drawline(wu3,l,wu2,l,1),linethick1,pointdot,color888000;{★支撑2:}
drawline(ws4,h,ws3,h,1),linethick1,color0000cc;{★压力3:}
drawline(wu4,l,wu3,l,1),linethick1,pointdot,color0000cc;{★支撑3:};
n:=20;
均价:=(3*c+h+l+o)/6;
var1:=(8*均价+7*ref(均价,1)+6*ref(均价,2)+5*ref(均价,3)+4*ref(均价,4)+3*ref(均价,5)+2*ref(均价,6)+ref(均价,8))/36;
var2:=(llv(var1,2)+llv(var1,4)+llv(var1,6))/3;
sz1:=ref(var1,1)=ref(var2,1) and var1>var2 and close>var1;
sz2:=var1>var2 and var1>ref(var1,1) and var2>ref(var2,1) and h/var1<1.1 and l>var2 and close>var1;
sz3:=var1>var2 and var1>ref(var1,1) and var2>=ref(var2,1) and h/var1>1.1;
sz4:=var1>var2 and var1>ref(var1,1) and var2>ref(var2,1) and close>var2 and close<var1;
sz5:=(var1>var2 and var2>ref(var2,1) and var1<>ref(var1,1) and close<var2) or (var1>var2 and var1<ref(var1,1) and var2<ref(var2,1) and close<var2);;
sz6:=ref(var1,1)>ref(var2,1) and var1=var2 and close<var2;
xd1:=var1=var2 and close<var2 or (var1<ref(var1,1) and var2<ref(var2,1) and ref(var1,1)=ref(var2,1) and close<var2);
xd2:=var1=var2 and close>var1;
sat:=(amount/c)/(hhv(amount,n)/hhv(c,n));
量能饱和度:=if(sat>1,1,sat)*100;
if barstatus=2 and sz1 then begin
drawtextabs(10,20,'■ 调整结束短线介入'),colorred;
end
else
if barstatus=2 and sz2 then begin
drawtextabs(10,20,'■ 上升通道走势良好'),linethick1,colorred;
end
else
if barstatus=2 and sz3 then begin
drawtextabs(10,20,'■ 股价偏离注意调整'),colorred;
end
else
if barstatus=2 and sz4 then begin
drawtextabs(10,20,'■ 上升通道调整洗盘'),colorgreen;
end
else
if barstatus=2 and sz5 then begin
drawtextabs(10,20,'■ 转向特征注意离场'),colorgreen;
end
else
if barstatus=2 and sz6 then begin
drawtextabs(10,20,'■ 通道改变坚决离场'),colorgreen;
end
else
if barstatus=2 and xd1 then begin
drawtextabs(10,20,'■ 下跌通道只宜观望'),colorgreen;
end
else
if barstatus=2 and xd2 then begin
drawtextabs(10,20,'■ 短期底部准备进入'),coloryellow;
end;
上一指标公式:买入信号公式下载 大智慧买入
下一指标公式:八脉神剑-新年贺礼公式下载 大智慧神剑
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文拼凑画线公式下载 大智慧画线指标仅供学习研究。