everget

[RESEARCH] Rate of Change

Hello traders and developers!

I was wondering how built-in "roc" function in Pine is defined and calculated so I made a little research.

I examined 4 samples:
1) "roc" function itself
2) "roc" according to its description
3) price change ratio
4) price percent change ratio

The results of the first and fourth samples are identical.

So, TV built-in roc (source, length) = 100 * change(source, length) / source.
And it's description is incorrect.

If you didnt know it - now you know it.

Good luck!
Remove from Favorite Scripts Add to Favorite Scripts
A list of Free indicators: https://bit.ly/2S7EPuN
A list of Paid indicators: https://bit.ly/2SQOhDF

Tip Jar
BTC, BCH: 1FkyXRuR3wDjH1PrPAgvNVMaDoupJQZXi7
ETH, LINK:
0x2393f8a932828ef0274ebbc4f873152837d3ab5b
QTUM:
Qb6YXy3FitoMvevWpTHFtbomiXcS8YVSdi
I was blind, now I see... :) thanks brother
+1 Reply
everget Daveatt
@Daveatt, not at all)
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out