This is by no means a good strategy and frankly I'm a bit surprised it worked at all. That being said I am still new to coding, this is my first algo, and didnt know if anyone had any suggestions for how i set it up. Not so concerned with the strategy itself as its not something i ever plan to use. I was also curious about why when I run this on the minute data I get no trades at all. I imagine its something simple so even just a point in the right direction on where to find an example of how to fix would be greatly appreciated. thanks for any help