How to call an other instrument price inside a robot ?

Created at 13 Nov 2014, 17:58
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
EM

emonnier

Joined 10.11.2014

How to call an other instrument price inside a robot ?
13 Nov 2014, 17:58


Hello,

How can I from a robot linked to one pair, call the las price of another pair.

In a wider sens, how to  implement a code for pair trading or basket trading ?

Thank you


@emonnier
Replies

Spotware
14 Nov 2014, 17:27

You can obtain symbol object by invoking MarketData.GetSymbol method.

Symbol object contains Bid and Ask properies. You can also use that symbol object in trading functions such as ExecuteMarketOrder.


@Spotware