该指标能较好的反应走势趋势。用在日线,当指标值接近 0.1时,一般情况下都接近短期顶或底了,配合MACD判断较好。日线、60分、30分、5分组合看更好。
是大智慧L2、飞狐、同花顺的源码。通达信的在下面。
{动向流 参数N:4,2,20}
动向流:(MA(CLOSE,2)-REF(MA(CLOSE,2),N))/REF(MA(CLOSE,2),N),colorFFFF00;
POLYLINE(1,MA(动向流,2)),colorFFFF00;
POLYLINE(1,MA(动向流,4)),ColorFFD800;
POLYLINE(1,MA(动向流,6)),ColorFFA600;
POLYLINE(1,MA(动向流,8)),ColorFF6800;
POLYLINE(1,MA(动向流,10)),ColorFF3800;
POLYLINE(1,MA(动向流,12)),ColorD1FF00;
POLYLINE(1,MA(动向流,14)),ColorABFF00;
POLYLINE(1,MA(动向流,16)),Color68FF00;
POLYLINE(1,MA(动向流,18)),Color3EFF00;
POLYLINE(1,MA(动向流,20)),ColorFF8CFF;
POLYLINE(1,MA(动向流,22)),ColorC88CFF;
POLYLINE(1,MA(动向流,24)),ColorC854FF;
POLYLINE(1,MA(动向流,26)),Color7354FF;
POLYLINE(1,MA(动向流,28)),Color7F00FF;
POLYLINE(1,MA(动向流,30)),Color0000FF;
通达信的源码:
{动向流 参数N:4,2,20}
动向流:(MA(CLOSE,2)-REF(MA(CLOSE,2),N))/REF(MA(CLOSE,2),N),COLORFFFF00;
PLOYLINE(1,MA(动向流,2)),COLORFFFF00;
PLOYLINE(1,MA(动向流,4)),COLORFFD800;
PLOYLINE(1,MA(动向流,6)),COLORFFA600;
PLOYLINE(1,MA(动向流,8)),COLORFF6800;
PLOYLINE(1,MA(动向流,10)),COLORFF3800;
PLOYLINE(1,MA(动向流,12)),COLORD1FF00;
PLOYLINE(1,MA(动向流,14)),COLORABFF00;
PLOYLINE(1,MA(动向流,16)),COLOR68FF00;
PLOYLINE(1,MA(动向流,18)),COLOR3EFF00;
PLOYLINE(1,MA(动向流,20)),COLORFF8CFF;
PLOYLINE(1,MA(动向流,22)),COLORC88CFF;
PLOYLINE(1,MA(动向流,24)),COLORC854FF;
PLOYLINE(1,MA(动向流,26)),COLOR7354FF;
PLOYLINE(1,MA(动向流,28)),COLOR7F00FF;
PLOYLINE(1,MA(动向流,30)),COLOR0000FF;