MetaTrader4 - Is there a way to stop incoming ticks while I process?

Hello all!

I have an EA that does a lot of processing, and I’m missing trade entries due to new ticks coming in and interrupting my processing. I trade only at the beginning of a bar, and if I’m interrupted…I wait until the next bar. I guess I can set flags to indicate what I’ve finished and pick up from there on the next tick…but I’d rather just shut off incoming ticks until I’m finished. Is there a way to do this?

Thanks in advance,
Robert