Figured it out ... here is the thinkscript: input period_Type = AggregationPeriod.DAY; def begin = open(period = period_Type); def end = close(period = period_Type); def NetChg = end - begin; def PctChg = (end / begin) - 1; AddLabel(yes, "%Chg Open: " + AsDollars(NetChg) + " " + AsPercent(PctChg), if NetChg > 0 then Color.GREEN else if NetChg < 0 then colorby captain597 - Trading Discussion
I currently have a Thinkscript for % change since close of previous day on a chart label. Is there a way to modify it so it shows % change since the open at 0930 ?? I can't figure it out. Here is my Thinkscript for % change since previous close: input length = 1; def price = close(period = AggregationPeriod.DAY); assert(length > 0, "'length' must be positive: " + length);by captain597 - Trading Discussion