Moving Average Slope Code

 

I need a code for MT5 that measures the slope of a Moving Average and opens trades when the slope is "X" number of points

above or below the MA  horizonal or zero line.

Files:
buy_slope.jpg  159 kb
 
  1. You can get the slope: m=ΔPrice÷ΔTime (or ΔPrice÷Δindex.)

  2. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help (2017)