通达信主力做多副图指标
通达信主力做多副图指标
源码
MTM:=C-REF(C,1);
主力做多:100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12),COLORWHITE;
多空趋势线:MA(主力做多,6),COLORYELLOW;
能量:=主力做多-多空趋势线,COLORBLACK;
持仓:能量,COLORRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2.9,0)COLORRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2,0)COLORLIRED;
STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量,0,0.5,0)COLORWHITE;
STICKLINE( UPNDAY(能量,1)AND
STICKLINE( UPNDAY(能量,1)AND
STICKLINE( UPNDAY(能量,1)AND
STICKLINE( DOWNNDAY(能量,1),能量 ,0,2.9,0),COLORGRAY;
STICKLINE( DOWNNDAY(能量,1),能量,0,1,0),COLORLIGRAY;
STICKLINE( DOWNNDAY(能量,1),能量 ,0,0.5,0)COLORWHITE;
{DRAWICON(CROSS(主力做多,多空趋势线),多空趋势线,1);
DRAWICON(CROSS(多空趋势线,主力做多),多空趋势线,2);
}
DRAWICON(UPNDAY(能量,1)AND UPNDAY(主力做多,1) AND UPNDAY(多空趋势线,1),多空趋势线,1);
DRAWICON(CROSS(多空趋势线,主力做多),多空趋势线,2);
- 上一篇公式:通达信波段2副图指标
- 下一篇公式:通达信选股指标B副图指标