指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:决策曲线详解 曲线
自编大智慧版之《决策曲线》
决策曲线的奥妙在于指标共振。
当所用指标共同看多时,曲线将接近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;
>>>使用本站搜索工具可以找到更多“决策曲线详解 曲线”