//this is an open source code and strictly for educational purpose // the concept is to identify when the moving average is sloping upward or when the moving average is sloping downward //since there are various ways to generate signal from moving average but the slope of moving average has much weight of evidence we are using the slope //THE IDEA IS SIMPLE TO REMAIN RIGHT SIDE OF THE TREND