Ok mrtools
Let us make it easy and do it when the line color of linear regression value changed similar to the attached graph and if it is possible to add arrows at the same occasion will be kind from you but it is depending on your time Ps
By the way the setting in the graph is period = 80, filter = 2, and filter period is 50, it is for XAUUSD