perroveloz
New member
hi, I have a label with a % cahnge on my Days grid but it only works when market is open and i need it to work in pre market to have the gap, i need help to have the close (in minutes)
this is the code that I have
input period = AggregationPeriod.DAY;
def changeC = ((close(period = period)[0]-close (period = period)[1])/close(period=period)[1])*100;
AddLabel (yes, "%Chg: " + Round(changeC, 2) + "%", COLOR.GRAY);
thanks in advance
this is the code that I have
input period = AggregationPeriod.DAY;
def changeC = ((close(period = period)[0]-close (period = period)[1])/close(period=period)[1])*100;
AddLabel (yes, "%Chg: " + Round(changeC, 2) + "%", COLOR.GRAY);
thanks in advance