How may I graph the percent change from yesterday's close?
This is what I have so far:
I am trying to graph the change on an intraday basis, ie. on 5 min chart.
I think the aggregation period is messing up the graphing.
How may I go around this issue?
This is what I have so far:
Code:
input symb = "SPX";
def yestclose = close(symb, AggregationPeriod.DAY)[1];
def close = close(symb);
def percchange = ( (close - yestclose) / yestclose) * 100;
plot data_percchange = percchange;
I am trying to graph the change on an intraday basis, ie. on 5 min chart.
I think the aggregation period is messing up the graphing.
How may I go around this issue?