accutrades_net

Directional Movement Index FLEX

A common problem experienced by short term traders using DMI/ADX is that the session breaks results in carry-over effects from the prior session. For example, a large gap up would result in a positive DMI, even though momentum is clearly negative. Note the extremely different results in the morning session, when the gap is reversed.

The DMI-FLEX algoritm resets the +DI and -DI values to the prior session ending midpoint, so that new momentum can be observed from the indicator. (Note for Pinescript coders: rma function does not accept series int, thus the explicit pine_rma function)

DMI-FLEX has the added feature that the ADX value, instead of a separate line, is shown as shading between the +DI and -DI lines, and the color itself is determined by whether +DI is above -DI for a bullish color, or -DI is above +DI for a bearish color.

DMI Flex also gives you the flexibility of inverse colors, in case your chart has inverted scale.

Summary and How to use:
1) Green when +DI is above -DI
2) Red when -DI is above +DI
3) Deeper shading represents a higher ADX value.



开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?