byteboi

Relative Derivative

A great way to measure the power of buyers and sellers is to look at the rate of change of the price. If the price raises very fast, buyers have the upper hand in the market. If the price drops very fast, sellers are stronger. However, things get interesting when prices start to change at a slower rate. When the rate at which price falls goes to zero, sellers are weak and there tends to be a major uptrend coming. When the rate at which prices move up goes to zero, usually prices fall off a cliff.

This decline in rate of change can sometimes be quite hidden and hard to spot. To get a better view on these events, I wrote a simple script that takes the rate of change (derivative) of the price.

But taking the derivative alone has a flaw: say, for example, the price of an asset raises form $2 to $4 within 1 bar. This will give us a big rate of change. If we now look at an asset whose price surges from $50 to $100, the rate of change would be even bigger. This is not useful when you're comparing the two assets, because both events would give you a growth of %100 but it's rate of change values differ.

To compensate for this, I divided the rate of change by the current price. Also I added an SMA so it's possible to smooth out the signal so spotting patterns will be easier.

Patterns to look for: - the RD converges to zero from the upside: buyers get weaker -> price drop
- the RD converges to zero from the downside: sellers get weaker -> price rise
- all patterns that you would normally look for on the RSI: divergence, support/resistance

Always be sure to use this in combination with other indicators so you won't fall for false or vague signals.

Thanks for reading and good luck trading everyone!
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?