roc变动速率指标:
drawgbk((close > 0),colorrgb(0,130,100),colorrgb(0,0,30),1);
diff :(ema(close,12) - ema(close,26))*50,linethick0;
dea:ema(diff,9),linethick0;
macd : 2*(diff-dea),linethick0;
fillrgn(macd>0,macd,0),color6e91c3;
fillrgn(macd<0,macd,0),colorgreen;
{fillrgn(diff>dea,diff,dea),colorbrown;
fillrgn(diff<dea,diff,dea),colorgray;}
rsv:=(close-llv(low,90))/(hhv(high,90)-llv(low,90))*200-100;
长k:sma(rsv,25,1),colorgray;
长d:sma(长k,7,1),,linethick0;
长j:3*长k-2*长d,colorfc22ff;
fillrgn(长j>长k,长j,长k),colorfc22ff;
fillrgn(长j<长k,长j,长k),colorgray;
var1:=((close-ma(close,6))/(ma(close,6)))*(100);
var2:=((close-ma(close,24))/(ma(close,24)))*(100);
var3:=((close-ma(close,32))/(ma(close,32)))*(100);
var4:=(var1+var2+var3)/(3);
var5:=ema(var4,5);
var6:=if((var4<=(-20)),10,0);
var7:=hhv(var6,10);
vara:=if(var7 and cross(ma(close,3),ma(close,5)),20,0);
k:(ema(var5,5))*(2),linethick0;
d:ema(k,5),colorred;
j:(k)*(3)-(d)*(2),color00ffff;
fillrgn((j>d),j,d),coloryellow;
fillrgn((j<d),j,d),coloryellow;
fillrgn((j>ref(j,1) and j>d),j,d),colorred;
fillrgn((j>ref(j,1) and j<d),j,d),colorred;
diff:=(ema(close,3) - ema(close,13));
dea:=ema(diff,9);
tj:=(diff>dea);
tj1:=(diff>-0.1);
macd:=2*(diff-dea);
jc:=cross(diff,dea);
sc:=cross(dea,diff);
dcjc:=jc and dea>0;
explain((jc and dea>0),'macd在0轴上金叉提示加仓;'),colorred;
explain((jc and dea<0),'macd在0轴下金叉酌情买入;'),colorred;
explain((sc and dea>0),'macd在0轴上多次死叉;'),colorgreen;
explain((sc and dea<0),'macd在0轴下多次死叉;'),colorgreen;
explain((macd<0 and abs(macd)>ref(abs(macd),1)),'macd绿柱增长提示卖出;'),colorgreen;
explain((macd<0 and abs(macd)<ref(abs(macd),1)),'macd绿柱缩短提示买入;'),colorred;
explain((llv(low,60)=low)and(not(llv("macd.dea",60)="macd.dea")),'macd底背离提示示买入;'),colorred;
explain((hhv(high,60)=high)and(not(hhv("macd.dea",60)="macd.dea")),'macd顶背离提示卖出;'),colorgreen;
explain(cross("macd.diff","macd.dea")and(barslast(cross("macd.diff","macd.dea"))>=3),'macd二次金叉提示买入,股价上涨幅度会较大。'),colorred;
explain(cross("macd.dea","macd.diff")and(barslast(cross("macd.dea","macd.diff"))>=3),'macd二次死叉提示卖出,股价下跌幅度会较大。'),colorgreen;
explain((count(close<ref(close,1),30)>18and(count(close<ref(close,1),3)=3))and(count("macd.macd">ref("macd.macd",1),30)>18),'macd反转--股价将可能反转向上。'),colorred;
explain((count(close>ref(close,1),30)>18and(count(close>ref(close,1),3)=3))and(count("macd.macd"<ref("macd.macd",1),30)>18),'macd反转--股价将可能反转向下。'),colorgreen;
explain((count(dcjc,20)=2 and jc and dea>0),'macd在0轴上2金叉;')colorredcolorred;
explain((count(dcjc,20)=3 and jc and dea>0),'macd在0轴上3金叉;');
explain((count(dcjc,20)=4 and jc and dea>0),'macd在轴上4金叉;');
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),7,1)/sma(abs(close-lc),7,1)*100;
rsi2:=sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*100;
explain("rsi.rsi1"<15and(barslast("rsi.rsi1"<15)>=1),'rsi相对强弱指标超卖,属买入信号。'),colorred;
explain("rsi.rsi1">85and(barslast("rsi.rsi1">85)>=1),'rsi相对强弱指标超买,属卖出信号。'),colorgreen;
explain((((llv(l,20)=l)and(not(llv("rsi.rsi1",20)="rsi.rsi1")))or(count(c<ref(c,1),30)>18and(count("rsi.rsi1">ref("rsi.rsi1",1),30)>18)))and("rsi.rsi1"<20),'rsi相对强弱指标底背离,股价在低位时属买入信号。'),colorred;
explain((((hhv(h,20)=h)and(not(hhv("rsi.rsi1",20)="rsi.rsi1")))or(count(c>ref(c,1),30)>18and(count("rsi.rsi1"<ref("rsi.rsi1",1),30)>18)))and("rsi.rsi1">80),'rsi相对强弱指标顶背离,股价在高位时属卖出信号。'),colorgreen;
explain(cross("rsi.rsi1","rsi.rsi2")and("rsi.rsi1"<50),'rsi相对强弱指标金叉属买入信号。'),colorred;
explain(cross("rsi.rsi2","rsi.rsi1")and("rsi.rsi1">50),'rsi相对强弱指标死叉,属卖出信号。'),colorgreen;
explain("rsi.rsi1"<5,'rsi相对强弱指标极低位,强烈买入信号。'),colorred;
explain("rsi.rsi1">93,'rsi相对强弱指标极高位,强烈卖出信号。'),colorgreen;
explain(rsi1<35,'rsi顶背离提示买入;'),colorred;
explain(cross(74,rsi1),'rsi顶背离提示卖出;')colorgreen;
explain(("kdj.k"<=20 and "kdj.d"<=20),'kd超卖指示买入;')colorred;
explain(("kdj.k">=80 and "kdj.d">=80),'kd超买逢高卖出;')colorgreen;
explain(cross("kdj.k","kdj.d") and (count(vol>ref(vol,1),30)>3and (vol/capital<=(10/100))) and (("kdj.k"<=20 and"kdj.d"<=20)),'kd金叉买入,低市值或成交清淡个股应忽略此信号。')colorred;
explain(cross("kdj.d","kdj.k") and ("kdj.k">=60 and "kdj.d">=60)and (barslast(cross("kdj.d","kdj.k")and("kdj.k">=60 and"kdj.d">=60))>=1) and
(barslast(cross("kdj.d","kdj.k") and ("kdj.k">=60 and "kdj.d">=60))<=7),'kd二次死叉提示卖出;')colorgreen;
explain(("kdj.j"<0),'kdj异常逢低买入')colorred;
explain(((hhv(high,20)=high) and (not(hhv("kdj.k",20)="kdj.k" or(hhv("kdj.d",20)="kdj.d")))) or (count(close>ref(close,1),30)>18and (count("kdj.k"<ref("kdj.k",1),30)>18 or(count("kdj.d"<ref("kdj.d",1),30)>18))),'kd顶背离提示卖出;')colorgreen;
explain(((llv(low,20)=low) and (not(llv("kdj.k",20)="kdj.k" or(llv("kdj.d",20)="kdj.d")))) or (count(close<ref(close,1),30)>18and (count("kdj.k">ref("kdj.k",1),30)>18 or(count("kdj.d">ref("kdj.d",1),30)>18))),'kd底背离提示买入;')colorred;
日k:="kdj.k#day"(20,5,5);
日d:="kdj.d#day"(20,5,5);
周k:="kdj.k#week"(9,3,3);
周d:="kdj.d#week"(9,3,3);
explain((cross(日k,日d)),'日kd金叉且底背离买入;')colorred;
explain((cross(日d,日k)),'日kd死叉且顶背离必须卖出;')colorgreen;
explain((cross(周k,周d)),'周kd金叉且底背离买入;')colorred;
explain((cross(周d,周k)),'周kd死叉且顶背离必须卖出;')colorgreen;
bbi:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
upr:=bbi+3*std(bbi,10);
dwn:=bbi-3*std(bbi,10);
var55:=(upr-dwn)/upr<0.03;
var56:=(upr-dwn)/upr>0.18;
var57:=(ma(close,60)-ma(close,5))/ma(close,60)>0.15;
var58:=(ma(close,5)-ma(close,60))/ma(close,5)>0.15;
explain(var55,'布林线收窄可能变盘;')colormagenta;
explain(var57 and var56 and close>open ,'布林上下乖离太大可能反弹;')colorff00ff;
explain(var58 and var56 and close<open ,'布林上下乖离太大可能回落;')colorgreen;
explain(cross(close,"sar") and (abs(close-"sar")/close>=0.01),'sar向上突破提示买入;')colorred;
explain(cross("sar",close) and (abs(close-"sar")/close>=0.01),'sar向下突破提示卖出;')colorgreen;
typ := (high + low + close)/3;
cci:=(typ-ma(typ,14))/(0.015*avedev(typ,14));
explain(cci<-100,'cci指标底位,买入机会。'),colorred;
explain(cci>100,'cci指标高位,卖出机会。'),colorgreen;
explain((vol/capital)>0.075,'换手过大,小心主力出逃,短期头部。'),coloryellow;
wr:=-100*(hhv(high,14)-close)/(hhv(high,14)-llv(low,14));
explain(wr>-20,'w&r超买,即将见顶,应及时卖出。'),colorgreen;
explain(wr<-80,'w&r超卖,即将见底,应伺机买进。'),colorred;
mtm := close-ref(close,6);
mtmma := ma(mtm,6);
explain(cross(mtm,mtmma),'mtm从下向上突破mtmma,买入信号。'),colorred;
explain(cross(mtmma,mtm),'mtm从上向下跌破mtmma,卖出信号。'),colorgreen;
explain("arbr.ar"<50,'arbr人气指标超卖,属买入信号。'),colorred;
explain("arbr.ar">200,'arbr人气指标超买,属卖出信号。'),colorgreen;
explain(((hhv("arbr.ar",10)-"arbr.ar")/hhv("arbr.ar",10))>=0.5,'arbr人气指标异常,若股价从高价下跌,属买入信号。'),colorred;
explain((("arbr.ar"-llv("arbr.ar",10))/llv("arbr.ar",10))>=0.5,'arbr人气指标异常,若股价从低价上升,属卖出信号。'),colorgreen;
explain("arbr.br"<50,'arbr意愿指标显示股价随时反弹考虑买入。'),colorred;
explain("arbr.br">300,'arbr意愿指标显示股价随时下挫考虑卖出。'),colorff00ff;
explain(cross("arbr.ar","arbr.br")and("arbr.ar"<50or"arbr.br"<50),'arbr人气意愿指标金叉,属买入信号。'),colorred;
explain(cross("arbr.br","arbr.ar")and("arbr.ar">180or"arbr.br">300),'arbr人气意愿指标死叉,属卖出信号。'),colorgreen;
explain((count(c<ref(c,1),30)>18and(count(c<ref(c,1),3)=3))and((count("obv.obv">ref("obv.obv",1),30)>18)and(count("obv.obv">ref("obv.obv",1),3)=3))and(count(vol>ref(vol,1),30)>3and(vol/capital<=(10/100))),'obv能量潮显示买盘较强属买入信号。'),colorred;
explain((count(c>ref(c,1),30)>18and(count(c>ref(c,1),3)=3))and((count("obv.obv">ref("obv.obv",1),30)>18)and(count("obv.obv">ref("obv.obv",1),3)=3))and(count(vol>ref(vol,1),30)>3and(vol/capital<=(10/100))),'obv能量潮显示买盘逐渐加强属买入信号。'),colorred;
explain((count(c>ref(c,1),30)>18and(count(c>ref(c,1),3)=3))and((count("obv.obv"<ref("obv.obv",1),30)>18)or(count("obv.obv"<ref("obv.obv",1),3)=3)),'obv能量潮显示买盘无力属卖出信号。'),colorgreen;
explain(cross("obv.obv",0)and(count((ref("obv.obv",1)<0),3)=3),'obv能量潮由负转正属买入信号。'),colorred;
explain(cross(0,"obv.obv")and(count((ref("obv.obv",1)>0),3)=3),'obv能量潮由正转负属卖出信号。'),colorgreen;
explain((hhv(h,20)=h)and(not(hhv("obv.obv",20)="obv.obv")),'obv能量潮顶背离属卖出信号。')colorgreen;
explain((llv(l,20)=l)and(not(llv("obv.obv",20)="obv.obv")),'obv能量潮底背离属买入信号。'),colorred;
explain((abs("obv.obv"-ref("obv.obv",1))/abs(ma("obv.obv",5))>0.07)and("obv.obv">ref("obv.obv",1)),'obv能量潮异常。若股价在高位属卖出信号,若obv能量线在低位长时间横向整理后出现,属买入信号。'),colorff00ff;
explain("cr.cr"<40,'cr能量指标超卖,提示股价形成底部,属买入信号。'),colorred;
explain("cr.cr"<=400and"cr.cr">=300,'cr能量指标超买,属卖出信号。'),colorgreen;
explain((llv(l,20)=l)and(not(llv("cr.cr",20)="cr.cr")),'cr能量指标底背离,属买入信号。'),colorred;
explain((hhv(h,20)=h)and(not(hhv("cr.cr",20)="cr.cr")),'cr能量指标顶背离,属卖出信号。'),colorgreen;
explain(((abs("cr.ma1"-"cr.ma2")<5)and(abs("cr.ma1"-"cr.ma3")<5)and(abs("cr.ma2"-"cr.ma3")<5))or(((abs("cr.ma1"-"cr.cr")<5)and(abs("cr.ma1"-"cr.ma3")<5)and(abs("cr.cr"-"cr.ma3")<5))),'cr能量指标异常,一波或长或短的上升或下跌行情即将展开。'),colorff00ff;
explain("psy"<10,'psy心理线指标低位超卖区,属买入信号。'),colorred;
explain(between("psy","psy">10,"psy"<25),'psy心理线指标超卖,属买入信号。'),colorred;
explain("psy">75,'psy心理线指标超买,属卖出信号。'),colorgreen;
explain(cross("roc.roc",0),'roc变动速率指标向上突破,属买入信号。'),colorred;
explain(cross(0,"roc.roc"),'roc变动速率指标向下突破,属卖出信号。'),colorgreen;
explain((llv(l,20)=l)and(not(count("roc.roc"<ref("roc.roc",1),30)>18and(count("roc.roc"<ref("roc.roc",1),3)=3))),'roc变动速率指标,显示下跌动力减弱,属买入信号。'),colorred;
explain((hhv(h,20)=h)and(not(count("roc.roc">ref("roc.roc",1),30)>18and(count("roc.roc">ref("roc.roc",1),3)=3))),'roc变动速率指标,显示上涨动力减弱,属卖出信号。'),colorgreen;
explain((count(c>ref(c,1),30)>18and(count(c>ref(c,1),3)=3))and(count("roc.roc">ref("roc.roc",1),30)>18and(count("roc.roc">ref("roc.roc",1),3)=3)),'roc变动速率指标显示短期反弹有望,属买入信号。'),colorred;
explain((count(c<ref(c,1),30)>18and(count(c<ref(c,1),3)=3))and(count("roc.roc"<ref("roc.roc",1),30)>18and(count("roc.roc"<ref("roc.roc",1),3)=3)),'roc变动速率指标显示短期警惕回落,属卖出信号。'),colorgreen;
explain("vr"<20,'vr容量比率指标显示股价即将涨升,建议积极买入。'),colorred;
explain("vr">400,'vr容量比率指标显示后续资金枯竭,股价将可能高位下跌,属卖出信号。'),colorgreen;
explain((("vr"/ref("vr",1)>=2)or("vr"/ref("vr",2)>=2))and(count(c<=ref(c,1),5)>=3),'vr容量比率指标异常,显示股价即将涨升,属买入信号。'),colorred;
explain("vr">300and(count("vr"<ref("vr",1),5)>=3)and(count(c>ref(c,1),5)>=3),'vr容量比率指标显示涨势耗尽,建议卖出。'),colorgreen;
上一指标公式:分水岭加箱体公式 飞狐分水岭指标指标 源码
下一指标公式:猎庄敢死队公式 飞狐敢死队指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文ROC变动速率公式 飞狐变动指标指标 源码仅供学习研究。