Referencing pairs to trade others

Posted By: Jettison

Referencing pairs to trade others - 07/22/16 10:38

Hi all,

I am trying to create a strategy that references certain pairs, and then based on that information, trade others appropriately. I have done a bit of digging through the manual and found this for basket trading and synthetic assets, but I'm not sure that it is what I'm after.

var priceUSD()
{
var p = 0;
asset("GBP/USD"); p += price();
asset("AUD/USD"); p += price();
asset("EUR/USD"); p += price();
return p;
}

The problem I am having is that I'm not sure how to differentiate in my script how to simply reference a pair without actually trading it.

I am very new to coding in general, however please be as brutal as necessary.

Any help is much appreciated.
Posted By: jcl

Re: Referencing pairs to trade others - 07/22/16 15:04

Your example is correct. For referencing a pair, just call asset().
Posted By: boatman

Re: Referencing pairs to trade others - 07/24/16 11:37

But don't forget to switch the asset back to the one you want to trade once you're done with your referencing!

And welcome to the forums!
© 2024 lite-C Forums