Coding help needed for currency pair trading?

i have a strategy .

NRML buy at a given LTP for a particular script


intraday BO SHORTING at same LTP of the same given script .

can anyone help please ?

Pi or Amibroker doesnt supports pair trading, you have to create your API with R Programming or Python.

can u please explain in more detail ???