好公式网用指标公式为投资注入科技力量!
您的位置:好公式网飞狐公式光变魔道公式 飞狐光变指标 源码

光变魔道公式 飞狐光变指标 源码

  • 指标公式类型:飞狐公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-09-12 21:33:14
  • 指标公式标签:
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:光变魔道公式 飞狐光变指标 源码

《光变魔道》
input:s(5,1,300),m(120,1,300);
drawgbk(c,colorrgb(10,200,200),colorrgb(10,10,100),1);
v1:=((close + (4 * high)) / 5);
v2:=llv(v1,30);
生死线:=v2 * 0.98,linethick2,colorff;
主线:=(wma(close,10) * 0.99);
var1:=pow((close - 主线),1);
var2:=ma(var1,3);
var3:=sqrt(var2);
阻力线:=(主线 + (1.96 * var3));
支撑线:=(主线 - (1.96 * var3));
partline(((主线 > ref(主线,1)) and (阻力线 <> 支撑线)),主线),linethick1,colorff;
drawicon((主线 > ref(主线,1)),主线,10);
drawicon(((主线 > ref(主线,1)) and (ref(主线,1) < ref(主线,2))),(主线 * 0.99),12),coloreeff;
魔中轨:=ma(close,24);
魔道上魔中轨:=ma(close,24)+2*std(ma(close,24),5),pointdot,linethick3,colorff9966;
魔道下魔中轨:=ma(close,24)-2*std(ma(close,24),5),pointdot,linethick3,colorff9966;
var1:=ref(close,1);
var2:=((sma(max((close - var1),0),6,1) / sma(abs((close - var1)),6,1)) * 100);
drawtext(cross(80,var2),(high * 1.02),'顶 '),linethick2,coloreeff;
阻挡:=(sma(high,13,2) * 1.04);
stickline((open >= close),close,open,9,0),colorff5b00;
stickline((open >= close),close,open,8,0),colorff6c00;
stickline((open >= close),close,open,7,0),colorff7b00;
stickline((open >= close),close,open,6,0),colorff9c00;
stickline((open >= close),close,open,5,0),colorffbe00;
stickline((open >= close),close,open,3.5,0),colorffcc00;
stickline((open >= close),close,open,1.5,0),colorffff00;
stickline((close >= open),close,open,8,0),coloraa;
stickline((close >= open),close,open,6,0),colorcc;
stickline((close >= open),close,open,4,0),colordd;
stickline((close >= open),close,open,2,0),colorff;
stickline((close >= open),high,low,0,0),colorffff;
stickline((close <= open),close,open,8,0),color998855;
stickline((close <= open),close,open,6,0),colorbbaa77;
stickline((close <= open),close,open,4,0),colorddcc99;
stickline((close <= open),close,open,2,0),colorffeebb;
stickline((close <= open),high,low,0,0),colorffff00;
stickline((close < open),high,low,1,0),color8800;
stickline((close < open),high,low,0,0),colorff00;
stickline((close < open),close,open,8,0),color8800;
stickline((close < open),close,open,7,0),color9900;
stickline((close < open),close,open,6,0),coloraa00;
stickline((close < open),close,open,5,0),colorbb00;
stickline((close < open),close,open,4,0),colorcc00;
stickline((close < open),close,open,3,0),colordd00;
stickline((close < open),close,open,2,0),coloree00;
stickline((close < open),close,open,1,0),colorff00;
stickline((close >= open),high,low,1,0),colorff;
stickline((close >= open),high,low,0,0),coloreeff;
stickline((close >= open),close,open,8,0),colorff;
stickline((close >= open),close,open,7,0),color22ff;
stickline((close >= open),close,open,6,0),color44ff;
stickline((close >= open),close,open,5,0),color66ff;
stickline((close >= open),close,open,4,0),color88ff;
stickline((close >= open),close,open,3,0),coloraaff;
stickline((close >= open),close,open,2,0),colorccff;
stickline((close >= open),close,open,1,0),coloreeff;
stickline((close >= open),close,open,2,0),colorccff;
stickline((close >= open),close,open,1,0),coloreeff;
stickline((close < open),high,low,1,0),color8800;
stickline((close < open),high,low,0,0),colorff00;
stickline((close < open),close,open,8,0),color8800;
stickline((close < open),close,open,7,0),color9900;
stickline((close < open),close,open,6,0),coloraa00;
stickline((close < open),close,open,5,0),colorbb00;
stickline((close < open),close,open,4,0),colorcc00;
stickline((close < open),close,open,3,0),colordd00;
stickline((close < open),close,open,2,0),coloree00;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),open,low,0.7,0),colorff0000;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,high,0.7,0),colorff0000;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,9,0),colorff0000;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,6,0),colorff0000;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,4,0),colorff0000;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,2,0),colorff0000;
drawicon((((close < ref(close,1)) and (high > 阻挡)) and (close < 阻挡)),(high * 1.02),5);
var1:=((ema(close,3) - ema(close,6)) - ((ema(close,6) - ema(close,12)) * (0 - 100)));
var2:=ema(var1,3);
var3:=((ema(close,3) - ema(close,6)) - ((ema(close,24) - ema(close,36)) * (0 - 100)));
var4:=ema(var3,9);
var5:=cross(var1,var2);
var6:=cross(var2,var1);
牛:stickline(var5,open,close,10,0),colorffff;
纪律:stickline(var5,open,(close - ((close - open) * 0.33)),10,0),colorff00ff;
赚了跑:stickline(var5,open,(close - ((close - open) * 0.66)),10,0),linethick2,colorff;
趋势线:=((3 * sma((((close - llv(low,28)) / (hhv(high,28) - llv(low,28))) * 100),5,1)) - (2 * sma(sma((((close - llv(low,27)) / (hhv(high,27) - llv(low,27))) * 100),5,1),3,1)));
短期乖离率:=(((close - ma(close,13)) / ma(close,13)) * 100);
drawtext(filter((if(((cross(趋势线,10) and ((close / low) > 1.04)) and (短期乖离率 < 0.35)),1,0) and (close > open)),5),(low - 0.07),'★底'),align2,colorffff;
a3:=ref(close,1);
a4:=((sma(max((close - a3),0),8,1) / sma(abs((close - a3)),8,1)) * 100);
drawicon(cross(21,a4),(low * 0.99),1);
ks:=(((close - ma(close,13)) / ma(close,13)) * (0 - 100));
rks:=ref(ks,1);
ft:=((((rks / ks) >= 1.23) and (rks >= 8)) and ((close / ref(close,1)) >= 1.02));
反弹:stickline(ft,high,low,0,1),linethick2,colorff00ff;
stickline(ft,open,close,8,1),linethick2,colorff00ff;
drawicon(ft,low,4);


if datacount=sysparam(1) then ma5:ma(close,5),linethick4,colorbrown;
if datacount-1=sysparam(1) then ma10:ma(close,10),linethick4,colorred;
if datacount-2=sysparam(1) then ma20:ma(close,20),linethick4,colorblue;
if datacount-3=sysparam(1) then ma30:ma(close,30),linethick4,colorgreen;
if datacount-4=sysparam(1) then ma40:ma(close,40),linethick4,colorcyan;
if datacount-5=sysparam(1) then ma50:ma(close,50),linethick4,colorbrown;

ma1:ma(close,s),linethick0,colorffffff;
ma2:ma(close,m),linethick0,colorffff00;
强弱分界:ma(close,27),linethick0,colorffff;
卖:(强弱分界 + (2 * std(close,27))),linethick0,colorff00ff;
drawtext(cross(high,卖),(high * 1.004),'★'),colorff00ff;
drawicon(cross(high,卖),(high * 1.007),12);
drawicon(cross(close,卖),(high * 1.01),6);
上限:(强弱分界 + (3 * std(close,27))),linethick0,colorffff;
drawicon(cross(close,上限),(high * 1.018),9);
drawtext(cross(high,上限),(high * 1.015),'★上'),colorffff;
买:(强弱分界 - (2 * std(close,27))),linethick0,colorf0ff00;
drawicon(cross(买,close),(low - 0.02),11);
drawtext(cross(买,close),(low - 0.05),'→观'),colorf0ff00;
下限:(强弱分界 - (2.9 * std(close,27))),linethick0,colorff00;
drawicon(cross(下限,close),(low - 0.04),15);
drawtext(cross(下限,low),(low - 0.06),'→下观'),colorff00;
hh:=sysparam(4);
ll:=sysparam(5);
p1:=(ll + ((hh - ll) * 0.191));
p16:=(ll + ((hh - ll) * 0.625));
p2:=(ll + ((hh - ll) * 0.382));
p17:=(ll + ((hh - ll) * 0.375));
p4:=(ll + ((hh - ll) * 0.5));
p18:=(ll + ((hh - ll) * 0.2));
p5:=(ll + ((hh - ll) * 0.618));
p19:=(ll + ((hh - ll) * 0.25));
p6:=(ll + ((hh - ll) * 0.809));
p20:=(ll + ((hh - ll) * 0.05));
p7:=(ll + ((hh - ll) * 0.875));
p21:=(ll + ((hh - ll) * 0.95));
p8:=(ll + ((hh - ll) * 0.667));
p22:=(ll + ((hh - ll) * 0.9));
p9:=(ll + ((hh - ll) * 0.5));
p23:=(ll + ((hh - ll) * 0.28));
p10:=(ll + ((hh - ll) * 0.333));
p24:=(ll + ((hh - ll) * 0.22));
p11:=(ll + ((hh - ll) * 0.125));
p25:=(ll + ((hh - ll) * 0.85));
p12:=(ll + ((hh - ll) * 0.45));
p26:=(ll + ((hh - ll) * 0.75));
p13:=(ll + ((hh - ll) * 0.55));
p27:=(ll + ((hh - ll) * 0.1));
p14:=(ll + ((hh - ll) * 0.78));
p28:=(ll + ((hh - ll) * 0.2));
p15:=(ll + ((hh - ll) * 0.72));
p29:=(ll + ((hh - ll) * 0.22));
drawtext((islastbar = 1),p7,('▲87.5%:' + numtostr(p7,2))),align2,color84c1ff;
drawtext((islastbar = 1),p8,('▲66.7%:' + numtostr(p8,2))),align2,color84c1ff;
drawtext((islastbar = 1),p9,('50%:' + numtostr(p9,2))),align1,colorffff;
drawtext((islastbar = 1),p10,('▲33.3%:' + numtostr(p10,2))),align2,colorffff00;
drawtext((islastbar = 1),p11,('▲12.5%:' + numtostr(p11,2))),align2,colorffff00;
drawtext((islastbar = 1),p12,('45%:' + numtostr(p12,2))),align2,colorffff;
drawtext((islastbar = 1),p13,('55%:' + numtostr(p13,2))),align2,colorffff;
drawtext((islastbar = 1),p14,('78%:' + numtostr(p14,2))),align2,colorffff;
drawtext((islastbar = 1),p15,('72%:' + numtostr(p15,2))),align2,colorffff;
drawtext((islastbar = 1),p16,('⊙62.5%:' + numtostr(p16,2))),align0,colorff00;
drawtext((islastbar = 1),p17,('⊙37.5%:' + numtostr(p17,2))),align0,colorff00;
drawtext((islastbar = 1),p18,('20%:' + numtostr(p18,2))),align1,colorffff;
drawtext((islastbar = 1),p19,('25%:' + numtostr(p19,2))),align2,colorffff;
drawtext((islastbar = 1),p20,('5%:' + numtostr(p20,2))),align1,colorffff;
drawtext((islastbar = 1),p21,('95%:' + numtostr(p21,2))),align2,colorffff;
drawtext((islastbar = 1),p22,('90%:' + numtostr(p22,2))),align1,colordafc8b;
drawtext((islastbar = 1),p23,('28%:' + numtostr(p23,2))),align1,color84c1ff;
drawtext((islastbar = 1),p25,('85%:' + numtostr(p25,2))),align1,colordafc8b;
drawtext((islastbar = 1),p26,('75%:' + numtostr(p26,2))),align1,colordafc8b;
drawtext((islastbar = 1),p27,('10%:' + numtostr(p27,2))),align1,color84c1ff;
stickline(1,hh,hh,180,0),colorff00ff;
stickline(1,ll,ll,180,0),colorffff00;
drawtext((islastbar = 1),p27,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,color84c1ff;
drawtext((islastbar = 1),p25,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,colordafc8b;
drawtext((islastbar = 1),p9,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,colorffff;
drawtext((islastbar = 1),p22,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,colordafc8b;
drawtext((islastbar = 1),p18,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,colorff00ff;
drawtext((islastbar = 1),p20,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,colorff00ff;
drawtext((islastbar = 1),p19,' ̄ ̄ ̄ ̄ ̄'),align2,linethick1,colorff00ff;
drawtext((islastbar = 1),p12,' ̄ ̄ ̄ ̄ ̄'),align2,linethick1,colorff00ff;
drawtext((islastbar = 1),p13,' ̄ ̄ ̄ ̄ ̄'),align2,linethick1,colorff00ff;
drawtext((islastbar = 1),p14,' ̄ ̄ ̄ ̄ ̄'),align2,linethick1,colorff00ff;
drawtext((islastbar = 1),p15,' ̄ ̄ ̄ ̄ ̄'),align2,linethick1,colorff00ff;
drawtext((islastbar = 1),p21,' ̄ ̄ ̄ ̄ ̄'),align2,linethick1,colorff00ff;
drawtext((islastbar = 1),p23,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,color84c1ff;
drawtext((islastbar = 1),p26,' ̄ ̄ ̄ ̄ ̄'),align1,linethick1,colordafc8b;
drawtext((islastbar = 1),p16,' ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align0,linethick1,colorff00;
drawtext((islastbar = 1),p17,' ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align0,linethick1,colorff00;
drawtext((islastbar = 1),p10,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,colorffff00;
drawtext((islastbar = 1),p11,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,colorffff00;
drawtext((islastbar = 1),p7,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,color84c1ff;
drawtext((islastbar = 1),p8,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,color84c1ff;
nnl:=(barpos = sysparam(3));
江05:(ll + ((hh - ll) * 0.05)),pointdot,linethick1,colorffffff;
江10:(ll + ((hh - ll) * 0.1)),pointdot,linethick1,colorffffff;
黄191:(ll + ((hh - ll) * 0.191)),linethick1,colorffff;
江22:(ll + ((hh - ll) * 0.22)),pointdot,linethick1,colorffffff;
江25:(ll + ((hh - ll) * 0.25)),pointdot,linethick1,colorffffff;
江28:(ll + ((hh - ll) * 0.28)),pointdot,linethick1,colorffffff;
黄甘337:(ll + ((hh - ll) * 0.337)),pointdot,linethick1,colorffffff;
黄382:(ll + ((hh - ll) * 0.382)),linethick1,colorffff;
甘45:(ll + ((hh - ll) * 0.45)),pointdot,linethick1,colorffffff;
黄500:(ll + ((hh - ll) * 0.5)),colorffff;
黄618:(ll + ((hh - ll) * 0.618)),linethick1,colorffff;
黄甘667:(ll + ((hh - ll) * 0.667)),pointdot,linethick1,colorffffff;
黄甘75:(ll + ((hh - ll) * 0.75)),pointdot,linethick1,colorffffff;
黄809:(ll + ((hh - ll) * 0.809)),linethick1,colorffff;
江55:(ll + ((hh - ll) * 0.55)),pointdot,linethick1,colorffffff;
江75:(ll + ((hh - ll) * 0.75)),pointdot,linethick1,colorffffff;
江78:(ll + ((hh - ll) * 0.78)),pointdot,linethick1,colorffffff;
江85:(ll + ((hh - ll) * 0.85)),pointdot,linethick1,colorffffff;
江90:(ll + ((hh - ll) * 0.9)),pointdot,linethick1,colorffffff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.1)),(('江10%(' + numtostr(江10,2)) + ')')),color84c1ff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.22)),(('江22%(' + numtostr(江22,2)) + ')')),color84c1ff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.28)),(('江28%(' + numtostr(江28,2)) + ')')),color84c1ff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.191)),(('黄金19.1%(' + numtostr(黄191,2)) + ')')),colorffff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.382)),(('★黄金38.2%(' + numtostr(黄382,2)) + ')')),colorffff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.5)),(('黄金强弱分界(' + numtostr(黄500,2)) + ')')),colorffff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.618)),(('★黄金61.8%(' + numtostr(黄618,2)) + ')')),colorffff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.75)),(('江75%(' + numtostr(江75,2)) + ')')),colordafc8b;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.809)),(('黄金80.9%(' + numtostr(黄809,2)) + ')')),colorffff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.85)),(('江85%(' + numtostr(江85,2)) + ')')),colordafc8b;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.9)),(('江90%(' + numtostr(江90,2)) + ')')),colordafc8b;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.981)),(('最高价¥(' + numtostr(hh,2)) + ')')),colorff00ff;
drawtext((sysparam(2) = barpos),(ll + ((hh - ll) * 0.0381)),(('最低价¥(' + numtostr(ll,2)) + ')')),colorffff00;
drawtext((sysparam(2) = barpos),(ll * 0.998),('所属板块:' + blkname)),align5,colorccffff;
drawtext((sysparam(3) = barpos),(ll + ((hh - ll) * 0.981)),'天'),align2,shift1,linethick3,colorffff;
drawtext((((sysparam(3) - 3) = barpos) and (sysparam(3) <> sysparam(1))),(ll + ((hh - ll) * 0.981)),numtostr(((sysparam(3) - sysparam(1)) + 1),0)),align2,shift1,colorffff;


上市日期年:ref(year,(barscount(close) - 1)),linethick0,colorff00;
月:ref(month,(barscount(close) - 1)),linethick0,colorff00ff;
日:ref(day,(barscount(close) - 1)),linethick0,colorffff;
bb:=barpos=sysparam(1);
variable:wday[7]='星期六';
wday[1]:='星期日';
wday[2]:='星期一';
wday[3]:='星期二';
wday[4]:='星期三';
wday[5]:='星期四';
wday[6]:='星期五';
fy:=year;
fm:=month;
fd:=day;
wd:=weekday;
p:=sysparam(1);
str1:='今天是:'+numtostr(fy[p],0)+'年'+numtostr(fm[p],0)+'月'
+numtostr(fd[p],0)+'日, '+wday[wd[p]+1];
explain(barpos=p,str1),colorred;
drawtext(barpos=p,h*1.12,str1),align2,coloryellow,;




{短线5%止盈止损,主图,飞狐用}
explainex(c,'本中:',(l+h)/2,2,1)coloryellow;
explainex(c,'+1%:',((h+l)/2)*1.01,2,1);
explainex(c,'+2%:',((h+l)/2)*1.02,2,1);
explainex(c,'+3%:',((h+l)/2)*1.03,2,1);
explainex(c,'+5%:',((h+l)/2)*1.05,2,1);
explainex(c,'+10%:',((h+l)/2)*1.1,2,1),colorred;
explainex(c,'-1%:',((h+l)/2)*0.99,2,1);
explainex(c,'-2%:',((h+l)/2)*0.98,2,1);
explainex(c,'-3%:',((h+l)/2)*0.97,2,1);
explainex(c,'-5%:',((h+l)/2)*0.95,2,1);
explainex(c,'-10%:',((h+l)/2)*0.90,2,1),colorblue;
drawnumber(barscount(c)=sysparam(1),(h+l)/2,(h+l)/2,2),shift1,coloryellow;
drawtext(barscount(c)=sysparam(1),((h+l)/2)*1.05,'熊股止盈5%'),colormagenta,shift2;
drawtext(barscount(c)=sysparam(1),((h+l)/2)*0.95,'熊股止损5%'),coloryellow,shift2,linethick5;


光变魔道

  >>>使用本站搜索工具可以找到更多光变魔道公式 飞狐光变指标 源码

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文光变魔道公式 飞狐光变指标 源码仅供学习研究。

猜你喜欢

学了又学