指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:R射→→MACD指标公式详解 通达信MACD
新编译的rsi射线组合早期的寻底macd,这样看盘中不用换指标。
另外说明一下:《点石成金》普通扳因函数功能不一样,编出来也无法用。
{r射→→macd n:1,100,2}
drawband(100,rgb(100,100,100),-20,rgb(100,100,100));
var1:=(ma(close,80)-ma(close,13)/3);
var2:=( ma((close-var1)/var1,1));
var3:=(close-llv(low,28))/(hhv(high,28)-llv(low,28))*100;
var4:=sma(var3,4,1);
mma:=ema(var2,12)*0.7;
mmb:=ema(var2,3);
快到底:if(llv(mmb-mma,12)>0,0,-20),linethick2,colorgreen;
底初选股:if( cross(0, llv(mmb-mma,12)),10,0),linethick0;
k:=ceiling(c/10);
diff:=( ema(close,12) - ema(close,26))/k*100+50;
dea:=ema(diff,9);
macd:= 2*(diff-dea)+50;
20,colorgray,linethick2;
50,pointdot,colorgray;
80,colorgray,linethick2;
drawband(diff,rgb(100,00,00),dea,rgb(00,200,00));
抄底:if(快到底<0 and cross(macd,50) and var4<18,80,0),colorcyan;
drawicon( 抄底>0,35 ,1 );
stickline(macd<ref(macd,1)and macd>50,50,macd,0,1),colorgreen;
stickline(macd<ref(macd,1)and macd<50,50,macd,0,1),colorffcc33;
stickline(macd>ref(macd,1)and macd<50,50,macd,0,1),coloryellow;
stickline(macd>ref(macd,1)and macd>50,50,macd,0,1),colormagenta;
lc:=ref(close,1);
rsi:((sma(max((close - lc),0),n,1) / sma(abs((close - lc)),n,1))
* 100),colormagenta,linethick2;
ra1:=ref(rsi,n)=hhv(rsi,n*2+1); ra2:=ref(rsi,n)=llv(rsi,n*2+1);
rb1:=filter(ra1,n); rb2:=filter(ra2,n);
rc1:=backset(rb1,n+1); rc2:=backset(rb2,n+1);
rd1:=filter(rc1,n); rd2:=filter(rc2,n);
gd1:=barslast(rd1); dd1:=barslast(rd2);
gdts:=if(rd1,currbarscount,0);
ddts:=if(rd2,currbarscount,0);
gdt1:=if(gd1,ref(gdts,gd1),gdts);
ddt1:=if(dd1,ref(ddts,dd1),ddts);
gdcs1:=const(gdt1); ddcs1:=const(ddt1);
gingbuts1:=ref(gdt1,gd1+1); dingbuts1:=ref(ddt1,dd1+1);
gdcs2:=const(gingbuts1); ddcs2:=const(dingbuts1);
gdcs13:=const(ref(rsi,gdcs1-1));ddcs13:=const(ref(rsi,ddcs1-1));
gdcs23:=const(ref(rsi,gingbuts1-1));ddcs23:=const(ref(rsi,dingbuts1-1));
xg1:=backset(islastbar,gdcs1);xd1:=backset(islastbar,ddcs1);
xg2:=backset(islastbar,gdcs2);xd2:=backset(islastbar,ddcs2);
m:=2*n;
ra11:=ref(rsi,m)=hhv(rsi,m*2+1); ra22:=ref(rsi,m)=llv(rsi,m*2+1);
rb11:=filter(ra11,m); rb22:=filter(ra22,m);
rc11:=backset(rb11,m+1); rc22:=backset(rb22,m+1);
rd11:=filter(rc11,m); rd22:=filter(rc22,m),nodraw;
gd11:=barslast(rd11); dd11:=barslast(rd22);
gdtss:=if(rd11,currbarscount,0);
ddtss:=if(rd22,currbarscount,0);
gdt11:=if(gd11,ref(gdtss,gd11),gdtss);
ddt11:=if(dd11,ref(ddtss,dd11),ddtss);
gdcs11:=const(gdt11); ddcs11:=const(ddt11);
gingbuts11:=ref(gdt11,gd11+1); dingbuts11:=ref(ddt11,dd11+1);
gdcs22:=const(gingbuts11); ddcs22:=const(dingbuts11);
高点压力1:drawline(currbarscount=gdcs2,rsi
,currbarscount=gdcs1,rsi,1) ,colorred,linethick1;
低点支撑1:drawline(currbarscount=ddcs2,rsi
,currbarscount=ddcs1,rsi,1),colorred,linethick1;
高点压力2:drawline(currbarscount=gdcs22,rsi
,currbarscount=gdcs11,rsi,1) ,coloryellow,linethick1;
低点支撑2:drawline(currbarscount=ddcs22,rsi
,currbarscount=ddcs11,rsi,1),coloryellow,linethick1;
高点压力3:drawline(currbarscount=gdcs22,rsi
,currbarscount=gdcs2,rsi,1) ,colorgreen,linethick1;
低点支撑3:drawline(currbarscount=ddcs22,rsi
,currbarscount=ddcs2,rsi,1),colorgreen,linethick1;
stickline(xg1,gdcs13,gdcs13,0.5,1),colorwhite;
stickline(xg2,gdcs23,gdcs23,0.5,1),coloryellow;
stickline(xd2,ddcs23,ddcs23,0.5,1),colormagenta;
stickline(xd1,ddcs13,ddcs13,0.5,1),colorcyan;
>>>使用本站搜索工具可以找到更多“R射→→MACD指标公式详解 通达信MACD”