Modify a Position if the Price Hits a Certain Level (Execute on Trading Server Side)

 

Hi Community!

I would like to know if it is possible for a position's attribute (lot size, stop loss, take profit, etc.) to be modified if the current price hits my target threshold, but then execution happens on server side? I am fully aware of letting the EA constantly monitor the current price with OnTick() and then modifying the position using a function. However, I wonder if we can emulate something like a Pending Order, where execution happens on Trading Server side, but instead of placing a position upon price hit, a currently placed position is to be modified instead. This way, disturbance in internet connection will not hinder the position modification.

Any help would be greatly appreciated. Thanks!

Reason: