pigfetch17 1 posts msg #147093 - Ignore pigfetch17 | 
3/27/2019 10:56:58 AM
  I want a filter that will show a turn in the MACD slow line(5,20) from up sloping to down sloping or from down sloping to up sloping over a given time period (10, 20, 30 days) etc.
 
 For a turn from down sloping to an up sloping line I've come up with two possibilities:
 
 and the MACD slow line(5,20) is above .01
 and the MACD slow line(5,20) 20 days ago is below .-01 
 
 or
 
 and the 3 day slope of the MACD slow line(5,20) is above .01
 and the 3 day slope of the MACD slow line(5,20) 20 days ago is below .-01
 
 For a turn from up sloping to down sloping:
 
 and the MACD slow line(5,20) is below .01
 and the MACD slow line(5,20) 20 days ago is above .-01
 
 or
 
 and the 3 day slope of the MACD slow line(5,20) is below .01
 and the 3 day slope of the MACD slow line(5,20) 20 days ago is above .-01
 
 These seem to work most of the time but I sometimes get bad results.  I hope I have all the above and below and .01 and .-01 etc. in right places in the formulas.
 
 If anyone has any insight to what I have already come up with or a different approach, it would be appreciated. 
 
 
  | 
graftonian 1,089 posts msg #147099 - Ignore graftonian | 
3/27/2019 5:01:45 PM
  It is fairly easy, just remember you want to control the slope, not the line, ie:
 slope of MACD crosses below 0, or slope of MACD approaching 0 from below (or above)
 
  |