im hoping someone can help me. im using the following thinkscript. im using the TD version of TOS. i log on with one user/password and am able to see all my accounts. when im on ALL ACCOUNTS, this code shows the net liq on the chart for that all accounts summed together. this worked well forever. in the past week, i noticed NaN show up when ALL ACCOUNTS. i thought it was a glitch, but a week later, its still the same. i have localized it to ONE account in particular. all other accounts work ok on their own. i have tried creating a new study with this code to see if it works and removed all other studies. no luck. TD customer support is helping me as well but they are baffled and no solutions yet. anyone else have ideas that can help me?
def qty = GetQuantity();
def net_liq = qty * close;
AddLabel(yes, "Net Liq Position:" + AsDollars(value = net_liq), color = Color.Blue);
def qty = GetQuantity();
def net_liq = qty * close;
AddLabel(yes, "Net Liq Position:" + AsDollars(value = net_liq), color = Color.Blue);