您当前的位置:股票 > 财经资讯 > 财经频道

飞狐主买主卖指标公式,飞狐MACD力道指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

飞狐主买主卖指标公式,飞狐MACD力道指标公式

飞狐主买主卖指标公式

input:n(27,1,30),n2(9,1,10),n3(3,1,5),n4(16,1,18);

Q:=1;

V1:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));

主买:IF(CLOSE>OPEN,V1*(HIGH-LOW),IF(CLOSE

主卖:IF(CLOSE>OPEN,0-V1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE

净买:主买+主卖,COLORRED,LINETHICK0;

stICKLINE(主买<(-主卖) , v,0,8,1) COLORCYAN;

STICKLINE(主买>=(-主卖) , v*1.01,0,8,1) colorred,LINETHICK2;

K5:=(VOL > (REF(HHV(VOL,10),1) * 2));

DRAWTEXT((K5 > 0),(VOL * 1.05),'关注'),COLORWHITE,ALIGN;

STICKLINE((K5 > 0),0,VOL,7,0),colorFFFF;

VAR1:=1;

VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

VAR3:=SMA(VAR2,3,1)*VAR1;

VAR4:=Sma(VAR3,N2,1)*VAR1;

VAR5:=3*VAR3-2*VAR4*VAR1;

VAR6:=VOL*VAR1;

STICKLINE(VOL AND VAR5>VAR4,0,VOL,3,0),COLORMAGENTA;

STICKLINE(VOL AND VAR5

STICKLINE(VOL AND VAR4

MA60:MA(VOL,60),colorred,LINETHICK2;

V5: MA(VOL,5),COLORWHITE;

V34: MA(VOL,34),COLORYELLOW;

获利盘: WINNER(CLOSE)*100*VAR1;

量比: VOL/MA(VOL,5)*VAR1;

涨跌: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100*VAR1;

角度: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100*VAR1;

换手: VOL/CAPITAL*100*VAR1;

VAR7:=SUM(换手,30)*VAR1;

VAR8:=LLV(INDEXL,5)*VAR1;

VAR9:=HHV(INDEXH,5)*VAR1;

VARA:=ema((INDEXC-VAR8)/(VAR9-VAR8)*100,4);

VARB:=MA(EMA(0.667*REF(VARA,1)+0.333*VARA,2),9);

VARC:=MA(VARB,30);

VARD:=EMA(获利盘,4)*VAR1;

振幅: (HIGH-LOW)/REF(CLOSE,1)*100;

VARE:=MA(V5,3);

VARF:=(涨跌>VARD AND 角度<-30 AND 涨跌>3)*VAR1;

abc:crOSS(VARB,VARC) AND VARC<29*VAR1;

当天换手:=(((VOL / CAPITAL) * 100) * Q);

AAA:=((SUM(VOL,5) / 3) * Q);

量能线:MA(AAA,3),COLORBROWN,LINETHICK2;

量能异动:(VOL > 量能线),COLORBROWN;

DRAWICON((VOL > 量能线),量能线,12);

DRAWICON(((CLOSE > REF(CLOSE,1)) AND (VOL > 量能线)),v*1.1,8);

VAR15:=((WINNER(CLOSE) * 100) * Q);

筹码穿透:CROSS(VAR15,50),LINETHICK0,colorFFFF;

飞狐MACD力道指标公式

input : M(9),LONG(26),SHORT(12);

difF :ema(CLOSE,SHORT) - Ema(CLOSE,LONG);

DEA : EMA(DIFF,M);

macd: 2*(DIFF-DEA), COLORstICK;

MacD2:=MACD;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR00AAFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.8,0 ),COLOR00BBFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.3,0 ),COLOR00CCFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.2,0 ),COLOR00ddfF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR00EEFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,0.5,0 ),COLOR00FFFF;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,5,0 ),COLOR0000AA;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,4 ,0 ),COLOR0011BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,3,0 ),COLOr0022CC;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR0033DD;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR0044EE;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,0.5 ,0 ),COLOR0055FF;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,5,0 ),COLORAA00BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,4 ,0 ),COLORBB11BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,3,0 ),COLORCC22BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORDD33BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,1 ,0 ),COLOREE44BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,0.5,0 ),COLORFF55BB;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORFF7700;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.5 ,0 ),COLORFF8811;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.2,0 ),COLORFFAA22;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.0 ,0 ),COLORFFBB33;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.8 ,0 ),COLORFFDD44;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.5 ,0 ),COLORFFFF55;

二线:C>Ref(C,1) andcross(C,Ma(C,5)) and Cross(C,Ma (C,10)) OR Cross(C,Ma(C,20)) and Cross(C,Ma (C,10)),colorgreen;

三线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)),colorgreen;

四线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30)),coloryellow;

五线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30)) and Cross(C,Ma(C,40)),colorred;

六线:C>O and Cross(C,Ma(C,5)) and Cross(C,Ma(C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30))and Cross(C,Ma(C,40)) and Cross(C,Ma(C,60)) and slope(Ma(C,60),2)>0,colorffff00;

A:=IF(Cross(C,Ma(C,5)),1,0);

B:=IF(Cross(C,Ma(C,10)),1,0);

C1:=IF(Cross(C,Ma(C,20)),1,0);

D:=IF(Cross(C,Ma(C,30)),1,0);

E:=IF(Cross(C,Ma(C,40)),1,0);

F:=IF(Cross(C,Ma(C,50)),1,0);

G:=IF(Cross(C,Ma(C,60)),1,0);

H1:=IF(Cross(C,Ma(C,90)),1,0);

I:=IF(Cross(C,Ma(C,100)),1,0);

L1:=IF(Cross(C,Ma(C,120)),1,0);

o1:=IF(Cross(C,Ma(C,150)),1,0);

P:=IF(Cross(C,Ma(C,180)),1,0);

Q:=IF(Cross(C,Ma(C,200)),1,0);

R:=IF(Cross(C,Ma(C,250)),1,0);

S:=IF(Cross(C,Ma(C,70)),1,0);

T:=IF(Cross(C,Ma(C,80)),1,0);

S:a+b+c1+d+e+f+G+H1+I+L1+o1+P+Q+R+S+T,linethick0;

STICKLINE(S<>0,DIFF,DEA,3,0),colorFF;

A1:=S;

}B1:=('上穿过:' + NUMTOSTR(A1[SYSPARAM(1)],2));

{定义出B1价格=光标位置的A2值保留小数点后两位}DRAWTEXT((BARPOS = SYSPARAM(1)) ,macd*1.01,B1),colorFFFF,SHIFT2;

{在A1处写出B1价格} ;

EXPLAINEX(BARPOS = SYSPARAM(1) ,'上穿过:',A1,2,0),COLOR5290FF;

drawicon(s,MACD,10);

A2:=IF(Cross(Ma(C,5),C),1,0);

B2:=IF(Cross(Ma(C,10),C),1,0);

C2:=IF(Cross(Ma(C,20),C),1,0);

D2:=IF(Cross(Ma(C,30),C),1,0);

E2:=IF(Cross(Ma(C,40),C),1,0);

F2:=IF(Cross(Ma(C,50),C),1,0);

G2:=IF(Cross(Ma(C,60),C),1,0);

H2:=IF(Cross(Ma(C,90),C),1,0);

I2:=IF(Cross(Ma(C,100),C),1,0);

L2:=IF(Cross(Ma(C,120),C),1,0);

T2:=IF(Cross(C,Ma(C,150)),1,0);

O2:=IF(Cross(Ma(C,180),C),1,0);

P2:=IF(Cross(Ma(C,200),C),1,0);

Q2:=IF(Cross(Ma(C,250),C),1,0);

R2:=IF(Cross(Ma(C,70),C),1,0);

S2:=IF(Cross(Ma(C,80),C),1,0);

S1:a2+b2+c2+d2+e2+f2+G2+H2+I2+L2+P2+Q2+R2+S2+t2,linethick0;

STICKLINE(S1<>0,DIFF,DEA,3,0),colorFF00;

A1:=S1;

B1:=('下穿过:' + NUMTOSTR(A1[SYSPARAM(1)],2));

{定义出B1价格=光标位置的A2值保留小数点后两位}EXPLAINEX(BARPOS = SYSPARAM(1) ,'下穿过:',A1,2,0),COLOR5290FF;

DRAWTEXT((BARPOS = SYSPARAM(1)) ,0-macd*1.5,B1),colorFFFF00,SHIFT2;

{在A1处写出B1价格}drawicon(s1,0,11);

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:飞狐主买主卖指标公式,飞狐MACD力道指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

飞狐主买主卖指标公式,飞狐MACD力道指标公式

admin888

|

飞狐主买主卖指标公式,飞狐MACD力道指标公式

飞狐主买主卖指标公式

input:n(27,1,30),n2(9,1,10),n3(3,1,5),n4(16,1,18);

Q:=1;

V1:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));

主买:IF(CLOSE>OPEN,V1*(HIGH-LOW),IF(CLOSE

主卖:IF(CLOSE>OPEN,0-V1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE

净买:主买+主卖,COLORRED,LINETHICK0;

stICKLINE(主买<(-主卖) , v,0,8,1) COLORCYAN;

STICKLINE(主买>=(-主卖) , v*1.01,0,8,1) colorred,LINETHICK2;

K5:=(VOL > (REF(HHV(VOL,10),1) * 2));

DRAWTEXT((K5 > 0),(VOL * 1.05),'关注'),COLORWHITE,ALIGN;

STICKLINE((K5 > 0),0,VOL,7,0),colorFFFF;

VAR1:=1;

VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

VAR3:=SMA(VAR2,3,1)*VAR1;

VAR4:=Sma(VAR3,N2,1)*VAR1;

VAR5:=3*VAR3-2*VAR4*VAR1;

VAR6:=VOL*VAR1;

STICKLINE(VOL AND VAR5>VAR4,0,VOL,3,0),COLORMAGENTA;

STICKLINE(VOL AND VAR5

STICKLINE(VOL AND VAR4

MA60:MA(VOL,60),colorred,LINETHICK2;

V5: MA(VOL,5),COLORWHITE;

V34: MA(VOL,34),COLORYELLOW;

获利盘: WINNER(CLOSE)*100*VAR1;

量比: VOL/MA(VOL,5)*VAR1;

涨跌: (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100*VAR1;

角度: (CLOSE-REF(OPEN,29))/REF(OPEN,29)*100*VAR1;

换手: VOL/CAPITAL*100*VAR1;

VAR7:=SUM(换手,30)*VAR1;

VAR8:=LLV(INDEXL,5)*VAR1;

VAR9:=HHV(INDEXH,5)*VAR1;

VARA:=ema((INDEXC-VAR8)/(VAR9-VAR8)*100,4);

VARB:=MA(EMA(0.667*REF(VARA,1)+0.333*VARA,2),9);

VARC:=MA(VARB,30);

VARD:=EMA(获利盘,4)*VAR1;

振幅: (HIGH-LOW)/REF(CLOSE,1)*100;

VARE:=MA(V5,3);

VARF:=(涨跌>VARD AND 角度<-30 AND 涨跌>3)*VAR1;

abc:crOSS(VARB,VARC) AND VARC<29*VAR1;

当天换手:=(((VOL / CAPITAL) * 100) * Q);

AAA:=((SUM(VOL,5) / 3) * Q);

量能线:MA(AAA,3),COLORBROWN,LINETHICK2;

量能异动:(VOL > 量能线),COLORBROWN;

DRAWICON((VOL > 量能线),量能线,12);

DRAWICON(((CLOSE > REF(CLOSE,1)) AND (VOL > 量能线)),v*1.1,8);

VAR15:=((WINNER(CLOSE) * 100) * Q);

筹码穿透:CROSS(VAR15,50),LINETHICK0,colorFFFF;

飞狐MACD力道指标公式

input : M(9),LONG(26),SHORT(12);

difF :ema(CLOSE,SHORT) - Ema(CLOSE,LONG);

DEA : EMA(DIFF,M);

macd: 2*(DIFF-DEA), COLORstICK;

MacD2:=MACD;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR00AAFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.8,0 ),COLOR00BBFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.3,0 ),COLOR00CCFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1.2,0 ),COLOR00ddfF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR00EEFF;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2>0,0,MACD2,0.5,0 ),COLOR00FFFF;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,5,0 ),COLOR0000AA;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,4 ,0 ),COLOR0011BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,3,0 ),COLOr0022CC;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,2,0 ),COLOR0033DD;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,1,0 ),COLOR0044EE;

STICKLINE(MACD2>ref(MACD2,1)and MACD2>0,0,MACD2,0.5 ,0 ),COLOR0055FF;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,5,0 ),COLORAA00BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,4 ,0 ),COLORBB11BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,3,0 ),COLORCC22BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORDD33BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,1 ,0 ),COLOREE44BB;

STICKLINE(MACD2>ref(MACD2,1)and MACD2<=0,0,MACD2,0.5,0 ),COLORFF55BB;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,2,0 ),COLORFF7700;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.5 ,0 ),COLORFF8811;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.2,0 ),COLORFFAA22;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,1.0 ,0 ),COLORFFBB33;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.8 ,0 ),COLORFFDD44;

STICKLINE(MACD2<=ref(MACD2,1)and MACD2<=0,0,MACD2,0.5 ,0 ),COLORFFFF55;

二线:C>Ref(C,1) andcross(C,Ma(C,5)) and Cross(C,Ma (C,10)) OR Cross(C,Ma(C,20)) and Cross(C,Ma (C,10)),colorgreen;

三线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)),colorgreen;

四线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30)),coloryellow;

五线:C>Ref(C,1) and Cross(C,Ma(C,5)) and Cross(C,Ma (C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30)) and Cross(C,Ma(C,40)),colorred;

六线:C>O and Cross(C,Ma(C,5)) and Cross(C,Ma(C,10)) and Cross(C,Ma(C,20)) and Cross(C,Ma(C,30))and Cross(C,Ma(C,40)) and Cross(C,Ma(C,60)) and slope(Ma(C,60),2)>0,colorffff00;

A:=IF(Cross(C,Ma(C,5)),1,0);

B:=IF(Cross(C,Ma(C,10)),1,0);

C1:=IF(Cross(C,Ma(C,20)),1,0);

D:=IF(Cross(C,Ma(C,30)),1,0);

E:=IF(Cross(C,Ma(C,40)),1,0);

F:=IF(Cross(C,Ma(C,50)),1,0);

G:=IF(Cross(C,Ma(C,60)),1,0);

H1:=IF(Cross(C,Ma(C,90)),1,0);

I:=IF(Cross(C,Ma(C,100)),1,0);

L1:=IF(Cross(C,Ma(C,120)),1,0);

o1:=IF(Cross(C,Ma(C,150)),1,0);

P:=IF(Cross(C,Ma(C,180)),1,0);

Q:=IF(Cross(C,Ma(C,200)),1,0);

R:=IF(Cross(C,Ma(C,250)),1,0);

S:=IF(Cross(C,Ma(C,70)),1,0);

T:=IF(Cross(C,Ma(C,80)),1,0);

S:a+b+c1+d+e+f+G+H1+I+L1+o1+P+Q+R+S+T,linethick0;

STICKLINE(S<>0,DIFF,DEA,3,0),colorFF;

A1:=S;

}B1:=('上穿过:' + NUMTOSTR(A1[SYSPARAM(1)],2));

{定义出B1价格=光标位置的A2值保留小数点后两位}DRAWTEXT((BARPOS = SYSPARAM(1)) ,macd*1.01,B1),colorFFFF,SHIFT2;

{在A1处写出B1价格} ;

EXPLAINEX(BARPOS = SYSPARAM(1) ,'上穿过:',A1,2,0),COLOR5290FF;

drawicon(s,MACD,10);

A2:=IF(Cross(Ma(C,5),C),1,0);

B2:=IF(Cross(Ma(C,10),C),1,0);

C2:=IF(Cross(Ma(C,20),C),1,0);

D2:=IF(Cross(Ma(C,30),C),1,0);

E2:=IF(Cross(Ma(C,40),C),1,0);

F2:=IF(Cross(Ma(C,50),C),1,0);

G2:=IF(Cross(Ma(C,60),C),1,0);

H2:=IF(Cross(Ma(C,90),C),1,0);

I2:=IF(Cross(Ma(C,100),C),1,0);

L2:=IF(Cross(Ma(C,120),C),1,0);

T2:=IF(Cross(C,Ma(C,150)),1,0);

O2:=IF(Cross(Ma(C,180),C),1,0);

P2:=IF(Cross(Ma(C,200),C),1,0);

Q2:=IF(Cross(Ma(C,250),C),1,0);

R2:=IF(Cross(Ma(C,70),C),1,0);

S2:=IF(Cross(Ma(C,80),C),1,0);

S1:a2+b2+c2+d2+e2+f2+G2+H2+I2+L2+P2+Q2+R2+S2+t2,linethick0;

STICKLINE(S1<>0,DIFF,DEA,3,0),colorFF00;

A1:=S1;

B1:=('下穿过:' + NUMTOSTR(A1[SYSPARAM(1)],2));

{定义出B1价格=光标位置的A2值保留小数点后两位}EXPLAINEX(BARPOS = SYSPARAM(1) ,'下穿过:',A1,2,0),COLOR5290FF;

DRAWTEXT((BARPOS = SYSPARAM(1)) ,0-macd*1.5,B1),colorFFFF00,SHIFT2;

{在A1处写出B1价格}drawicon(s1,0,11);

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道