I'm trying to look at the account value of my live account within a strategy but for some reason it's not recognizing my account even though I type it in exactly as it's listed in my Accounts tab of the Control Center.
I'm using the below code and when I use SIm101 or Sim102 (another sim account I created), it works fine but when I try to use my live account, it defaults to Sim101 instead.
lock (Account.All)
myAccount = Account.All.FirstOrDefault(a => a.Name == "Sim101");
Any ideas on how to make this work? Do I need to type my live account differently?
Thanks,
Fiddich
Comment