MTF Opening Price Labels?

Hustle

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!
 
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.
#month
plot MonthOpen = HighestAll(if IsNaN(close[-1]) and !IsNaN(close) and GetMonth() == GetLastMonth()
then open(period = AggregationPeriod.MONTH)
else Double.NaN);
MonthOpen.SetLineWeight(2);
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() );
#
#week
plot weekOpen = HighestAll(if IsNaN(close[-1]) and !IsNaN(close) and GetWeek() == GetLastWeek()
then open(period = AggregationPeriod.WEEK)
else Double.NaN);
weekOpen.SetLineWeight(2);
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;
 
here's something for QTR if interested.
#quarter red or green
#input length = 14;

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

#currentATR.Hide();

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 Color.pink);
AddLabel(1, "QTR", labelColor.takeValueColor() );
#AddLabel(1, "QTR = " + openprice, labelColor.takeValueColor() );
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Thread starter Similar threads Forum Replies Date
I MTF Average Daily Close Line Questions 2
D MTF Stoch Signals Questions 0
B MTF Previous Week Open / Close Questions 1
P MTF Stacked Averages? Questions 0
S MTF Shaded EMA Questions 4

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
401 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top