An Algorithmic Trading Strategy must have the following key components
Technical Indicators
Simple Moving AverageSyntax:sma(parameter,n)
As the name, it gives the average of the parameter for the last n values of the parameter.It is called moving average because it is calculated at…