CTrader 3.5 error

Created at 17 Jul 2019, 21:32
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!
EL

eliezer_barros

Joined 21.12.2018

CTrader 3.5 error
17 Jul 2019, 21:32


My bots is running well, but this message appear in this version. Please, how I can solve?

 

Error CS0618: 'cAlgo.API.Robot.ExecuteMarketOrder(cAlgo.API.TradeType, cAlgo.API.Internals.Symbol, double, string, double?, double?)' is obsolete: 'Parameter 'Symbol symbol' was replaced with 'string symbolName'.

 

routine......

  ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeToOpenOrders, "", StopLoss, TakeProfitInPips);


@eliezer_barros
Replies

PanagiotisCharalampous
18 Jul 2019, 09:13

Hi Eliezer,

Try this

ExecuteMarketOrder(TradeType.Buy, Symbol.Name, VolumeToOpenOrders, "", StopLoss, TakeProfitInPips);

Best Regards,

Panagiotis


@PanagiotisCharalampous