飞狐MACD背离二叉公式源码是什么?
2016-5-23 10:01:01 股票入门 http://rumen.southmoney.com
飞狐MACD背离二叉公式源码是什么?附:飞狐五行线分割主图公式源码 南方财富网小编为您提供
【飞狐MACD背离二叉公式源码】
v1:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">v2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
分水岭:IF(MA(CLOSE,17)<v2,v2,MA(CLOSE,17)),COLORFF00FF,LINETHICK1;
ma10:=MA(C,10),COLORWHITE,LINETHICK1;
ma30:MA(C,30),COLOR00ff00,LINETHICK2;
stickline(ma10>= REF(ma10,1),ma10,ref(ma10,1),8,1),COLORRED,LINETHICK2;
stickline(ma10< REF(ma10,1),ma10,ref(ma10,1),8,1),COLORff9900,LINETHICK2;
A1:=BARSLAST(REF(CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9)),1));
B1:=REF(C,A1+1)> C AND REF("MACD.DIFF"(12,26,9),A1+1)<"MACD.DIFF"(12,26,9)
AND CROSS("MACD.DIFF"(12,26,9),"MACD.DEA"(12,26,9));
DRAWTEXT(B1> 0,L-0.02,底背离),COLOR00FFFF; C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIFF"(12,26,9)),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIFF"(12,26,9),C1+1)>"MACD.DIFF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),
"MACD.DIFF"(12,26,9));
DRAWTEXT(D1> 0,H+0.16,顶背离),COLOR00FF00; Jm:=CROSS("Macd.DIFF"(12,26,9),"Macd.DEA"(12,26,9));
Jma:=CROSS("Macd.DEA"(12,26,9),"Macd.DIFF"(12,26,9));
Drawtext (Jm,l,金叉),colorwhite; Drawtext (Jma,h,死叉),coloryellow; JmCOUNT:=COUNT(Jm,BARSLAST("Macd.DEA"(12,26,9)>=0));
Jmtj:1*("Macd.DEA"(12,26,9)<0 and Count(JmCount=2,21)=1),linethick0;
JmaCOUNT:=COUNT(Jma,BARSLAST("Macd.DEA"(12,26,9)>=0));
Jmatj:1*("Macd.DEA"(12,26,9)>0 and Count(JmaCount=2,21)=1),linethick0;
Drawtext (Jmtj,l,二次金叉),colorwhite; Drawtext (Jmatj,h,二次死叉),colorwhite;
附:【飞狐五行线分割主图公式源码】
Var1:=(HIGH+LOW+OPEN+CLOSE)/4;
A线:MA(3*Var1-2*SMA(Var1,2,1),13),COLORGREEN,LINETHICK1;
B线:=EMA(MA(CLOSE,13),2);
C线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),60)*0.985,linethick1,colorgray;
FILLRGN(A线>C线,A线,C线),COLOR0984FF,LINETHICK1;
FILLRGN(A线>B线,B线,A线),COLOR83CBFC,LINETHICK1;
FILLRGN(A线<=B线*1.0062,A线,C线),COLORFFFF68,LINETHICK1;
D线:B线,linethick1,LINEDOT,colorFFFF00;
PARTLINE(A线>C线,C线),LINETHICK1,Color002288;
PARTLINE(A线<C线,C线),LINETHICK1,Color11412E;
PARTLINE(A线>B线,A线),LINETHICK1,Color002288;
PARTLINE(A线<B线,A线),LINETHICK1,Color11412E;
SS:=30;
HhC:=HHV(h,SS);
LLc:=LLV(L,SS);
AA:PARTLINE(BARPOS>=SYSPARAM(1)-SS,hHC[SYSPARAM(1)]),COLORGREEN;DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,hHC[SYSPARAM(1)],hHC[SYSPARAM(1)],2),COLORFF88CC,PXUP25;
BB:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]*3+LLc[SYSPARAM(1)])/4),COLORYELLOW,POINTDOT;CC:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)])/2),COLORWHITE;DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)])/2,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)])/2,2),COLORFF88CC,PXUP25;
DD:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)]*3)/4),COLORYELLOW,POINTDOT;EE:PARTLINE(BARPOS>=SYSPARAM(1)-SS,LLc[SYSPARAM(1)]),COLORRED;DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,LLc[SYSPARAM(1)],LLc[SYSPARAM(1)],2),COLORFF88CC,PXUP25;
MA10:=ma(C,10),coloryellow,linethick;
STICKLINE(C>MA10 and C>O,C,O,8,1), COLOR0505B6;
STICKLINE(C>MA10 and C>O,O,L,1,1), COLOR0505B6;
STICKLINE(C>MA10 and C>O,C,H,1,1), COLOR0505B6;
STICKLINE(C>MA10 and C<O,C,O,8,0), COLOR0505B6;
STICKLINE(C>MA10 and C<O,O,L,1,1), COLOR0505B6;
STICKLINE(C>MA10 and C<O,C,H,1,1), COLOR0505B6;
STICKLINE(C<MA10 and C>O,C,O,8,1), COLOR618F6A;
STICKLINE(C<MA10 and C>O,O,L,1,1), COLOR618F6A;
STICKLINE(C<MA10 and C>O,C,H,1,1), COLOR618F6A;
STICKLINE(C<MA10 and C<O,C,O,8,0), COLOR618F6A;
STICKLINE(C<MA10 and C<O,C,L,1,1), COLOR618F6A;
STICKLINE(C<MA10 and C<O,O,H,1,1), COLOR618F6A;
更多飞狐公式源码相关资讯请关注南方财富
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。