软件名称:[B]长投指标[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:9.00 KB
官方主页:Home Page
更新时间:2017-01-24 01:35:31
软件简介:
kle长投指标,稳定盈LI抄底逃顶的长线投资指标.
本指标从"版本8"开始,不再含任何未来函数,可放心使用.
参考和借鉴了"绝密顶底"和"顶底走势"两个指标,结合kle原理做到了真正的抄底逃顶.
// 比例:=20;显示表情:=1;资金抄底:=1;必涨信号:=1;逃顶信号:=1
R:=比例;
K:=15;N:=235;P:=0.5;
持: EMA(C,K), colorred,linethick2;
LONGMA:=EMA(C,N);
建:(1-R/100)*LONGMA,colorliblue;
财:LONGMA,colormagenta;
R2:=R-LN(LONGMA);
减:(1+R2/100)*LONGMA,colorgreen;
清:(1+R2/50)*LONGMA,colorwhite,nodraw;
ps:= P*STDP(C,N);
上: LONGMA + ps,DOTLINE,colorgreen;
下: LONGMA - ps,DOTLINE,colorliblue;
收:CLOSE,nodraw,colorred;
// 对:LN(LONGMA),nodraw,colorred;
ROE: CJ_JZCSYL ,colormagenta,nodraw;
// xj: XJJZJ/POW(10,8) ,colormagenta,nodraw;
// 经营净额: JYJE,colormagenta,nodraw;
// 作者: 维尼大师 2016年12月18日 发明
less_than_mid:=C<(LONGMA+建)/2;
DD:=IF(L >= 建,ABS(L-建)/建*100<1 AND less_than_mid,1);
/*
抄底:=TROUGHBARS2(2,5,1)=0 AND HIGH>LOW+0.01 AND DD;
DRAWTEXT(抄底,L*0.97," "+TOSTRING(L,2)),colorred;
DRAWICON(抄底,L,1);
顶:= PEAKBARS2(3,15,1)<10;
逃顶:=顶>REF(顶,1) AND H>=清;
DRAWICON(逃顶,H,2);
DRAWTEXT(逃顶,H*1.03," "+TOSTRING(H,2)),colorgreen;
*/
时:DATE,nodraw,colorgray;
IF(显示表情) {
// 参考 "绝密顶底" 指标
Var0:=LLV(LOW,36);
Var1:=(CLOSE-Var0)/(HHV(HIGH,36)-Var0)*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
Var6:=CROSS(Var3,Var4) AND Var3<20;
DRAWICON(FILTER(Var6,10)=1 AND DD,L*0.95,5);
// Var7:=CROSS(Var4,Var3) AND Var3>80;
// DRAWICON(FILTER(Var7,5)=1 AND H>=减,H*1.05,3);
}
IF(必涨信号) { // 参考 "顶底走势"
////必涨之星////
Hua2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),16,2)/SMA(ABS(CLOSE/REF(CLOSE,1)),16,2)*100;
Xian=SMA(Hua2,3,1);
Nv3:=SMA(Xian,3,1);
XiNv=3*Xian-2*Nv3;
买入条件:=CROSS(XiNv,Nv3);
卖出条件:=CROSS(Nv3,XiNv);
Hxn:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND IF(CLOSE>REF(CLOSE,1),88,0)>0, 91, 0);//花仙女涨停
Hxjz:=MA((2*CLOSE+HIGH+LOW)/4,5);//花仙女绝招
Bztd:=Hxjz*89/100;
DRAWTEXT(CROSS(LOW,Bztd) AND DD,L,'必涨'),colorred;
}
IF(资金抄底) { // 参考 "顶底走势"
///资金抄底///
LC:=REF(CLOSE,1);
rj:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;//大单净量
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;
风险系数:=0.5*相对强弱+0.5*短线波段,coloryellow;
CD1:=IF(风险系数<20 AND CLOSE>OPEN AND rj>0,1,0);//波段小于20,股价翻红;
CD2:=IF(风险系数<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND rj>0,1,0);//波段小于20,股价未翻红,但未创新低;
CD3:=IF(REF(风险系数,1)<20 AND 风险系数>REF(风险系数,1),1,0);//前一日波段小于20,今日转向;
SIGNALBUY=(CD1=1 OR CD2=1 OR CD3=1);
cd=(SIGNALBUY AND COUNT(SIGNALBUY,3)=1) AND DD;
// DRAWTEXT(cd,L,'↖抄'+TOSTRING(L,2)),COLOR0099FF;
DRAWTEXT(cd,L*0.97," "+TOSTRING(L,2)),colorred;
DRAWICON(cd,L,1);
}
IF(逃顶信号) {
最小值:=LLV(LOW,10);
最大值:=HHV(HIGH,25);
波动线:=EMA((CLOSE-最小值)/(最大值-最小值)*4,4);
平均线:=EMA(波动线,3);
r0:=((IF(ISNULL(ZDMR[-1]),0,ZDMR)+IF(ISNULL(BDMR[-1]),0,BDMR))-(IF(ISNULL(ZDMC[-1]),0,ZDMC)+IF(ISNULL(BDMC[-1]),0,BDMC)))/SHGZG*100;
MA5:=MA(r0,5);
主力攻击:=r0-(ABS(REF(r0,1))+ABS(REF(r0,2))+ABS(REF(r0,3))+ABS(REF(r0,4))+ABS(REF(r0,5))/2)>0 AND 平均线>=REF(平均线,1) AND REF(平均线,1)<REF(平均线,2);
主力撤退:=-((r0+(ABS(REF(r0,1))+ABS(REF(r0,2))+ABS(REF(r0,3))+ABS(REF(r0,4))+ABS(REF(r0,5))/2)<0) AND 平均线<=REF(平均线,1) AND REF(平均线,1)>REF(平均线,2));
DRAWTEXT(主力攻击>0,L,"↖主进"),colorred;
DRAWTEXT(主力撤退<0 AND L >= 财,H*1.03,"↙主退"),colorgreen;
信息:=平均线>=REF(平均线,1);
// 走强:=CLOSE>MA(CLOSE,20)AND CLOSE>MA(CLOSE,5);
// 走弱:=CLOSE<MA(CLOSE,10)AND CLOSE<MA(CLOSE,5);
// 量:=VOL>MA(VOL,5);
d:=信息=1 AND REF(信息,1)=0 AND (REF(信息,2)+REF(信息,3)=0) AND 平均线<0.5;
// s:=信息=1 AND REF(信息,1)=0 AND (REF(信息,2)+REF(信息,3)=0) AND 走强=1 AND REF(走强,1)=0 AND 量=1;
dd:=平均线>2 AND (信息=0 AND REF(信息,1)=1) AND (REF(信息,2)+REF(信息,3)=2);
// tz:=(信息=0 AND REF(信息,1)=1) AND (REF(信息,2)+REF(信息,3)=2) AND MA5<0 AND 走弱=1 AND 平均线>1;
DRAWTEXT(d=1 AND DD,L,'↖极底'),colorred;
// DRAWTEXT(s=1 AND 持 > REF(持,1) ,L,'升');
DRAWTEXT(dd=1 AND H>=清,H*1.03,'↙顶'),colorgreen;
////机构利器////
VAR8:=REF(CLOSE,2);
会员:=SMA(MAX(CLOSE-VAR8,0),7,1)/SMA(ABS(CLOSE-VAR8),7,1)*100;
逃亡:=IF(会员< REF(会员,1) AND 会员>79,会员,0);
DRAWTEXT(逃亡,H*1.03,'↙逃'),coloryellow;
}
[url=http://www.70822.com/soft/sort013/sort036/down-107692.html]长投指标[/url]