Looking for script move price of buy limit orders with the variable spread

 

looking for script move price of buy limit orders with the variable spread

if you are going to make a buy limit order for gbp/usd from 1.6165 and the spread while you making the buy limit order was 4 pips so you will make the buy limit order at 1.6169 but if the spread change from 4 pips to 10 pips you will need to change your buy limit order to 1.6575 but if you were not at the metatrder platform while the spread was increasing you will miss the chance so i think script can solve this situation