乘风趋势主图
乘风趋势主图执行的是趋势为王,只做多头的理念。均线采用我习惯的5、13、21、34、55参数,以ma34作为多空判断线,信号点采用了我发过的kdj介入为基础,并以多空线来定义抄底、回抽、确认、加仓等介入信号,卖出信号则以rsi作为参考提示,主图并叠加了macd柱子。
ccc:=if(capital>0,amount/vol/100,c);
底线:10*(hhv(high,13)-llv(low,13))/100+llv(low,13),colorffabcd,linethick0;
m55:ma(close,55),colorff0080,linethick0;
m34:ma(close,34),color0000ff,linethick0;
m21:ma(close,21),color00ffff,linethick0;
m13:ma(close,13),colorffffff,linethick0;
m5:ma(c,5),colorff00ff,linethick0;
fillrgn(c,底线,llv(l,13)),color004000;
tjaa:=barslast(ref(cross("rsi.rsi1",22) and c>o,1));
r准备:=l<ref(o,tjaa+1) and "rsi.rsi1">22 and "rsi.rsi1"<ref("rsi.rsi1",1) and barslast(cross("rsi.rsi1",22)and c>o)+1>5 and barslast(cross("rsi.rsi1",22)and c>o)+1<25;
tja1:=barslast(ref(cross("kdj.j",0),1));
j准备:=l<ref(o,tja1+1) and "kdj.j">0 and "kdj.j"<ref("kdj.j",1) and barslast(cross("kdj.j",0))+1>5 and barslast(cross("kdj.j",0))+1<10;
stickline(r准备 and j准备,(0.93*sysparam(5)),(0.93*sysparam(5))*1.03,30,0),colorff0080;
r卖1:="rsi.rsi1">80 and "rsi.rsi2"<80;
r卖2:="rsi.rsi1">85 and "rsi.rsi2">80;
stickline("rsi.rsi1">80,h*1.01,l*0.99,10,0),color555555;
stickline(r卖1,h*1.01,l*0.99,10,0),color00ff00;
stickline(r卖2,h*1.01,l*0.99,10,0),colorff0000;
partline(c,m34),colorred,linethick2,precision2;
partline(m34<ref(m34,1),m34),colorfff333,linethick2,precision2;
底线,colorffabcd,linethick1;
{空心红}
stickline(c,h,l,1,0),colorff0000;
stickline(c,c,o,8,0),colorff0000;
stickline(c>o,c,o,8,1),colorff0000;
stickline(c>o and (m34>=ref(m34,1) or ccc>m34),h,l,1,0),colorred;
stickline(c>o and (m34>=ref(m34,1) or ccc>m34),c,o,8,1),colorred;
stickline(c<=o and (m34>=ref(m34,1) or ccc>m34),h,l,1,0),colorcyan;
stickline(c<=o and (m34>=ref(m34,1) or ccc>m34),c,o,8,1),colorcyan;
stickline(c>o and (m34>=ref(m34,1) or ccc>m34) and c>=m13,h,l,1,0),colorffc0dd;
stickline(c>o and (m34>=ref(m34,1) or ccc>m34) and c>=m13,c,o,8,0),colorffc0dd;
stickline(c<=o and (m34>=ref(m34,1) or ccc>m34) and c>=m13,h,l,1,0),colordddddd;
stickline(c<=o and (m34>=ref(m34,1) or ccc>m34) and c>=m13,c,o,8,1),colordddddd;
stickline(l<ma(c,34) and (m34>=ref(m34,1) or ccc>m34) and ma(c,21)>ref(ma(c,21),1) and ma(c,21)>ma(c,34),c,o,8,0),color00ffff;
stickline(l<ma(c,34) and (m34>=ref(m34,1) or ccc>m34) and ma(c,21)>ref(ma(c,21),1) and ma(c,21)>ma(c,34) and c<o,c,o,8,1),color00ffff;
partline(m34>m55,m55),colorff0080;
partline(m21>=m34 and m21<ref(m21,1) ,m21),color33ff33,linethick1,precision2;
partline(m21>=m34 and m21>=ref(m21,1),m21),color00ffff,linethick1,precision2;
partline(m21<m34 and m21<ref(m21,1),m21),color33ff33,linethick1,linedot;
partline(m21<m34 and m21>=ref(m21,1),m21),color00ffff,linethick1,linedot;
partline(m13>=m34 and m13>=ref(m13,1),m13),colorffffff,linethick1,precision2;
partline(m13>=m34 and m13<ref(m13,1),m13),colorff5959,linethick1;
partline(m13<m34 and m13>=ref(m13,1),m13),colorffffff,linethick1,linedot;
partline(m13<m34 and m13<ref(m13,1),m13),colorff5959,linethick1,linedot;
partline(m5>=m34 and m5>=ref(m5,1),m5),colorff00ff,precision2,linethick1;
partline(m5>=m34 and m5<ref(m5,1),m5),colorcyan,linethick1;
partline(m5<m34 and m5>=ref(m5,1),m5),colorff00ff,linedot,linethick1;
partline(m5<m34 and m5<ref(m5,1),m5),colorcyan,linethick1,linedot;
抄底:=ref(count("kdj.k"<ref("kdj.k",1),5)>=5,1) and count("kdj.k"<30,5)>=2 and count("kdj.j"<0,3)>0 and cross("kdj.j",0);
drawtext(抄底 and not((ccc>m34 or m34>ref(m34,1))),l*0.98,'抄\n底'),color00ffff,align;
drawtext(抄底 and (ccc>m34 or m34>ref(m34,1)),l*0.98,'确\n认'),colorred,align;
tj00:=barslast(ref(cross("kdj.k","kdj.d") and ref("kdj.k",1)<35,1));
加仓:=c<ref(c,tj00+1)*1.1 and ref("kdj.k",1)<60 and (tj00+1)<25 and (tj00+1)>5 and "kdj.k">ref("kdj.k",tj00+1) and cross("kdj.k","kdj.d");
drawtext(加仓 and not((ccc>m34 or m34>ref(m34,1))),l*0.98,'回\n抽'),color5599ff,align;
drawtext(加仓 and (ccc>m34 or m34>ref(m34,1)),l*0.98,'加\n仓'),colorff00ff,align;
drawicon(cross("kdj.j",0) and (ccc>m34 or m34>ref(m34,1)),l*0.97,8),align;
{主图macd}
diffz:=ema((ema(close,12)-ema(close,26)),1);
deaz:=ema(diffz,9),color00aa88;
macdz:=3*(diffz-deaz);
stickline(macdz>0 and macdz>ref(macdz,1),(0.93*sysparam(5)),macdz+(0.93*sysparam(5)),8,0),colorff00ff;
stickline(macdz>0 and macdz<=ref(macdz,1),(0.93*sysparam(5)),macdz+(0.93*sysparam(5)),8,1),colorff00ff;
stickline(macdz<0 and macdz>ref(macdz,1),(0.93*sysparam(5)),macdz+(0.93*sysparam(5)),8,1),colordddddd;
stickline(macdz<0 and macdz<=ref(macdz,1),(0.93*sysparam(5)),macdz+(0.93*sysparam(5)),8,0),colordddddd;
partline(macdz>0 and diffz>0,(0.9*sysparam(5))),crossdot,color0000ff,linethick1;
partline(macdz<=0 and diffz>0,(0.9*sysparam(5))),crossdot,color00ffff,linethick1;
partline(macdz>0 and diffz<=0,(0.9*sysparam(5))),crossdot,colorff55dd,linethick1;
partline(macdz<=0 and diffz<=0,(0.9*sysparam(5))),crossdot,color66dd66,linethick1;
上一指标公式:江恩轮中轮帝纳波利点位公式 飞狐波利江恩指标 源码
下一指标公式:周KDJ公式 飞狐指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文乘风趋势主图及图文用法说明公式 飞狐用法趋势指标 源码仅供学习研究。