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:
This website uses cookies to enhance site navigation, analyze site usage, and assist in our marketing efforts. By clicking “Accept All” you are providing your consent to our use of all cookies. Alternatively, please provide your choice by pressing “Customize Cookies”. For more information, please read our Privacy policy
sartsartsart
03 Feb 2017, 00:03
RE:
sartsarsart said:
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