MTF Opening Price Labels?



New member
Hello. Is it possible to have a thinkscript with Labels turning Green for Multiple Time Frames IF ABOVE their Current Opening Price?

Have the Labels Turn Green IF:
Above Current Month's Opening Price
Above Current Week's Opening Price
Above Current Day's Opening Price
Above Current 60 Min's Opening Price
Above Current 30 Min's Opening Price
Above Current 15 Min's Opening Price
Above Current 5 Min"s Opening Price

If a stock is above all of these opening prices, the stock is in full time frame continuity to the upside.

Thanks in advance!


New member
I picked this up from somewhere and tried to add time frames which I didn't do well. With that said, this will put month open and week open on the chart. Month and week labels are green when > open and red when < open. It sounds like you are a stratter. If so, there is a strat FB page that might help.
plot MonthOpen = HighestAll(if IsNaN(close[-1]) and !IsNaN(close) and GetMonth() == GetLastMonth()
then open(period = AggregationPeriod.MONTH)
else Double.NaN);
input price = close;
input length = 8;
input displace = 0;
plot labelColor = 0;
#labelname = "month open";
labelColor.AssignValueColor(if price >= MonthOpen then Color.GREEN else Color.PINK);
AddLabel(1,"Month Open = " + Monthopen, labelColor.takeValueColor() );
plot weekOpen = HighestAll(if IsNaN(close[-1]) and !IsNaN(close) and GetWeek() == GetLastWeek()
then open(period = AggregationPeriod.WEEK)
else Double.NaN);
input Wprice = close;
input Wlength = 8;
input Wdisplace = 0;
plot WlabelColor = 0;
WlabelColor.AssignValueColor(if price >= weekOpen then Color.GREEN else Color.PINK);
AddLabel(2, "Week Open = " + weekOpen, WlabelColor.TakeValueColor() );
input DurationHours = 1;


New member
Thank you! @desert_rat
here's something for QTR if interested.
#quarter red or green
#input length = 14;

#plot currentATR = reference ATR(length, averageType = AverageType.SIMPLE);


input aggregationPeriod = AggregationPeriod.QUARTER;
def openPrice = open(period = aggregationPeriod);
def closePrice = close(period = aggregationPeriod);
#AddLabel(yes, "Qtr",if closePrice > openPrice then Color.GREEN else Color.RED);
plot labelColor = 0;
labelcolor.AssignValueColor(if closeprice > openprice then Color.GREEN else;
AddLabel(1, "QTR", labelColor.takeValueColor() );
#AddLabel(1, "QTR = " + openprice, labelColor.takeValueColor() );
Thread starter Similar threads Forum Replies Date
H Turning an indicator into MTF? Questions 1
B Help me create Schaff MTF version Questions 2
H MTF ADX? Questions 2
H MTF Force Index Binary for ThinkorSwim Indicators 0
Pelonsax Help with MTF condition Questions 3

Similar threads