OPEN-SOURCE SCRIPT

MAHQuant_IND_WeeklyDailyHL_v1.0

363
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.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.