該指標能較好的反應走勢趨勢。用在日線,當指標值接近±0.1時,一般情況下都接近短期頂或底了,配合MACD判斷較好。日線、60分、30分、5分組合看更好。
是大智慧L2、飛狐、同花順的源碼。通達信的在下面。
{動向流 參數(shù)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;
通達信的源碼:
{動向流 參數(shù)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;