Oh, I'm very sorry. I did click on that site before, but I was only paying attention to the OnCalculate you indicated. I've always used the OnTick() function, (https://mybankinginformation.com/does-blue-apron-accept-ebt/) but I recently realised that it wasn't opening trades on running candles since I had another script waiting there for a candle close that I had previously written for another purpose and forgotten about. Anyway, I appreciate your time and assistance very lot.