updated advanced trader & market trend classes to allow complete
convolution calculation as well coorect indexing.