I was having difficulty seeing why one of my backtests was behaving as it was, and at some point decided to simply comment out every trade order - but it looked as if I was still sending orders. For this reason I removed line after line and function after function trying to find what was making the orders and have reduced everything down to the following code - I must be seriously misunderstanding something here as I cannot see how this is trading anything. Thanks in advance for your assistance:

Author