can''t use execute order in 3.5 (only in 3.3 mode)

Created at 07 Mar 2019, 09:40
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!
TO

TonNcie

Joined 23.01.2019

can''t use execute order in 3.5 (only in 3.3 mode)
07 Mar 2019, 09:40


What am i doing wrong here?
result1 is the 3.5 way

result 2 & 3 are the previous way which is deprecated.

TradeResult Result1 = ExecuteMarketOrder(TradeType.Buy, Symbol.Name, 1, "jo", 1, 1, 1);
TradeResult Result2 = ExecuteMarketOrder(TradeType.Buy, this.Symbol, 1, "jo", 1, 1, 1);
TradeResult Result3 = ExecuteMarketOrder(TradeType.Buy, Symbol, 1, "jo", 1, 1, 1);
       


@TonNcie
Replies

PanagiotisCharalampous
07 Mar 2019, 09:48

Hi El Antonio,

Here is the correct way

            TradeResult Result1 = ExecuteMarketOrder(TradeType.Buy, Symbol.Name, 1, "jo", 1, 1, "1");
            TradeResult Result2 = ExecuteMarketOrder(TradeType.Buy, this.Symbol, 1, "jo", 1, 1, 1);
            TradeResult Result3 = ExecuteMarketOrder(TradeType.Buy, Symbol, 1, "jo", 1, 1, 1);

Best Regards,

Panagiotis


@PanagiotisCharalampous