There are 2 assets lets say A & B
These assets are almost always at a 100% negative correlation. However, percentage wise they don’t always move equally so when B moves down 1%, A might sometimes move up 1% but most of the times lets say it moves 1.3 or 0.8
I want to compare the movements of these 2 assets percentage wise. When A moves up more than B goes down, I want an upward movement indicating icon below the candle on A & the greater the difference the greater the size or brighter the color or something similar so one can also assess the strength of the trend.
Same for the downside movements as well. When A moves down more than B goes up a downward movement indicating icon above the candle on A & the same greater the difference, greater the size or something similar principle above so the strength of the trend is visible.
When the movements of B is on par or below the movements of A the indicator prints nothing.
Can somebody please help me out or at least give ideas?
Subscribed to a module that allows me to backtest strategies without code & helps me better understand how the code works but just getting in to this so didn’t go that far.