HELP!! i need a scripte for pair trading

 
hi guys i need a scripte to importe GBPUSD price and stock it in Pair1 and import price of EURUSD and stock it in Pair 2 
can some one help me
Reason: