Previous H/L MTF

cocojumbo

Member
Plus
I like to look at price action across multiple time frames to see where the price came from and manually draw the high and low points across the charts. This is pretty tedious if you are hunting and looking at bunch of stocks all the time and constantly..I saw a couple posts with previous day high low auto draw scripts and was wondering if anyone knows of a script or able to come up with something that would auto-draw previous multi frame High/Lows with an option to set a different color. For example I would like to insta-see previous month/week/day/ 1hr high low price points auto drawn when I pull up any given stock on a 15 min chart (I trade on 15min). Does such thing exist? Thanks for your help :)
 
Solution
@Fernwood Something like this...??? That's a starting point for you to work from...

3VBwtsU.png


Ruby:
# MTF_HIGH_LOW
# Created by rad14733 for usethinkscript.com
# Plots 15m, 1h, 1d, 1w, 1M Highs and Lows
# v1.0 : 2021-03-31 : Initial release

plot high15m = high(period = AggregationPeriod.FIFTEEN_MIN);
high15m.SetDefaultColor(Color.RED);

plot low15m = low(period = AggregationPeriod.FIFTEEN_MIN);
low15m.SetDefaultColor(Color.RED);

plot high1h = high(period = AggregationPeriod.HOUR);
high1h.SetDefaultColor(Color.ORANGE);

plot low1h = low(period = AggregationPeriod.HOUR);
low1h.SetDefaultColor(Color.ORANGE);

plot high1d = high(period = AggregationPeriod.DAY);
high1d.SetDefaultColor(Color.VIOLET);

plot low1d = low(period =...
@Fernwood Something like this...??? That's a starting point for you to work from...

3VBwtsU.png


Ruby:
# MTF_HIGH_LOW
# Created by rad14733 for usethinkscript.com
# Plots 15m, 1h, 1d, 1w, 1M Highs and Lows
# v1.0 : 2021-03-31 : Initial release

plot high15m = high(period = AggregationPeriod.FIFTEEN_MIN);
high15m.SetDefaultColor(Color.RED);

plot low15m = low(period = AggregationPeriod.FIFTEEN_MIN);
low15m.SetDefaultColor(Color.RED);

plot high1h = high(period = AggregationPeriod.HOUR);
high1h.SetDefaultColor(Color.ORANGE);

plot low1h = low(period = AggregationPeriod.HOUR);
low1h.SetDefaultColor(Color.ORANGE);

plot high1d = high(period = AggregationPeriod.DAY);
high1d.SetDefaultColor(Color.VIOLET);

plot low1d = low(period = AggregationPeriod.DAY);
low1d.SetDefaultColor(Color.VIOLET);

plot high1w = high(period = AggregationPeriod.WEEK);
high1w.SetDefaultColor(Color.GREEN);

plot low1w = low(period = AggregationPeriod.WEEK);
low1w.SetDefaultColor(Color.GREEN);

plot high1M = high(period = AggregationPeriod.MONTH);
high1M.SetDefaultColor(Color.CYAN);

plot low1M = low(period = AggregationPeriod.MONTH);
low1M.SetDefaultColor(Color.CYAN);

AddLabel(yes, "FIFTEEN_MIN", Color.RED);
AddLabel(yes, "HOUR", Color.ORANGE);
AddLabel(yes, "DAY", Color.VIOLET);
AddLabel(yes, "WEEK", Color.GREEN);
AddLabel(yes, "MONTH", Color.CYAN);
 
Solution

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
439 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