Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to find out mathematically if two trends are showing in the same direction ?

https://imgur.com/a/6nNgUQR

The image looks like the above . If there are two trends , both trends are in the similar direction.

Mathematically how to determine if both the trends are in the similar direction or opposite?