飞狐超跌熊克星指标公式,飞狐极品等价K线指标公式
admin888
|飞狐超跌熊克星指标公式,飞狐极品等价K线指标公式
飞狐超跌熊克星指标公式
n:=34;
DRAWGBK((DATE > 0),COLORRGB(40,40,173),COLORRGB(1,1,14),1);
{猎熊k线}VAR1:= HHV(H,N);
猎熊H:=(VAR1-L)/VAR1;
猎熊O:=(VAR1-O)/VAR1;
猎熊L:=(VAR1-H)/VAR1;
猎熊C:=(VAR1-C)/VAR1;
绝对A:40/100,LINETHICK,PRECISION2,COLORYELLOW;
阻力线:=ma(LLV(猎熊L,N),21);
TR1:=ema(MAX(MAX(H-L,Abs(H-REF(C,1))),ABS(REF(C,1)-L)),N);
HD :=H-REF(H,1);
LD :=REF(L,1)-L;
DMP:=EMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EMA(IF(LD>0&&LD>HD,LD,0),14);
pdi:= DMP*100/TR1;
mdi:= DMM*100/TR1;
ADX:= EMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EMA(ADX,6);
基本超跌线: MA(HHV(猎熊H,N),21),LINETHICK,PRECISION2,COLORCYAN;
西熊线:=EMA(COUNT(C>REF(C,1),12),3)/24;
北熊线:=ADX*HHV(猎熊H,60)/HHV(ADX,60);
x1:=猎熊L>=0.35 AND 基本超跌线>=0.35 AND 猎熊L>基本超跌线;//完美理想
x2:=x1=0 AND 猎熊L>绝对A AND 基本超跌线>绝对A AND 猎熊L>基本超跌线;//第一理想
T:=ABS(IF(北熊线+猎熊H-西熊线*2>0,北熊线+猎熊H-西熊线*2,0));
点熊线:SMA(T,4,1),LINETHICK,PRECISION2,ColorFFB5FF;
T2:=SLOPE (点熊线,7);
点熊辅线: (T2+1)*(2/3*REF(点熊线,1)+1/3*点熊线),LINETHICK,PRECISION2,COLORGREEN;
n1:=sysparam(3);
n2:=sysparam(2);
n3:=(n1-n2)+1;
Gh:=hhv(点熊辅线,n3);
Gl:=llv(点熊辅线,n3);
Ghh:=Gh[n1];
Gll:=Gl[n1];
{指标线}RSV:=(C-LLV(L,30))/(HHV(H,30)-LLV(L,30))/2;
Kv:=SMA(RSV,3,1);
Dv:=SMA(Kv,3,1);
Jv:=3*Kv-2*Dv;
xy1:=EMA(Jv,6);
xy2:=REF(xy1,1);
做多:=IF(xy1>=xy2,xy1+0.02,xy2),ColorFF76FF;
做空:=IF(xy2-xy1,xy2,xy1),ColorFF7600;
{-----------------【图解模板】---------------------}
{背景}FILLRGN(xy1>=xy2,xy1+0.02,xy2),COLORRED;
FILLRGN(做空>=做多,xy2,xy1+0.02),ColorFF7600;
KLINE(猎熊O,猎熊H,猎熊L,猎熊C,0);//猎熊K线:
{各线}PARTLINE(C,绝对A),LINETHICK2,COLORYELLOW;
PARTLINE(C,做多),ColorFF76FF;
PARTLINE(C,做空),,ColorFF7600;
PARTLINE(C,点熊辅线),COLORGREEN;
PARTLINE(C,点熊线),ColorFFB5FF;
PARTLINE(C,基本超跌线),COLORCYAN;
{主信号}残缺理想:=猎熊L>0.3 AND 基本超跌线>0.3 AND 猎熊L>基本超跌线 AND x2=0 AND x1=0;
小波捉熊:=北熊线=猎熊H;
捉小熊:=点熊线<基本超跌线 ANDcrOSS(点熊辅线,点熊线)AND 点熊辅线>REF(点熊辅线,1);
平地伏熊:=FILTER((点熊线>0.0001 AND REF(点熊线,1)=0),5);
巅峰猎熊信号出击:=点熊线>绝对A AND CROSS(点熊辅线,点熊线) AND 点熊辅线>REF(点熊辅线,1);
完美理想:=猎熊L >=0.35 AND 基本超跌线>=0.35 AND 猎熊L>基本超跌线;
第一理想:=x1=0 AND 猎熊L>绝对A AND 基本超跌线>绝对A{ AND 猎熊L>基本超跌线};
信号:第一理想 or 完美理想 or 巅峰猎熊信号出击 or 平地伏熊 or 捉小熊 or 小波捉熊 or 残缺理想,linethick0;
DRAWICON(巅峰猎熊信号出击 ,点熊线+0.06,1);//巅峰猎熊:
DRAWICON(完美理想,Gll,10),ALIGN,PXDN20;//完美理想:
DRAWICON(第一理想,Gll,11),ALIGN,PXDN20;//第一理想:
飞狐极品等价K线指标公式
INPUT:N(5,1,100);
fc:=c;fo:=o;cc:0*c,PRECISION4,LINETHICK0;oo:0*c,PRECISION4,LINETHICK0;t1:=0*c;t2:=0*c;
for i=1 to datacount do beginif i=1 and fc[i]>fo[i] thencc[i]:=fc[i];
oo[i]:=fc[i];
if i=1 and fc[i]
oo[i]:=fc[i];
if i>1 thencc[i]:=cc[i-1];
oo[i]:=oo[i-1];
if i>1 and fc[i]>cc[i]*(1+n/1000) then begin
cc[i]:=cc[i-1]*(1+n/1000);
oo[i]:=cc[i-1];
end;
if i>1 and fc[i]
cc[i]:=oo[i-1];
end;
if oo[i]=oo[i-1] thent1[i]:=t1[i-1]+1;
if cc[i]=cc[i-1] then
t2[i]:=t2[i-1]+1;
end;
o1:=ref(oo,t1+1);
c1:=ref(cc,t2+1);
格子点数:abs(cc-oo),PRECISION4,linethick0;
stICKLINE(c1=oo,ref(cc,1),ref(oo,1),1,1)COLORRED;
STICKLINE(c1=oo,cc,oo,8,1)COLORRED;
STICKLINE(o1=cc,ref(cc,1),ref(oo,1),1,1)COLORCYAN;
STICKLINE(o1=cc,cc,oo,8,1)COLORCYAN;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。