You haven't described how the trendlines will be drawn (the pic has zz knees that are skipped, or is it literally points 4-0 and 5-1?), what do minimum trendlines and parrallel ...
Not an mq4, just adding to what's already out. MA_Angle_ptsPerBar_or_Degree - plots the angle of a ma by points per bar or by degrees (note that degrees is based on xy coords and ...