Bug in cTrader: Method not found: 'Int32 cAlgo.API.Internals.IAccount.get_Number()'.

Created at 23 Jun 2014, 14:23
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!
bachapk's avatar

bachapk

Joined 20.03.2014

Bug in cTrader: Method not found: 'Int32 cAlgo.API.Internals.IAccount.get_Number()'.
23 Jun 2014, 14:23


Hi

I have a function in Bot:

if (specifiedaccount == true && Account.Number != allowedaccount)
            {
                Informer("Invalid Account Number!! Please contact bachapk@gmail.com");
                Stop();
            }

With the above code I am getting following error on cTrader .. Remember that it is running fine on cAlgo.

23/06/2014 11:19:24.419 | Swabi_1, EURUSD, m1 | Crashed in OnTick with MissingMethodException: Method not found: 'Int32 cAlgo.API.Internals.IAccount.get_Number()'.

 

I guess it is a bug in cTrader platform. Please take actions as soon as possible or advise.

 

Bacha


@bachapk
Replies

Spotware
23 Jun 2014, 14:29

Account.Number property was added in cAlgo/cTrader version 1.23. Probably you created your cBot in cAlgo 1.23, but trying to run it in cTrader 1.21. We plan to update all environments to 1.23 version during this week.


@Spotware