Trying this Get Account call in a few places, but always returning zero.
I've read that it returns 0 for historical, so how do i get it to look at current?
protected override void OnBarUpdate()
{
Print(GetAccountValue(AccountItem.CashValue));
**************************
Output window is zero. I also have this inside my "if" statement that decides to take a trade, but zero there as well.
Can anyone point out what i'm doing wrong?
Cheers
Comment