With following code in a study the value of AccountID stays empty.
Code: Select all
variables:
AccountID("");
AccountID=GetAccountID();
Print("AccountID:",AccountID);
Code: Select all
variables:
AccountID("");
AccountID=GetAccountID();
Print("AccountID:",AccountID);
Does it work when you have auto-trading on and a strategy applied to the chart?GetAccountID() will return "DU34567" if the account number which is used for auto trading on the chart, where the strategy is applied, is DU12345.
Thanks a lot Josh,Hm, that should work. According to the help:
Does it work when you have auto-trading on and a strategy applied to the chart?
Hello Lobo Trader,Hello
would one friendly supporter please inform , where to find the respective manual which describes all "account & Positions" - functionality or include some/any code examples ? Still asking even though I am aware of EL Essentials Prg´s Guide and Pages 96 onwards . Is there information available which leads beyond ?
Keywords such as "GetBDAccountEquity" and others are recognised in my PL-editor but do not compile or is it me doing a mistake ?
Thanks
Lobo