通达信主图趋势线公式

2015-11-23 20:37:00来源:本站整理浏览:498

通达信主图趋势线公式

本指标无未来函数!使用说明:
1.红K主力做多,蓝K主力做空;黄K是一种变盘信号,小散只能选择出红K来交易;
2.趋势线上穿主趋势线买入做多,趋势线下穿主趋势线卖出做空!
3.其他意义,请各位自己漫漫体会。



N参数设置   1    200   53

SJTJ:=DATE<1590301;
主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK4;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)COLORBLUE,LINETHICK4;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA AND SJTJ,H,L,0,0),COLORRED;
STICKLINE(AA AND SJTJ,O,C,3,1),COLORRED;
STICKLINE(AA AND SJTJ AND DD,O,C,3,0),COLORRED;
STICKLINE(BB AND SJTJ,H,L,0,0),COLORGREEN;
STICKLINE(BB AND SJTJ,O,C,3,1),COLORGREEN;
STICKLINE(BB AND SJTJ AND DD,O,C,3,0),COLORGREEN;
STICKLINE(BB AND SJTJ AND CC,H,L,0,1),COLORYELLOW;
STICKLINE(BB AND SJTJ AND CC,O,C,3,1),COLORYELLOW;
STICKLINE(BB AND SJTJ AND CC AND DD,O,C,3,0),COLORYELLOW;
STICKLINE(AA AND SJTJ AND CC1,H,L,0,0),COLORYELLOW;
STICKLINE(AA AND SJTJ AND CC1,O,C,3,1),COLORYELLOW;
STICKLINE(AA AND SJTJ AND CC1 AND DD,O,C,3,0),COLORYELLOW;

{使用说明}
DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,'看盘说明:'),COLOR00C5FF;
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,'1.红K主力做多,蓝K主力做空;黄K是一种变盘信号,小散只能选择出红K来交易;'),COLORD6BA63;
DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,'2.趋势线上穿主趋势线买入做多,趋势线下穿主趋势线卖出做空!'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.20,0.01,1,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.30,0.01,1,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.70,0.01,1,GNBLOCK),COLORWHITE;

{均线4}
AAA:=EMA((C+O+50*H+L)/N,4);
趋势线:EMA((C+O+H+12*L)/15.2,4);
IF(C>趋势线,趋势线,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(H<AAA,AAA,DRAWNULL),COLORWHITE,LINETHICK2;
IF(C<趋势线,趋势线,DRAWNULL),COLORWHITE,DOTLINE;

最新价:IF(SJTJ, C,DRAWNULL),LINETHICK0,COLORYELLOW;


股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式