机构动向+吸拉派落+资金抄底+火焰山四部分组成。
在禁区外操作,禁区内休息。
本指标有未来函数,谨慎使用。
var1:=ema(hhv(high,500),21);
var2:=ema(hhv(high,250),21);
var3:=ema(hhv(high,90),21);
var4:=ema(llv(low,500),21);
var5:=ema(llv(low,250),21);
var6:=ema(llv(low,90),21);
var7:=ema((var4*0.96+var5*0.96+var6*0.96+var1*0.558+var2*0.558+var3*0.558)/6,21);
var8:=ema((var4*1.25+var5*1.23+var6*1.2+var1*0.55+var2*0.55+var3*0.65)/6,21);
var9:=ema((var4*1.3+var5*1.3+var6*1.3+var1*0.68+var2*0.68+var3*0.68)/6,21);
vara:=ema((var7*3+var8*2+var9)/6*1.738,21);
varb:=ref(low,1);
varc:=sma(abs(low-varb),3,1)/sma(max(low-varb,0),3,1)*100;
vard:=ema(if(close*1.35<=vara,varc*10,varc/10),3);
vare:=llv(low,30);
varf:=hhv(vard,30);
var10:=if(ma(close,58),1,0);
火焰山:ema(if(low<=vare,(vard+varf*2)/2,0),3)/618*var10;
火焰: stickline(火焰山>0,0,火焰山,4,1);
今量:火焰山;
stickline(火焰山>0,0,今量*1.2,8,0),color0000ff;
stickline(火焰山>0,0,今量*0.8,8,0),color0066ff;
stickline(火焰山>0,0,今量*0.6,8,0),color0099ff;
stickline(火焰山>0,0,今量*0.4,8,0),color00ccff;
stickline(火焰山>0,0,今量*0.2,8,0),color00ffff;
lc:= ref(c,1);
f1:=zig(3,15);
方向:if((f1> ref(f1,1)),5,105),color00ff00,linethick2;
if(periodname<>"日线")
{
统计:"该指标只在日线周期下有效。";
return;
}
//大单净量
r:=((zdmr[-1]+bdmr[-1])-(zdmc[-1]+bdmc[-1]))/shgzg*100;
//相对强弱
lc := ref(close,1);//前一日收盘价;
rsi$1:=sma(max(close-lc,0),3,1)/sma(abs(close-lc),3,1)*100;
rsi$2:=sma(max(close-lc,0),5,1)/sma(abs(close-lc),5,1)*100;
rsi$3:=sma(max(close-lc,0),8,1)/sma(abs(close-lc),8,1)*100;
相对强弱:=0.5*rsi$1+0.31*rsi$2+0.19*rsi$3;
wave$1:=sma(100*(close-llv(low,8))/(hhv(high,8)-llv(low,8)),3,1);
wave$2:=sma(100*(close-llv(low,8))/(hhv(high,8)-llv(low,8)),5,1);
wave$3:=sma(100*(close-llv(low,8))/(hhv(high,8)-llv(low,8)),8,1);
短线波段:=0.5*wave$1+0.31*wave$2+0.19*wave$3;
机会区:20,pointdot,colorred;
风险区:80,pointdot,colorgreen;
风险系数:0.5*相对强弱+0.5*短线波段,coloryellow;
//买入条件;
cd1:=if(风险系数<20 and close>open and r>0,1,0);//波段小于20,股价翻红;
cd2:=if(风险系数<20 and low>=ref(low,1) and close>low and r>0,1,0);//波段小于20,股价未翻红,但未创新低;
cd3:=if(ref(风险系数,1)<20 and 风险系数>ref(风险系数,1),1,0);//前一日波段小于20,今日转向;
signalbuy=(cd1=1 or cd2=1 or cd3=1);
x=(signalbuy and count(signalbuy,3)=1);
drawicon(x,机会区,"buy");
vara:=ema(ema(c,13),13);
kp:=(vara-ref(vara,1))/ref(vara,1)*1000,colorwhite,linethick3;
mm:=ref(kp,1);
派:if(kp=0,kp,kp),colorgreen,linethick3;
落:if(kp<0 ,kp,drawnull),colorwhite,linethick3;
吸:if(kp>=mm ,kp,drawnull),colorlired,linethick3;
拉:if(kp>=0 and kp>=mm,kp,drawnull),colorred,linethick3;
aa:zig(3,5)+0.5,color338800,linethick2;
gg:=ema(aa,2);
bb:zig(3,10),coloreedd00,linethick2;
hh:=ema(bb,2);
drawtext(cross(hh,bb),h,'卖'),colorooffoo;
drawtext(cross(bb,hh),l,'买'),colorooooff;
drawicon(cross(aa,gg),l,'buy'),colorooffoo;
drawicon(cross(gg,aa),h,'sell'),colorooooff;
trr := sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
hd := high-ref(high,1);
ld := ref(low,1)-low;
pdm:= sum(if(hd>0 and hd>ld,hd,0),14);
mdm:= sum(if(ld>0 and ld>hd,ld,0),14);
pdi:= pdm*100/trr;
mdi:= mdm*100/trr;
a1:=barslast(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(c,a1+1)>c and ref("macd.diff"(12,26,9),a1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(c,a2+1)>c and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(c,a3+1)>c and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
d1:=ref(c,c1+1)<c and ref("macd.diff"(12,26,9),c1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(c,c2+1)<c and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(c,c3+1)<c and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
c4:=barslast(ref(cross(mdi,pdi),1));
d4:=ref(c,c+1)<c and ref(mdi,c4+1)>mdi and cross(mdi,pdi);
a4:=barslast(ref(cross(pdi,mdi),1));
b4:=ref(c,a4+1)>c and ref(pdi,a4+1)<pdi and cross(pdi,mdi);
//绘图
//macd底背
macd底背:if(b1>0,-50,0),color00ff00;
stickline(b1>0,-30,-40,9,0),color00ff00;
drawtext(b1>0,-35,'m'),colorffffff;
//macd顶背
macd顶背:if(d1>0,50,0),color00ff00;
stickline(d1>0,30,40,9,0),color00ff00;
drawtext(d1>0,35,'m'),colorffffff;
//kdj底背
kdj底背:if(b2>0,-50,0),colorff00ff;
stickline(b2>0,-10,-20,9,0),colorffcc66;
drawtext(b2>0,-15,'k'),colorffffff;
//kdj顶背
kdj顶背:if(d2>0,50,0),colorff00ff;
stickline(d2>0,10,20,9,0),colorffcc66;
drawtext(d2>0,15,'k'),colorffffff;
//rsi底背
rsi底背:if(b3>0,-50,0),coloryellow;
stickline(b3>0,-20,-30,9,0),coloryellow;
drawtext(b3>0,-25,'r'),colorffffff;
//rsi顶背
rsi顶背:if(d3>0,50,0),coloryellow;
stickline(d3>0,20,30,9,0),coloryellow;
drawtext(d3>0,25,'r'),colorffffff;
//dmi底背
dmi底背:if(b4>0,-50,0),colorblue;
stickline(b4>0,0,-10,9,0),colorblue;
drawtext(b4>0,-5,'d'),colorffffff;
//dmi顶背
stickline(d4>0,0,10,9,0),colorblue;
dmi顶背:if(d4>0,10,0),colorblue;
drawtext(d4>0,5,'d'),colorffffff;
上一指标公式:工作线主图指标公式详解 同花顺工作
下一指标公式:筹码重心指标公式详解 同花顺筹码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文机构动向+吸拉派落+资金抄底+火焰山指标公式详解 同花顺火焰山动向仅供学习研究。