OPEN-SOURCE SCRIPT
MAHQuant_IND_WeeklyDailyHL_v1.0

MAHQuant Weekly & Daily High-Low Levels
A professional price action indicator that automatically draws the previous week's and day's High/Low levels, as well as the current week's (Monday-Wednesday) range. It also includes a candle comparison feature to detect potential reversal signals.
๐ง HOW IT WORKS:
Weekly Levels (Previous Week):
โข Retrieves the highest and lowest prices from the previous full trading week using request.security("W", ...)
โข Draws horizontal lines at those levels
โข Includes adjustable percentage offsets to create buffer zones
โข Labels display the exact price value
Daily Levels (Previous Day):
โข Retrieves the highest and lowest prices from the previous trading day using request.security("D", ...)
โข Draws horizontal lines at those levels
โข Includes adjustable percentage offsets
โข Labels display the exact price value
Current Week Levels (Monday - Wednesday):
โข Tracks the high and low from Monday, Tuesday, and Wednesday separately
โข After Wednesday close, calculates the highest high and lowest low among these 3 days
โข Draws a single range line for the entire current week
โข Extends to the right for forward-looking reference
Candle Comparison Logic:
โข Compares the current candle's wick size to the previous candle's wick size
โข Identifies when the current candle is opposite in direction (e.g., red after green)
โข Highlights when the current candle's wick is larger than the previous candle's wick
โข This helps spot potential rejection or reversal patterns
Bar Coloring Logic:
โข Green: Bullish candle with large body and high volume
โข Light Green: Bullish candle with small body or low volume
โข Red: Bearish candle with large body and high volume
โข Orange: Bearish candle with small body or low volume
โ๏ธ HOW TO USE:
1. Set your broker's timezone in the "Timezone" input
2. Toggle Weekly/Daily/Current Week levels on/off
3. Adjust the offset percentages to create buffer zones
4. Enable "Candle Comparison" to spot rejection signals
โ ๏ธ DISCLAIMER:
This script is for educational purposes only. Not financial advice. Past performance does not guarantee future results.
๐ VERSION: 1.0 | DEVELOPER: MAHQuant | UPDATED: August 2026
๐ Special thanks to Mr. Amirreza Arya for his valuable educational insights that inspired this tool.
A professional price action indicator that automatically draws the previous week's and day's High/Low levels, as well as the current week's (Monday-Wednesday) range. It also includes a candle comparison feature to detect potential reversal signals.
๐ง HOW IT WORKS:
Weekly Levels (Previous Week):
โข Retrieves the highest and lowest prices from the previous full trading week using request.security("W", ...)
โข Draws horizontal lines at those levels
โข Includes adjustable percentage offsets to create buffer zones
โข Labels display the exact price value
Daily Levels (Previous Day):
โข Retrieves the highest and lowest prices from the previous trading day using request.security("D", ...)
โข Draws horizontal lines at those levels
โข Includes adjustable percentage offsets
โข Labels display the exact price value
Current Week Levels (Monday - Wednesday):
โข Tracks the high and low from Monday, Tuesday, and Wednesday separately
โข After Wednesday close, calculates the highest high and lowest low among these 3 days
โข Draws a single range line for the entire current week
โข Extends to the right for forward-looking reference
Candle Comparison Logic:
โข Compares the current candle's wick size to the previous candle's wick size
โข Identifies when the current candle is opposite in direction (e.g., red after green)
โข Highlights when the current candle's wick is larger than the previous candle's wick
โข This helps spot potential rejection or reversal patterns
Bar Coloring Logic:
โข Green: Bullish candle with large body and high volume
โข Light Green: Bullish candle with small body or low volume
โข Red: Bearish candle with large body and high volume
โข Orange: Bearish candle with small body or low volume
โ๏ธ HOW TO USE:
1. Set your broker's timezone in the "Timezone" input
2. Toggle Weekly/Daily/Current Week levels on/off
3. Adjust the offset percentages to create buffer zones
4. Enable "Candle Comparison" to spot rejection signals
โ ๏ธ DISCLAIMER:
This script is for educational purposes only. Not financial advice. Past performance does not guarantee future results.
๐ VERSION: 1.0 | DEVELOPER: MAHQuant | UPDATED: August 2026
๐ Special thanks to Mr. Amirreza Arya for his valuable educational insights that inspired this tool.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Telegram: t.me/MAHQuantTradingSystem
TikTok: tiktok.com/@mahquant?_r=1&_t=ZS-99XOUB9EXLw
TikTok: tiktok.com/@mahquant?_r=1&_t=ZS-99XOUB9EXLw
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Telegram: t.me/MAHQuantTradingSystem
TikTok: tiktok.com/@mahquant?_r=1&_t=ZS-99XOUB9EXLw
TikTok: tiktok.com/@mahquant?_r=1&_t=ZS-99XOUB9EXLw
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.