Replies

sartsartsart
03 Feb 2017, 00:03

RE:

sartsarsart said:

I'really beginner...

Bot works on EURUSD, in one or other way i get as string _symbol = "GBPUSD (as example),

how to open position not on current Symbol but on my _symbol   ?

 

Regards,

Sart

well, i found answer already, here:

Trading multiple symbols

Robots in cAlgo can execute orders for different symbols. To do this, the robot must request the needed symbol by its code. Then, it will be possible to use it in a trade request:

?

1

2

 Symbol symbol = MarketData.GetSymbol("GBPCHF");

 ExecuteMarketOrder(TradeType.Buy, symbol, 10000);

 


@sartsartsart