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