draw the recent days high/low on a daily chart at the close of the PM market activity

csmith8044

New member
Happy New Year Everyone! I have read through several post and have been unable to locate the code that simply draws the recent days high/low on a daily chart at the close of the PM market activity. Because of my work schedule I start my chart analysis in the evening (around 8pm) and have been manually drawing the high/lows on several charts which is very time consuming. If possible, can the lines extend to right to minimize clutter. Thanks in advance for any assistance provided.
 
Solution
Happy New Year! If you just want the previous day highs and lows it is a pretty simple script. See code below.

I also monitor the globex H/L if you want that code but I am pretty sure you can find it here.

Here is the shared chart. http://tos.mx/SkShhnc

The strat on this set up - We have been stuck in balance. Market Profile Theory is "Balance Leads to Excess". On the previous day and in the globex session we popped hard. Then had a waterfall dump into demand on the open. We made a higher low after getting extended (Use your favorite method here - oscillator, price action, exhaustion, etc.) The moving averages crossed. Now you can start to look for a buy the dip. I was watching for continuation and adds on a break of the...
Happy New Year! If you just want the previous day highs and lows it is a pretty simple script. See code below.

I also monitor the globex H/L if you want that code but I am pretty sure you can find it here.

Here is the shared chart. http://tos.mx/SkShhnc

The strat on this set up - We have been stuck in balance. Market Profile Theory is "Balance Leads to Excess". On the previous day and in the globex session we popped hard. Then had a waterfall dump into demand on the open. We made a higher low after getting extended (Use your favorite method here - oscillator, price action, exhaustion, etc.) The moving averages crossed. Now you can start to look for a buy the dip. I was watching for continuation and adds on a break of the previous HOD. Then we had a break of the opening candle and even cracked the weekly open. Hope this helps.


Code:
#Plots RTH only High/Low
input OpenRangeMinutes = 5;
input MarketOpenTime = 0930;
input ShowTodayOnly = yes;

def Today = if GetDay() == GetLastDay() then 1 else 0;

#Plot yesterday's high / low
plot Yhigh = if ShowTodayOnly and !Today then Double.NaN else high(period = "day" )[1];
plot Ylow = if ShowTodayOnly and !Today then Double.NaN else low(period = "day" )[1];

Yhigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Yhigh.SetDefaultColor(Color.UPTICK);
Yhigh.SetLineWeight(2);
Ylow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Ylow.SetDefaultColor(Color.DOWNTICK);
Ylow.SetLineWeight(2);
 
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
472 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