dmaxtrader99
New member
labels help %change day, week, month, year, qty, p/l open
i have them on a watch list but i would like to make them as labels on the chart ill post watch code if that helps
def PChange = ((close - close[1])/close[1]);
Addlabel(1, aspercent(pchange),color.BLACK);
AssignBackgroundColor (if PChange > 0 then color.GREEN else if PChange < 0 then color.Red else color.gray);
watch list code i use and ill change the time frame for week month and year
qty code i use cant find p/l open code
def qty = GetQuantity();
AddLabel (!isnan(qty), "Quantity: " + qty, if qty > 0 then color.GREEN else if qty < 0 then color.Red else color.gray);
i have them on a watch list but i would like to make them as labels on the chart ill post watch code if that helps
def PChange = ((close - close[1])/close[1]);
Addlabel(1, aspercent(pchange),color.BLACK);
AssignBackgroundColor (if PChange > 0 then color.GREEN else if PChange < 0 then color.Red else color.gray);
watch list code i use and ill change the time frame for week month and year
qty code i use cant find p/l open code
def qty = GetQuantity();
AddLabel (!isnan(qty), "Quantity: " + qty, if qty > 0 then color.GREEN else if qty < 0 then color.Red else color.gray);