当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:MACD九转万壹哥(同花顺公式 副图 源码 测试图)
软件名称:[B]MACD九转万壹哥(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2021-07-02 00:10:32
软件简介:
MACD九转万壹哥,源码
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;
STICKLINE(MACD<0,MACD,0,4,1),colorwhite;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00aaff;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
DRAWLINE(A1=0,DEA,底背离,DEA,0),colorlimagenta,linethick1;
DRAWTEXT(底背离,DEA*1.3,' 底背离');
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorblue,linethick1;
DRAWTEXT(顶背离,DEA*1.6,' 顶背离');
DRAWICON(DIFF>REF(DIFF,1) AND REF(DIFF,2)>REF(DIFF,1),DIFF ,1);
DRAWICON(DIFF<REF(DIFF,1) AND REF(DIFF,2)<REF(DIFF,1),DIFF ,2);
△:=CROSS(DIFF,DEA);
▽:=CROSS(DEA,DIFF);
DRAWTEXT(△,DIFF*1,' 阳'),colorred;
DRAWTEXT(▽,DIFF*1,' 阴'),colorgreen;
A1:=C>REF(C,4);
A2:=C<REF(C,4);
T1:=A2 AND REF(A1,1);
T2:=A2 AND REF(T1,1);
T3:=A2 AND REF(T2,1);
T4:=A2 AND REF(T3,1);
T5:=A2 AND REF(T4,1);
T6:=A2 AND REF(T5,1);
T7:=A2 AND REF(T6,1);
T8:=A2 AND REF(T7,1);
T9:=A2 AND REF(T8,1);
T10:=A2 AND REF(T9,1);
DRAWTEXT(T5,MACD*1.1,'5');
DRAWTEXT(T6,MACD*1.1,'6');
DRAWTEXT(T7,MACD*1.1,'7');
DRAWTEXT(T8,MACD*1.1,'8');
DRAWTEXT(T9,MACD*1.1,'9');
B1:=C<REF(C,4);
B2:=C>REF(C,4);
D1:=B2 AND REF(B1,1);
D2:=B2 AND REF(D1,1);
D3:=B2 AND REF(D2,1);
D4:=B2 AND REF(D3,1);
D5:=B2 AND REF(D4,1);
D6:=B2 AND REF(D5,1);
D7:=B2 AND REF(D6,1);
D8:=B2 AND REF(D7,1);
D9:=B2 AND REF(D8,1);
D10:=B2 AND REF(D9,1);
DRAWTEXT(D5,MACD*0,'5'),colorred;
DRAWTEXT(D6,MACD*0,'6'),colorred;
DRAWTEXT(D7,MACD*0,'7'),colorcyan;
DRAWTEXT(D8,MACD*0,'8'),colorred;
DRAWTEXT(D9,MACD*0,'9'),colorred;
a:0;
[url=http://www.70822.com/soft/sort013/sort036/down-156771.html]MACD九转万壹哥(同花顺公式 副图 源码 测试图)[/url]