Based on the request.
https://fxcodebase.com/code/viewtopic.php?f=27&p=147569The indicator plots the percent change of close price for the current symbol and a comparative symbol.
You can also plot SMA instead of raw percent change to add smoothness to the trend.
Objective: Analyze if the stock leads the index or if it is led by the index.