优化整合上涨单阳不破+一阳穿三线主图
input:k1(2011,1990,3000),k2(1,1,12),k3(1,1,31),dx(0,0,2),fa(0,0,5),p1(5,0,255),p2(10,0,255),p3(20,0,255),p4(0,0,255),p5(0,0,255);
as:=(o+h+l+c)/4;
mma5:ema(as,p1);
syaa:ema(as,p2);
syab:ema(as,p3);{
syac:ema(as,p4);
syad:ema(as,p5);}
rqd:=(k1-1900)*10000+k2*100+k3;
dj:ref(l,barslast(date<=rqd )),linethick0,color55bb55;
上涨:=barssince(backset(barstatus=2,barslast(l=dj)+1));
stickline(c>=o,c,o,8,0),color0000ff,layer4;
stickline(c>=o,h,l,0,0),color0000ff,layer4;
stickline(c<=o,c,o,8,0),colorffff00,layer4;
stickline(c<=o,h,l,0,0),colorffff00,layer4;
drawtext(上涨=0 and fa>=1,dj,'1'),colorffffff,valign1;
drawtext(上涨=1 and fa>=1,dj,'2'),colorffffff,valign1;
drawtext(上涨=2 and fa>=1,dj,'3'),colorffffff,valign1;
drawtext(上涨=3 and fa>=1,dj,'4'),colorffffff,valign1;
drawtext(上涨=4 and fa>=1,dj,'5'),colorffffff,valign1;
drawtext(上涨=5 and fa>=1,dj,'6'),colorffffff,valign1;
drawtext(上涨=6 and fa>=1,dj,'7'),colorffffff,valign1;
drawtext(上涨=7 and fa>=1,dj,'8'),colorffffff,valign1;
drawtext(上涨=8 and fa>=1,dj,'9'),colorffffff,valign1;
drawtext(上涨=9 and fa>=1,dj,'10'),colorffffff,valign1;
阳涨幅:=3.5;
阳倍量:=1.9;
单阳收:=c;
单阳开:=o;
单阳:=单阳收>=ref(c,1)*(1+阳涨幅/100)and vol>ref(vol,1)*阳倍量;
drawtext(barstatus=0 and 单阳,l,'阳'),color00ffff,valign1;
高不破价:=ref(c,barslast(单阳));
低不破价:=ref(l,barslast(单阳));
单阳不破:=barstatus=0 and barslast(单阳)<11 and (llv(l,barslast(单阳))>低不破价 or llv(l,barslast(单阳))=低不破价);
stickline(单阳不破,低不破价-低不破价*0.0005,低不破价,11,0),colorgreen;
stickline(单阳不破,高不破价,高不破价,11,0),colorred;
stickline(单阳,单阳开,单阳收,6,0),coloryellow;
qkb:=if(c>o,o,c);
qkab:=if(c>o,o+(c-o)*0.75,o+(c-o)*0.75);
stickline(barstatus=0 and 单阳,qkb,qkab,6,0),colorff2693;
实体幅度2:=ref((o+(c-o)*0.667),barslast(单阳));{//当日实体幅度的2/3}
实体幅度1:=ref((o+(c-o)*0.333),barslast(单阳));{//当日实体幅度的1/3}
幅度的1二:=ref((l+(h-l)/2),barslast(单阳));{//当日幅度的1/2}
stickline(单阳不破,幅度的1二,幅度的1二,8,1),color209fff,dotline;
stickline(单阳不破,实体幅度2,实体幅度2,11,1),colorffff00,dotline;
stickline(单阳不破,实体幅度1,实体幅度1,11,1),colorffff00,dotline;
drawtext(barslast(单阳)=1 and 单阳不破,低不破价,'1'),colorgreen;
drawtext(barslast(单阳)=2 and 单阳不破,低不破价,'2'),colorgreen;
drawtext(barslast(单阳)=3 and 单阳不破,低不破价,'3'),colorgreen;
drawtext(barslast(单阳)=4 and 单阳不破,低不破价,'4'),colorgreen;
drawtext(barslast(单阳)=5 and 单阳不破,低不破价,'5'),colorgreen;
drawtext(barslast(单阳)=6 and 单阳不破,低不破价,'6'),colorgreen;
drawtext(barslast(单阳)=7 and 单阳不破,低不破价,'7'),colorgreen;
drawtext(barslast(单阳)=8 and 单阳不破,低不破价,'8'),colorgreen;
drawtext(barslast(单阳)=9 and 单阳不破,低不破价,'9'),colorgreen;
drawtext(barslast(单阳)=10 and 单阳不破,低不破价,'10'),colorgreen;
{一阳穿三线}
ma2:=ema(c,2);
ma5:=ema(c,5);
ma13:=ema(c,13);
ma34:=ema(c,34);
ma55:=ema(c,55);
ycx:=ma5>=ref(ma5,1);
h1:=max(max(ma5,ma13),ma34);
l1:=min(min(ma5,ma13),ma34);
qk:=if(c>o,o,c);
qka:=if(c>o,o+(c-o)*0.35,o+(c-o)*0.25);
一阳穿三线:= h1<c and o<l1 and ycx and ma2>ref(ma2,1);
stickline(一阳穿三线,qk,qka,6,0),coloryellow;
stickline(c=c and fa>=1,o+((c-o)*0.667),(o+(c-o)*0.667),4,0),colorff0000,linethick1;{//当日实体幅度的2/3}
stickline(c=c and fa>=1,o+((c-o)*0.333),(o+(c-o)*0.333),4,0),colorff0000,linethick1;{//当日实体幅度的1/3}
stickline(c=c and fa>=1,o+((c-o)/2),(o+(c-o)/2),5,0),color00ffff,linethick1;{//当日实体幅度的1/2}
stickline(c=c and fa>=1,l+((h-l)/2),(l+(h-l)/2),6,0),color208fff,linethick1;{//当日幅度的1/2}
stickline(c=c and fa>=1,if(c>o,h-((h-c)/2),h-((h-o)/2)),if(c>o,h-((h-c)/2),h-((h-o)/2)),1.3,0),coloryellow,linethick1;{//当日上影线幅度的1/2}
stickline(c=c and fa>=1,if(c<o,l+((c-l)/2),l+((o-l)/2)),if(c<o,l+((c-l)/2),l+((o-l)/2)),1.3,0),coloryellow,linethick1;{//当日下影线幅度的1/2};
aj:=amount/(vol*100);
drawtext(c=c and fa=3,aj,'←'),colorff5f00;
z3:=c=hhv(c,6);
z9:=c=llv(c,6);
z4:=barslast(z3);
z5:=barslast(z9);
stickline(c>0 and fa=2,ref(c,z4)*1.005,ref(c,z4)*1.005,7,0),colorffff00,dotline;
stickline(c>0 and fa=2,ref(c,z5)*0.995,ref(c,z5)*0.995,7,0),colorff00ff,dotline;
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
drawicon(rsi1>76,h,12),valign1,align1;
drawicon(rsi1>80,h,13),valign0,align1;
bl:=ema(as,17);
bls:=bl+2.58*stdp(c,20);
bl2:=bl+1.96*stdp(c,20);
drawicon(cross(h,bls),h,8),valign1,align1;
drawicon(cross(h,bl2),h,6),valign2,align1;
q1:=dj * 1.03;
q2:=dj * 1.05;
q3:=dj * 1.08;
q4:=dj * 1.13;
q5:=dj * 1.18;
q6:=dj * 1.25;
q7:=dj * 1.33;
i1:=0;
flag1:=0;
while i1<barslast(dispstatus=1)-barslast(dispstatus=2)
do
if ref(q1,i1)<ref(q1,i1+1) and ref(q1,i1+1)>q1
then begin flag1:=1;
s1:=i1;
i1:=barslast(dispstatus=1);
end
elsei1:=i1+1;
stickline(flag1 and dx>=1,ref(q1,s1),dj,(s1+1)*20,0),color551155,align1,layer5;
stickline(flag1 and dx>=1,ref(q1,s1),q2,(s1+1)*20,0),color444444,align1,layer5;
stickline(flag1 and dx>=1,ref(q2,s1),q3,(s1+1)*20,0),color666666,align1,layer5;
stickline(flag1 and dx>=1,ref(q3,s1),q4,(s1+1)*20,0),color777777,align1,layer5;
stickline(flag1 and dx>=1,ref(q4,s1),q5,(s1+1)*20,0),color665506,align1,layer5;
stickline(flag1 and dx>=2,ref(q5,s1),q6,(s1+1)*20,0),color777000,align1,layer5;
drawtext(上涨=0 and dx>=1,dj*1.003,''+''+numtostrn(dj,2)),coloryellow,align2;
drawtext(上涨=0 and dx>=1,q1,'3%'+'-'+numtostrn(q1,2)),coloryellow,align2;
drawtext(上涨=0 and dx>=1,q2,'5%'+'-'+numtostrn(q2,2)),coloryellow,align2;
drawtext(上涨=0 and dx>=1,q3,'8%'+'-'+numtostrn(q3,2)),coloryellow,align2;
drawtext(上涨=0 and dx>=1,q4,'13%'+'-'+numtostrn(q4,2)),coloryellow,align2;
drawtext(上涨=0 and dx>=1,q5,'18%'+'-'+numtostrn(q5,2)),coloryellow,align2;
drawtext(上涨=0 and dx>=2,q6,'25%'+'-'+numtostrn(q6,2)),coloryellow,align2;
{添加参数精灵
{--------显示年月日低点日期--------}
调整年 param#1显示年度
调整月 param#2显示月份
调整日 param#3显示日期
--------参数=1显示低点水平线------
参数=2--4 param#4 显示涨幅幅度线
参数=0--2 param#5 显示k线幅度线
--------显示均价线--------
p1计算 param#6 任意均价线;
p2计算 param#7 任意均价线;
p3计算 param#8 任意均价线;
p4计算 param#9 任意均价线;
p5计算 param#10 任意均价线;
上一指标公式:显示最新缺口(大智慧专用)主图公式下载 大智慧指标源码公式
下一指标公式:大智慧好副图----趋势量能公式下载 大智慧指标趋势源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文优化整合上涨单阳不破+一阳穿三线主图公式下载 大智慧指标源码优化整合仅供学习研究。