1. 首页
  2. 金融百科

飞狐MACD力道指标公式飞狐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)andMACD2>0,0,MACD2,2,0),COLOR00AAFF;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2>0,0,MACD2,1.8,0),COLOR00BBFF;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2>0,0,MACD2,1.


STICKLINE(MACD2<=ref(MACD2,1)andMACD2>0,0,MACD2,1.2,0),COLOR00ddfF;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2>0,0,MACD2,1,0),COLOR00EEFF;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2>0,0,MACD2,0.5,0),COLOR00FFFF;
STICKLINE(MACD2>ref(MACD2,1)andMACD2>0,0,MACD2,5,0),COLOR0000AA;
STICKLINE(MACD2>ref(MACD2,1)andMACD2>0,0,MACD2,4,0),COLOR0011BB;


STICKLINE(MACD2>ref(MACD2,1)andMACD2>0,0,MACD2,2,0),COLOR0033dD;
STICKLINE(MACD2>ref(MACD2,1)andMACD2>0,0,MACD2,1,0),COLOR0044EE;
STICKLINE(MACD2>ref(MACD2,1)andMACD2>0,0,MACD2,0.5,0),COLOR0055FF;
STICKLINE(MACD2>ref(MACD2,1)andmaCD2<=0,0,MACD2,5,0),COLORAA00BB;
STICKLINE(MACD2>ref(MACD2,1)andMACD2<=0,0,MACD2,4,0),COLORBB11BB;


STICKLINE(MACD2>ref(MACD2,1)andMACD2<=0,0,MACD2,2,0),COLORDD33BB;
STICKLINE(MACD2>ref(MACD2,1)andMACD2<=0,0,MACD2,1,0),COLOREE44BB;
STICKLINE(MACD2>ref(MACD2,1)andMACD2<=0,0,MACD2,0.5,0),COLORFF55BB;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2<=0,0,MACD2,2,0),COLORFF7700;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2<=0,0,MACD2,1.


STICKLINE(MACD2<=ref(MACD2,1)andMACD2<=0,0,MACD2,1.2,0),COLORFFAA22;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2<=0,0,MACD2,1.0,0),COLORFFBb33;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2<=0,0,MACD2,0.8,0),COLORFfdD44;
STICKLINE(MACD2<=ref(MACD2,1)andMACD2<=0,0,MACD2,0.5,0),COLORFFFF55;
二线:C>Ref(C,1)andcross(C,Ma(C,5))andcross(C,Ma(C,10))ORCross(C,Ma(C,20))andCross(C,Ma(C,10)),colorgreen;


四线:C>Ref(C,1)andCross(C,Ma(C,5))andCross(C,Ma(C,10))andCross(C,Ma(C,20))andCross(C,Ma(C,30)),coloryellow;
五线:C>Ref(C,1)andCross(C,Ma(C,5))andCross(C,Ma(C,10))andCross(C,Ma(C,20))andCross(C,Ma(C,30))andCross(C,Ma(C,40)),colorred;
六线:C>OandCross(C,Ma(C,5))andCross(C,Ma(C,10))andCross(C,Ma(C,20))andCross(C,Ma(C,30))andCross(C,Ma(C,40))andCross(C,Ma(C,60))andslope(Ma(C,60),2)>0,colorffff00;


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);


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;
{www.gupang.com股旁网_飞狐股票指标公式}
B1:=('上穿过:' NUMTOSTR(A1[SYspARAM(1)],2));

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);


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);


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);

本文内容来自互联网转载,不代表本人立场,若侵犯您的权益,请联系我们第一时间删除,谢谢!如若转载,请注明出处:http://www.denguang.com/baike/69e380a5ffd21cec37099a44.html