公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

风险系数指标 (源码)

2022-3-1 02:04| 发布者: admin| 查看: 20| 评论: 0

大智慧风险系数指标公式股票软件源码如下:

DIFF := EMA(CLOSE,68) - EMA(CLOSE,170);
DEA := EMA(DIFF,90);
MACD := 2*(DIFF-DEA);
A:MACD;
G:MA(MACD,2);
j:MA(MACD,3);
j1:=MA(MACD,5);
STICKLINE(CROSS(ma(A,1),G),ma(G,1),ma(G,1)+0.02,1,0),COLORRED,linethick2;
DRAWTEXT(CROSS(A,j1),G+0.03,'ok'),COLORCYAN;
DRAWTEXT(CROSS(j1,A),G+0.03,'911'),COLORCYAN;
STICKLINE(A>j,A,0,0.01,1),COLORRED,POINTDOT;
STICKLINE(AFILLRGN(A,j1,A>j1,RGB(200,100,100),AMACD : 2*(DIFF-DEA),COLORYELLOW,LINETHICK2;
j1:MA(MACD,5),COLORccffcc,linethick2;
{www.gpxiazai.com 股票软件下载网_大智慧股票指标公式}
IF BARSTATUS=2 and (A) THEN BEGIN DRAWTEXTREL(0,0,'注意长线macd下穿上穿0的变化,A:'+NUMTOSTRN(A,1)),COLORccffcc,LINETHICK6;end;
var13:=if(year>=2018and month>=11 and day>=1,0,1);
aa:=(ma(c,1)+ma(c,3)+ma(c,5)+ma(c,7)+ma(c,9))/5;
bb:=(ma(c,2)+ma(c,4)+ma(c,6)+ma(c,8)+ma(c,10))/5;
cc:=ema(aa,2);
dd:=ema(bb,5);
var14:=max(ema(aa,2)-ema(bb,5),0)*1.2;
var15:=ema(var14,5);
ss:=ema(var15,2);
风险系数:(var15-ss)/10*var13,pointdot,colorffffff;
波浪系数:var15*var13,stick,colorff00ff;
A10:波浪系数,linethick1 ;
B:MA(A10,3),coloryellow,linethick2 ;
PARTLINE(波浪系数,波浪系数REF(波浪系数,1),RGB(255,0,0)),linethick2;
PARTLINE(B,BREF(B,1),RGB(180,50,0)),linethick2;
stickline(var15>ref(var15,1) and var13,var15,0,2,0),COLOR0099FF;
stickline(var15>ref(var15,1) and var13,var15,ss,3.5,0),COLORyellow;
stickline(var15stickline(var15升跌:=ema((c/ma((2*c+h+l)/4,8)-1)*100,3);0;

大智慧风险系数指标公式


鲜花

握手

雷人

路过

鸡蛋
返回顶部