飞狐质变划线主图指标公式,飞狐三明治指标公式
admin888
|飞狐质变划线主图指标公式,飞狐三明治指标公式
飞狐质变划线主图指标公式
A:=LINEVALUE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),0,0), COLORBLUE ,LINETHICK2;
TY:=C;
ma5:MA(C,5)COLORWHITE;
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA060:MA(C,60)COLORRED;
MA1200:MA(CLOSE,120),LINETHICK2,COLORRED ;
MA250:MA(CLOSE,250),LINETHICK2,COLORWHITE ;
{均线}TYP:= (HIGH + LOW +2* C)/4;
均线:=ema(TYP,3),LINETHICK2,COLORWHITE;
均线上轨:=HHV(均线,14),LINETHICK2,COLORYELLOW;
均线下轨:=LLV(均线,14),LINETHICK2,COLORGREEN;
角度:=ATAN((均线/REF(均线,1)-1)*100)*180/3.1416;
{k线优化}stICKLINE(角度>0,O ,C ,1.33,0 ),COLORRED;
STICKLINE(角度<0,O ,C,1.33 ,0 ),COLORCYAN;
STICKLINE(角度<0,O,C,8,0),COLORFF6600;{蓝K线
持币}STICKLINE(角度<0,O,C,5.33,0),COLORFF9900;
STICKLINE(角度<0,O,C,3.2,0),COLORFFCC00;
STICKLINE(角度<0,O,C,0.53,0),COLORCYAN;
STICKLINE(角度>0,O,C,8,0),COLOR000099;
STICKLINE(角度>0,O,C,5.33,0),COLOR0000CC;{红K线
持股}STICKLINE(角度>0,O,C,3.47,0),COLOR0000FF;
STICKLINE(角度>0,O,C,0.8,0),COLORCC66FF;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
mtm:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(Abs(MTM),6),6);
CB:=EMA(X,13);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDcrOSS(DX,MA(DX,2)),1,0);
DRAWICON(FILTER(买=1,5),L*0.97,3);
P:=5;
A1:=REF(H,P)=HHV(H,2*P+1);
B1:=FILTER(A1,P);
C1:=BacKSET(B1,P+1);
D1:=FILTER(C1,P);
A2:=REF(H,P)=LLV(H,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
R11:=BACKSET(ISLASTBAR,BArslAST(D1)+1);
S11:=R11>REF(R11,1);
DRAWLINE(D1,H,S11,H,1),COLOR00FF00,LINETHICK1;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
DRAWLINE(D2,L,U11,L,1),COLORYELLOW,LINETHICK1;
飞狐三明治指标公式
bias20:=(CLOSE-ma(CLOSE,20))/MA(CLOSE,20)*100;
Q7:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
持股天数:=BArslAst((BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0))>0);
利润:IF(持股天数>0,SUM(Q7,持股天数),0),STICK;
持股天数:BARSLAST((BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0))>0),STICK,colorFF00FF;
持币天数:=BARSLAST((BARSLAST(BIAS20<0 AND REF(BIAS20,1)<0))>0),STICK,colorgray;
STICKLINE(利润>0,利润+38,0,5,0),colorFF;
STICKLINE(利润<=0,利润,0,5,0),colorFF00;
STICKLINE(持股天数>0,持股天数+8,0,5,0),colorFF00FF;
//STICKLINE(持币天数>0,持币天数,0,5,0),colorFFFF;
{绝地反击}VAR1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR3:=(SMA(VAR2,3,1)-18)*1.55;
VAR4:=SMA(VAR3,3,1);
VAR5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;
VAR6:=SMA(VAR5,10,1);
VAR7:=(ema(SMA(VAR6,8,1),34)-25)*2.6;
VAR8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VAR9:=POW(MA(LOW,5),2)+MA(LOW,5);
VARA:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARB:=((VAR8-LLV(VAR9,64))/(HHV(VARA,64)-LLV(VAR9,64))*150+65-10)/2;
VARC:=SMA(VARB,3,1)*1.5-46;
VARD:=SMA(VARC,3,1);
VARE:=3*VARC-2*VARD;
VARF:=(VAR1+VAR2+VAR5)/3;
VAR10:=((VAR3+VAR3+VAR6+VARC)/4-15)*1.67;
VAR11:=((VAR4+VAR4+VAR7+VARD)/4-15)*1.67;
VAR12:=((VAR1+VAR5*2+VARF+VAR10+VAR11+VARB+VARC+VARD+VARE)/10-15)*1.67;
VAR13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;
VAR14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;
VAR15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;
VAR16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;
VAR17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;
VAR18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;
VAR19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;
VAR1A:=((VAR13*8+VAR14*8+VAR15*8+VAR16+VAR17+VAR18+VAR19)/28-0.1)*185;
VAR1B:=SMA(VAR1A,3,1);
VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;
浮动筹码: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/13 ;
浮动筹码1: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/21 ;
浮动筹码2: (VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/34;
获利筹码: (VAR3+VAR6+VAR1B*2)/4 ;
40;
20;
0;
VARA1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80;
VARB1:=SMA(VARA1,7,1);
VARC1:=SMA(VARB1,5,1);
英雄:IF(crOSS(VARB,VARC) AND VARB<20,100,0),LINETHICK2,COLORRED;
VAR2N:=LLV(LOW,3)<=LLV(LOW,60);
VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
绝地反击:IF(VAR2N AND VAR3N,90,0),COLORYELLOW,LINETHICK2;
{超级无敌}Var1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
Var2:=SMA(SMA(Var1,3,1),3,1);
Va3:=EMA(Var2,5);
Var2;
91.307;
6.788;
49.048;
BB:=Va3;
无敌:=3*Var2-2*Va3;
STICKLINE(CROSS(无敌,Var2) AND 无敌<21,Var2-5,Var2+30,8,0);
STICKLINE(CROSS(Var2,无敌) AND 无敌>55,Var2-5,Var2+15,8,0);
DRAWTEXT(CROSS(无敌,Var2) AND 无敌<21,Var2-3,'进'),LINETHICK2,colorwhite;
DRAWTEXT(CROSS(Var2,无敌) AND 无敌>55,Var2+15,'出'),colorgreen;
非常无敌:if(CROSS(无敌,Var2) AND 无敌<21,1,0);
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。