DanielManahan
Member
I want to plot the change from the current candle from the price at the previous day's close. similar to how the watchlist column "MarkChange"
declare lower;
input getTicker1 = "";
def Agg1 = AggregationPeriod.DAY;
def changeTicker1 = close(Period = Agg1, getTicker1)[1] - close(getTicker1);
plot data1 = changeTicker1;
plot line1 = 0;
I am getting an error
declare lower;
input getTicker1 = "";
def Agg1 = AggregationPeriod.DAY;
def changeTicker1 = close(Period = Agg1, getTicker1)[1] - close(getTicker1);
plot data1 = changeTicker1;
plot line1 = 0;
I am getting an error