软件名称:[B]决策曲线[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2008-10-03 15:02:29
软件简介:
自编大智慧版之《决策曲线》
决策曲线的奥妙在于指标共振。
当所用指标共同看多时,曲线将接近72,当曲线大于70,表示进入阶段性顶部区域。
反之,当指标看空时,曲线将向36回归,达到阶段性底部区域。
曲线在36以下,为空头下跌区域,应该回避。
当上穿36,不在下穿时,表明初升段来临;一旦下穿36,表明反弹结束,下跌继续。
站稳44线,表示短期强势成立,一旦下穿44,离场观望。
56为中期强弱分水岭,曲线大于56,中期强势来临,一旦跌破,就应及时止盈。
======================================================================
多天辛苦,利用12个指标自编成功。
指标包括:均线,KDJ,MACD,MASS,PSY,VR,MOM,DPO,BOLL,CCI,SOBV,ARBR
当指标看多时,各自加3分,看空时减3分,合计36分。如此而已。
公布源码,相互交流,欢迎斧正。
源码如下:-----大智慧通用。
================================
{均线01}
MA01:=MA(CLOSE,3);
MA02:=MA(CLOSE,5);
P01:=IF(MA01>MA02,1,0);
P02:=IF(MA02>MA01,-1,0);
P011:=P01+P02;
MA11:=MA(CLOSE,5);
MA12:=MA(CLOSE,12);
P03:=IF(MA11>MA12,1,0);
P04:=IF(MA12>MA11,-1,0);
P012:=P03+P04;
MA21:=MA(CLOSE,12);
MA22:=MA(CLOSE,50);
P05:=IF(MA21>MA22,1,0);
P06:=IF(MA22>MA21,-1,0);
P013:=P05+P06;
pp01:=p011+p012+p013;
{KDJ02}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
pp02:=if(k>d,3,if(k<d,-3,0));
{NACD03}
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
pp03:=if(macd>0,3,if(macd<0,-3,0));
{MASS04}
MASS:=SUM(EMA((HIGH-LOW),9)/EMA(EMA((HIGH-LOW),9),9),25);
pp04:=if(mass>27 and c>ema(c,3),3,if(mass>27 and c<ema(c,3),-3,0));
{PSY05}
PSY20:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100;
pp05:=if(psy20>75,3,if(psy20<25,-3,0));
{VR06}
LC:=REF(CLOSE,1);
cdp:=(h+l+2*c)/4;
VR:=(SUM(IF(CLOSE>LC,VOL*cdp,0),24)+sum(if(c=lc,cdp*vol,0),24)/2)/
(SUM(IF(CLOSE<=LC,cdp*VOL,0),24)+sum(if(c=lc,cdp*vol,0),24)/2)*100;
pp06:=if(vr>350,3,if(vr<45,-3,0));
{MOM07}
MOM12:=c-ref(c,12);
pp07:=if(mom12>0,3,if(mom12<0,-3,0));
{DPO08}
DPO20:=C - REF(MA(CLOSE,11),20);
pp08:=if(dpo20>0,3,if(dpo20<0,-3,0));
{BOLL09}
MID:=MA(CLOSE,20);
UPPER:=MID + 2*STDDEV(CLOSE,20);
LOWER:=MID - 2*STDDEV(CLOSE,20);
bljx:=(c-lower)/(upper-lower)*100;
pp09:=if(bljx>100,3,if(bljx<0,-3,0));
{CCI11}
TYP:= (HIGH + LOW + CLOSE)/3;
cci14:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
pp11:=if(cci14>180,3,if(cci14<-180,-3,0));
{SOBV10}
sobv:=SUM(IF(ISUP,VOL,IF(ISDOWN,-VOL,0)),0);
ms:=ema(sobv,24);
pp10:=if(sobv>ms,3,if(sobv<ms,-3,0));
{ARBR12}
AR:= SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
BR:= SUM(MAX(0,HIGH-REF(CLOSE,1)),26)/SUM(MAX(0,REF(CLOSE,1)-LOW),26)*100;
pp12:=if(ar>180 or br>350,3,if(ar<45 or br<45,-3,0));
qq:=pp01+pp02+pp03+pp04+pp05+pp06+pp07+pp08+pp09+pp10+pp11+pp12;
ctv:=36+qq;
决策线:ctv,colorwhite,linethick2;
stickline(c>0,36,36,10,0),color00ff00;
stickline(c>0,56,56,10,0),colorff00ff;
stickline(c>0,71,71,10,0),colorred;
stickline(c>0,44,44,10,0),coloryellow;
stickline(决策线>63,70,决策线,4,0),colorred;
当所用指标共同看多时,曲线将接近72,当曲线大于70,表示进入阶段性顶部区域。
反之,当指标看空时,曲线将向36回归,达到阶段性底部区域。
曲线在36以下,为空头下跌区域,应该回避。
当上穿36,不在下穿时,表明初升段来临;一旦下穿36,表明反弹结束,下跌继续。
站稳44线,表示短期强势成立,一旦下穿44,离场观望。
56为中期强弱分水岭,曲线大于56,中期强势来临,一旦跌破,就应及时止盈。
======================================================================
多天辛苦,利用12个指标自编成功。
指标包括:均线,KDJ,MACD,MASS,PSY,VR,MOM,DPO,BOLL,CCI,SOBV,ARBR
当指标看多时,各自加3分,看空时减3分,合计36分。如此而已。
公布源码,相互交流,欢迎斧正。
源码如下:-----大智慧通用。
================================
{均线01}
MA01:=MA(CLOSE,3);
MA02:=MA(CLOSE,5);
P01:=IF(MA01>MA02,1,0);
P02:=IF(MA02>MA01,-1,0);
P011:=P01+P02;
MA11:=MA(CLOSE,5);
MA12:=MA(CLOSE,12);
P03:=IF(MA11>MA12,1,0);
P04:=IF(MA12>MA11,-1,0);
P012:=P03+P04;
MA21:=MA(CLOSE,12);
MA22:=MA(CLOSE,50);
P05:=IF(MA21>MA22,1,0);
P06:=IF(MA22>MA21,-1,0);
P013:=P05+P06;
pp01:=p011+p012+p013;
{KDJ02}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
pp02:=if(k>d,3,if(k<d,-3,0));
{NACD03}
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:= EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
pp03:=if(macd>0,3,if(macd<0,-3,0));
{MASS04}
MASS:=SUM(EMA((HIGH-LOW),9)/EMA(EMA((HIGH-LOW),9),9),25);
pp04:=if(mass>27 and c>ema(c,3),3,if(mass>27 and c<ema(c,3),-3,0));
{PSY05}
PSY20:=COUNT(CLOSE>REF(CLOSE,1),12)/12*100;
pp05:=if(psy20>75,3,if(psy20<25,-3,0));
{VR06}
LC:=REF(CLOSE,1);
cdp:=(h+l+2*c)/4;
VR:=(SUM(IF(CLOSE>LC,VOL*cdp,0),24)+sum(if(c=lc,cdp*vol,0),24)/2)/
(SUM(IF(CLOSE<=LC,cdp*VOL,0),24)+sum(if(c=lc,cdp*vol,0),24)/2)*100;
pp06:=if(vr>350,3,if(vr<45,-3,0));
{MOM07}
MOM12:=c-ref(c,12);
pp07:=if(mom12>0,3,if(mom12<0,-3,0));
{DPO08}
DPO20:=C - REF(MA(CLOSE,11),20);
pp08:=if(dpo20>0,3,if(dpo20<0,-3,0));
{BOLL09}
MID:=MA(CLOSE,20);
UPPER:=MID + 2*STDDEV(CLOSE,20);
LOWER:=MID - 2*STDDEV(CLOSE,20);
bljx:=(c-lower)/(upper-lower)*100;
pp09:=if(bljx>100,3,if(bljx<0,-3,0));
{CCI11}
TYP:= (HIGH + LOW + CLOSE)/3;
cci14:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
pp11:=if(cci14>180,3,if(cci14<-180,-3,0));
{SOBV10}
sobv:=SUM(IF(ISUP,VOL,IF(ISDOWN,-VOL,0)),0);
ms:=ema(sobv,24);
pp10:=if(sobv>ms,3,if(sobv<ms,-3,0));
{ARBR12}
AR:= SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
BR:= SUM(MAX(0,HIGH-REF(CLOSE,1)),26)/SUM(MAX(0,REF(CLOSE,1)-LOW),26)*100;
pp12:=if(ar>180 or br>350,3,if(ar<45 or br<45,-3,0));
qq:=pp01+pp02+pp03+pp04+pp05+pp06+pp07+pp08+pp09+pp10+pp11+pp12;
ctv:=36+qq;
决策线:ctv,colorwhite,linethick2;
stickline(c>0,36,36,10,0),color00ff00;
stickline(c>0,56,56,10,0),colorff00ff;
stickline(c>0,71,71,10,0),colorred;
stickline(c>0,44,44,10,0),coloryellow;
stickline(决策线>63,70,决策线,4,0),colorred;
[url=http://www.70822.com/soft/sort013/sort04/down-2003.html]决策曲线[/url]