Account.Currency is obsolete
Account.Currency is obsolete
23 Jun 2021, 19:15
Use Account.Asset.Name instead
But this
Print(Account.Asset.Name);
gives the follwing error on running the bot
Crashed in OnStart with MissingMethodException: Method not found: 'cAlgo.API.Asset cAlgo.API.Internals.IAccount.get_Asset()'.
Trying to use it anywhere else in the code just crashes the bot too but unhelpfully doesn't display this error...
I thought it might be a using that is missing but no idea what it should be and VS doesn't have any suggestions either
Thanks
Replies
Xammo
24 Jun 2021, 17:14
Hi Panagiotis
Ok thanks it is 4.1 I am trying it on but no problem I will just stick with the obsolete version and look at it again another day
(talking of 4.1 I have 3 VPS's - 2 with Beeks and 1 with NYC Servers - the NYC (IC Markets cTrader) and one of the Beeks (both TradeViewForex cTrader) have updated to 4.1 but the other Beeks is refusing to update and still on 4.0 - a couple of months back it was the opposite way around with the two Beeks VPS's in that one would update and the other wouldn't so it doesn't always seem to be broker related in terms of cTrader updating/I would never have known if I only had the one VPS that hadn't updated that the broker had already long since updated to the latest version...)
@Xammo
PanagiotisCharalampous
24 Jun 2021, 16:19
Hi frazertowns,
This parameter is new and available only in cTrader 4.1. You can use Account.Currency until 4.1 is released to all brokers.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous