Check a slope of MACD in 3 bar is up trend

#1
Hi

if I need to check a slope of MACD in 3 bar before buying point. (check if slope id up or down)

is there any function for it.

Please advice
 
#2
I am beginner so please forgive me if I turn into "captain obvious" here but :

you may check LinearReg, it gives you the slope.
ROC of the slope > 0 or < 0 would tell you whether slope is up or down.
 

Similar threads