ISSUE - ExecuteMarketOrder

Created at 03 Sep 2019, 09:54
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!
ctrader.guru's avatar

ctrader.guru

Joined 19.07.2018

ISSUE - ExecuteMarketOrder
03 Sep 2019, 09:54


Hi,

found a little bug ?!? ExecuteMarketOrder require string nameSymbol but if set to Symbol.Name ( string value ) get a error !

How fix ?

P.S. Forum notifications for replay post not work !

 


@ctrader.guru
Replies

PanagiotisCharalampous
03 Sep 2019, 09:58

Hi cTrader.Guru Team,

What error do your get? Which broker do you use? Can you share a cBot that we can use to reproduce the problem?

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctrader.guru
03 Sep 2019, 10:06 ( Updated at: 21 Dec 2023, 09:21 )


@ctrader.guru

PanagiotisCharalampous
03 Sep 2019, 10:11

Hi cTrader.Guru Team,

1) The cBot you sent builds fine.

2) If you change olny the Symbol.Name, you will get an error since there is no function with that signature. It seems you are using market range therefore you will need to use ExecuteMarketRangeOrder instead.

Best Regards,

Panagiotis


@PanagiotisCharalampous

ctrader.guru
03 Sep 2019, 10:20 ( Updated at: 21 Dec 2023, 09:21 )

Thanks !

 


@ctrader.guru