指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:逃顶组合公式详解 大智慧组合
逃顶组合!高手来帮忙合成一个指标,有图,配实战心得
近期大盘涨势喜人,个股也是连续上攻,所以该考虑下逃顶意义了,本人现在有两个公式,发现结合起来用效果非常好,无奈副图空间有限,于是希望高手出现改成可以叠加显示的一个指标,好了,废话不多说,先放出源码,心得:第一个逃顶主要用于短线逃顶,一般行情有3、4天,第二个逃顶为波段逃顶,行情较长,二者配合,例如,当第二个逃顶出现顶部提示,而第一个短线逃顶也达到顶部时,判断为顶部共振,则顶形成的概率很大,配合当天成交量以及换手等情况决定是否出逃,同时,这两个指标也可以做抄底使用,第一个抄短线回调结束点,第二个抄波段低位,另外,当第一个逃顶在低位,而波段逃顶(第二个)位置偏高,那么意味着上升空间不大,更多用法还需要大家来探讨,以上为本人实战经验,稍后上图
逃顶一(图中第2个指标):
var1:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
趋势线: ema(var1,8);
趋势均线:ma(趋势线,8);
阶段底部: if(趋势线<5,45,0);
抓住机会: if(cross(趋势线,5),100,0),coloryellow;
var3:=(c+h+l+o)/4;
var4:=llv(l,34);
var5:=hhv(h,34);
var6:=ema((var3-var4)/(var5-var4)*100,8);
var7:=ema(var6,5);
stickline((var6-var7)>0,var6,var7,8,1),colorred;
stickline((var6-var7)<0,var6,var7,8,1),colorgreen;
买:if(cross(趋势线,趋势均线) and 趋势线<15,50,0),colorred;
卖:if(cross(趋势均线,趋势线) and 趋势线>80,50,100),colorgreen;
顶部区域:stickline(var7>80,100,105,10,1),colorcyan;
底部区域:stickline(var7<20,-5,0,8,1),coloryellow;
趋势线:=sma(ema(((c+l)/2-llv(l,21))/(hhv((h+c)/2,21)-llv(l,21))*100,3),7,1)-(13);
判断:=(sma(((c+l)/2-llv(l,21))/(hhv((h+c)/2,21)-llv(l,21))*100,2,1)-8);
买参考:if(filter(cross(判断,趋势线)=1 or 判断>ref(判断,1),10) and 判断
<25 ,35,1),colorwhite,pointdot;
stickline(filter(cross(判断,趋势线)=1 or 判断>ref(判断,1),10) and 判断
<25 ,35,0,4,1),colorwhite;
卖参考:if(filter(判断<ref(判断,1)and 判断
>65,5),80,70),color00ff00,pointdot;
stickline(filter(判断<ref(判断,1)and 判断
>65,5),80,70,4,0),color00ff00;
逃顶二(图中第一个指标,未来函数已去掉):
var4:=llv(low,10);
var3:=hhv(high,25);
阶段卖出: 3.2,colorc6c600;
3.5,color0088ff;
清仓卖出: 3.5,colorff75ff;
动力线:= ema((close-var4)/(var3-var4)*4,4);
stickline(动力线>ref(动力线,1) ,动力线 ,ref(动力线,1),3 ,1),colorred;
stickline(动力线<=ref(动力线,1) ,动力线 ,ref(动力线,1),3 ,1),color00ff00;
底部:0.2,color70db93;
关注:0.5,coloryellow;
drawicon( filter(cross(动力线,关注),20),动力线+0.02 ,7),layer0;
drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,8),layer0;
drawicon( filter(cross(动力线,底部),20),动力线+0.02 ,7),layer0;
drawicon( filter(cross(阶段卖出,动力线),20),动力线+0.02,8),layer0;
强弱分界线:1.75,pointdot,linethick2,color70db93;
数值:动力线,colora8a8a8;
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(210,25,'调整结束短线介入'),colorred;
end
else
if barstatus=2 and sz2 then begin
drawtextabs(210,25,'上升通道走势良好'),colorred;
end
else
if barstatus=2 and sz3 then begin
drawtextabs(210,25,'股价偏离注意调整'),colorred;
end
else
if barstatus=2 and sz4 then begin
drawtextabs(210,25,'上升通道调整洗盘'),colorgreen;
end
else
if barstatus=2 and sz5 then begin
drawtextabs(210,25,'转向特征注意离场'),colorgreen;
end
else
if barstatus=2 and sz6 then begin
drawtextabs(210,25,'通道改变坚决离场'),colorgreen;
end
else
if barstatus=2 and xd1 then begin
drawtextabs(210,25,'下跌通道只宜观望'),colorgreen;
end
else
if barstatus=2 and xd2 then begin
drawtextabs(210,25,'短期底部准备进入'),coloryellow;
end;
先谢谢了!!
>>>使用本站搜索工具可以找到更多“逃顶组合公式详解 大智慧组合”