There's reason behind why conditional order in Excel demo does not work in real trading
The code is basically a dead loop that checks the condition to submit the order constantly. This loop interferences with what else it is going on in Excel.
The better logic would be that when market changes, it triggers the condition check, etc.
The check also needs to be aware of any changes and skip the check while the changes are being made, so it won't submit order inadverdently.