飞狐牛熊级别指标公式,飞狐火车启动主图指标公式
admin888
|飞狐牛熊级别指标公式,飞狐火车启动主图指标公式
飞狐牛熊级别指标公式
N:=8;{Y1
均线周期,其余均线依此以倍数联动}
CC:=CLOSE;0;
Y/2:=ema(CC,N/2),COLORWHITE;
Y1:=Ema(CC,N),COLORYELLOW;
Y2:=EMA(CC,2*N),COLORMAGENTA;
Y3:=EMA(CC,3*N),COLORGREEN;
Y4:=EMA(CC,4*N),COLORFF9900;
Y6:=EMA(CC,6*N),COLORFFFF88;
Y9:=EMA(CC,9*N),COLOR3F72CE;
Y13:=EMA(CC,13*N),COLOR99EBEB;
Y20:=EMA(CC,20*N),COLORBLUE;
A:=DATATYPE;{取当前周期状态,
飞狐特殊函数}NNN:=if(a=3,1920,if(a=4,960,if(a=5,480,IF(A=6,120,IF(A=7,24,IF(A=8,6,IF(A=9,2,IF(A=10,40,1000))))))));
NXH:=HHV(HIGH,NNN)*0.7;
NXL:=LLV(LOW,NNN)*1.3;
NXGN:=MA((NXH+NXL)/2,3),COLORRED;{
牛熊概念线}kk1:=if(y1>=y2,1,-1);
kk2:=if(y2>=y3,1,-1);
kk3:=if(y3>=y4,1,-1);
kk4:=if(y4>=y6,1,-1);
kk5:=if(y6>=y9,1,-1);
kk6:=if(y9>=y13,1,-1);
kk7:=if(y13>=y20,1,-1);
kk:kk1+kk2+kk3+kk4+kk5+kk6+kk7;
牛:cross(y1,nxgn)*3;
熊:cross(nxgn,y1)*(-3);
飞狐火车启动主图指标公式
A5:ma(C,5),COLOR00FFFF;
A20:MA(C,20),COLORFF00FF;
A30:MA(C,30),COLOR00FF00;
M5:=ATAN((A5/REF(A5,1)-1)*100)*180/3.14159;
M20:=ATAN((A20/REF(A20,1)-1)*100)*180/3.14159;
M30:=ATAN((A30/REF(A30,1)-1)*100)*180/3.14159;
QSXS:=M30>0;
A50:=IF(M5<0,-25,0);
A51:=IF(BETWEEN(M5,0,45),25,A50);
A52:=IF(BETWEEN(M5,45,75),50,A51);
MA5:=IF(M5>75,75,A52)*QSXS;
A200:=IF(M20<0,-25,0);
A201:=IF(BETWEEN(M20,0,45),25,A200);
A202:=IF(BETWEEN(M20,45,75),50,A201);
MA20:=IF(M20>75,75,A202)*QSXS;
A300:=IF(M30<0,-25,0);
A301:=IF(BETWEEN(M30,0,45),25,A300);
A302:=IF(BETWEEN(M30,45,75),50,A301);
MA30:=IF(M30>75,75,A302)*QSXS;
SGSJ:=BArslAst(crOSS(MA5,REF(MA5+1,1)));
XGSJ:=BARSLAST(CROSS(REF(MA5-1,1),MA5));
列车:=IF(MA5>=50 AND MA20>=25 AND MA30>=25 AND SGSJ
启动:=IF(CROSS(列车,45),50,25);
站台:=IF(MA5<=0 AND COUNT(MA20>=25,10)>=9 AND MA30>=25,-25,25);
买票:=IF(站台=-25 AND COUNT(站台=-25,3)>=2 AND C>=REF(C,4),25,-10);
上车:=IF(CROSS(MA5,0) AND COUNT(MA20>=25,10)>=9 AND MA30>=25,50,25);
DRAWTEXT(列车=50,A30, '○'),COLOR88FFFF;
DRAWTEXT(启动=50,A30, '●'),COLORFF00FF;
STICKLINE(站台=-25,A30,A30*0.98,4,0),COLORFFFF00;
STICKLINE(买票=25,A30,A30*0.98,2,0),COLORFFFFFF;
DRAWTEXT(买票=25,A30*0.97, '票'),COLORFF8800;
DRAWTEXT(上车=50,A30, '△'),COLORFFFFFF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。