Its worked for 2 years, and recently it has stopped giving me a reliable position and total cost
Any thoughts?
Any thoughts?
Code:
def qty = GetQuantity();
def openCost = qty * GetAveragePrice();
def netLiq = qty * close;
def positionQuantity = GetQuantity();
AddLabel(yes, "Current Position Quantity: " + positionQuantity, Color.WHITE);
addlabel(yes, "cost: " + opencost, color.white);
Last edited by a moderator: