PROTECTED SOURCE SCRIPT
[TehThomas] - Previous Day/Week/Month High, Low, Open, Close

This script is a powerful visual tool designed to automatically plot the key high, low, open, and close levels from the previous day, previous week, and previous month directly onto your active chart. These historical price levels are some of the most significant reference points for traders, often acting as natural magnets for price, areas of liquidity, or decision points where reversals, continuations, or fakeouts commonly occur.
Whether you’re a scalper working off intraday charts or a swing trader using higher timeframes, having these levels marked automatically keeps your chart structured and your strategy grounded in recent price behavior.
What This Script Displays on Your Chart
Once added to your chart, this script draws horizontal lines at the exact price levels where the previous day, week, and month ended or found their highs and lows. For each timeframe, you have full control over what’s shown, with toggle switches to enable or disable specific lines like:
Each level is color-coded, clearly labeled, and extended a set number of candles into the future so you can quickly identify which level is which. The labels are minimalist and clean, placed directly next to each line so they don’t distract from price action. This keeps your workspace visually organized without sacrificing context.
Why These Levels Are Important
These historical levels serve as psychological and technical anchors for the market. Traders and algorithms alike often react to the highs and lows of previous sessions, and open/close levels serve as polarity zones where support becomes resistance or vice versa.
Here are just a few practical uses:
By automatically drawing these reference points, the script helps traders stay objective, focus on structure, and avoid emotional trading decisions.
How It Works Behind the Scenes
At the core, the script tracks the most recent completed daily, weekly, and monthly candles. It records the high, low, open, and close of those time periods and scans recent price history to find the exact bar where those levels were printed. Once found, it draws clean, extendable horizontal lines from those points forward on your chart.
The script includes built-in cleanup logic to ensure that only the latest relevant levels are visible. Whenever new session data becomes available, it removes old lines and replaces them with updated levels so your chart stays clean and accurate without any manual effort. You can also adjust how far these lines extend into the future, change their width, and personalize the colors to match your charting style.
This makes it a fully automatic, no-maintenance tool that always keeps your chart aligned with current session structure.
Whether you're watching for stop hunts at the previous week's high, looking for reaction zones around the prior day's close, or simply want to align your bias with institutional reference points, this script delivers the clean structure and clarity you need to trade more confidently and effectively.
Special thanks to: meddymarkusvanhala
For helping me optimise the script for faster load times
Whether you’re a scalper working off intraday charts or a swing trader using higher timeframes, having these levels marked automatically keeps your chart structured and your strategy grounded in recent price behavior.
What This Script Displays on Your Chart
Once added to your chart, this script draws horizontal lines at the exact price levels where the previous day, week, and month ended or found their highs and lows. For each timeframe, you have full control over what’s shown, with toggle switches to enable or disable specific lines like:
- Previous Day High and Low
- Previous Day Open and Close
- Previous Week High and Low
- Previous Week Open and Close
- Previous Month High and Low
Each level is color-coded, clearly labeled, and extended a set number of candles into the future so you can quickly identify which level is which. The labels are minimalist and clean, placed directly next to each line so they don’t distract from price action. This keeps your workspace visually organized without sacrificing context.
Why These Levels Are Important
These historical levels serve as psychological and technical anchors for the market. Traders and algorithms alike often react to the highs and lows of previous sessions, and open/close levels serve as polarity zones where support becomes resistance or vice versa.
Here are just a few practical uses:
- Support and Resistance: Previous session highs and lows frequently act as strong areas where price reacts or consolidates.
- Liquidity Zones: These levels often sit just above or below pools of stop-loss orders, making them common targets for liquidity grabs.
- Market Context: Having previous opens and closes lets you see if price is trading above or below prior value areas, helping define bullish or bearish bias.
- Entry and Exit Planning: Knowing where major levels sit helps refine your entries, manage risk, or take partial profits at high-probability reversal areas.
By automatically drawing these reference points, the script helps traders stay objective, focus on structure, and avoid emotional trading decisions.
How It Works Behind the Scenes
At the core, the script tracks the most recent completed daily, weekly, and monthly candles. It records the high, low, open, and close of those time periods and scans recent price history to find the exact bar where those levels were printed. Once found, it draws clean, extendable horizontal lines from those points forward on your chart.
The script includes built-in cleanup logic to ensure that only the latest relevant levels are visible. Whenever new session data becomes available, it removes old lines and replaces them with updated levels so your chart stays clean and accurate without any manual effort. You can also adjust how far these lines extend into the future, change their width, and personalize the colors to match your charting style.
This makes it a fully automatic, no-maintenance tool that always keeps your chart aligned with current session structure.
Whether you're watching for stop hunts at the previous week's high, looking for reaction zones around the prior day's close, or simply want to align your bias with institutional reference points, this script delivers the clean structure and clarity you need to trade more confidently and effectively.
Special thanks to: meddymarkusvanhala
For helping me optimise the script for faster load times
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
𝟔 𝐘𝐄𝐀𝐑𝐒 𝐄𝐗𝐏𝐄𝐑𝐈𝐄𝐍𝐂𝐄𝐃 𝐓𝐑𝐀𝐃𝐄𝐑
💎 Free Signals
t.me/codeandcandle
✅ Best Crypto Propfirm 5% discount
bit.ly/Hyrotrader
🎁 Free trading Discord community
bit.ly/TehThomas
💎 Free Signals
t.me/codeandcandle
✅ Best Crypto Propfirm 5% discount
bit.ly/Hyrotrader
🎁 Free trading Discord community
bit.ly/TehThomas
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
𝟔 𝐘𝐄𝐀𝐑𝐒 𝐄𝐗𝐏𝐄𝐑𝐈𝐄𝐍𝐂𝐄𝐃 𝐓𝐑𝐀𝐃𝐄𝐑
💎 Free Signals
t.me/codeandcandle
✅ Best Crypto Propfirm 5% discount
bit.ly/Hyrotrader
🎁 Free trading Discord community
bit.ly/TehThomas
💎 Free Signals
t.me/codeandcandle
✅ Best Crypto Propfirm 5% discount
bit.ly/Hyrotrader
🎁 Free trading Discord community
bit.ly/TehThomas
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.