Normally we have Moving average which is lagging indicator but in this script we have removed the lag and get signal upfront to maximize the profit and minimize the losses.
This is good for Entry purpose, for exit also it can be used but profit might be less. It is suggested to use one of the below method for exit
Target based
RSI divergence or
Price &...