I attempted at trading a list of equities but I was wondering if I am missing some pieces of code or if some things are not working in the code such as:

1. Is my code storing each securities' rolling window individually

2. Is the code buying the individual security when the specific pattern happens

3. Is the code issuing the stop loss and profit taking mechanism individually for each security?

4. What am I missing? What do I need to get rid of?

I know it is a complex code but my main points of emphasis are what I wrote above.

Author