当前位置:分析家公式网 → 股票公式 → 文华公式 → 一键转帖:顶底背离 (源码 贴图 文华指标)
软件名称:[B]顶底背离 (源码 贴图 文华指标)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2018-05-12 07:41:25
软件简介:
DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :EMA(DIFF,9),LINETHICK2;
MACD:=2*(DIFF-DEA);//WWW.70822.com
STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,COLORRED,0);
STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,COLORYELLOW,0);
STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,COLORGREEN,0);
STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,COLORBLUE,0);
UPCOND:=CROSS(DIFF,DEA);
DOWNCOND:=CROSSDOWN(DIFF,DEA);
END_N1:=SUMBARS(DOWNCOND,1);
RANGE_N1:=REF(SUMBARS(UPCOND,1),END_N1);
END_N2:=SUMBARS(DOWNCOND,2);
HH1:=REF(HV(H,RANGE_N1),END_N1-1);
HH2:=REF(HV(H,RANGE_N1),END_N2-1);
MACD1:=REF(HV(MACD,RANGE_N1),END_N1-1);
MACD2:=REF(HV(MACD,RANGE_N1),END_N2-1);
顶背离:=CROSS(0,MACD) AND HH1>HH2 AND MACD1<MACD2;
DRAWTEXT(顶背离,DIFF*1.30 ,'顶背离'),RGB(0,255,64);
END_M1:=SUMBARS(UPCOND,1);//WWW.70822.com
RANGE_M1:=REF(SUMBARS(DOWNCOND,1),END_M1);
END_M2:=SUMBARS(UPCOND,2);
LL1:=REF(LV(L,RANGE_M1),END_M1-1);
LL2:=REF(LV(L,RANGE_M1),END_M2-1);
MACD3:=REF(LV(MACD,RANGE_M1),END_M1-1);
MACD4:=REF(LV(MACD,RANGE_M1),END_M2-1);
底背离:=CROSS(MACD,0) AND LL1<LL2 AND MACD3>MACD4;
DRAWTEXT(底背离,DIFF*1.50 ,'底背离'),COLORWHITE;
[url=http://www.70822.com/soft/sort013/sort049/down-123842.html]顶底背离 (源码 贴图 文华指标)[/url]