OPEN-SOURCE SCRIPT
MIN OFFSET

This indicator plots the lowest value over a configurable lookback period, using a selectable price source (High, Low, Open, or Close). It is designed to provide a clear and stable reference for dynamic support levels, with the ability to apply a vertical price offset directly on the chart.
The offset allows the line to be shifted upward or downward based on the user-defined value, making it useful for:
Fine-tuning support zones
Defining entry and exit margins
Adapting levels to different trading styles
The indicator uses a single buffer, is lightweight, non-repainting, and fully compatible with any market and timeframe.
🔧 Inputs
Price: High / Low / Open / Close
Period: number of bars used to calculate the low
Offset: vertical price displacement
Positive values move the line upward
Negative values move the line downward
✅ Features
Single buffer (single plotted line)
Clean and thin line
Stable period-low calculation
Works on Forex, indices, stocks, and cryptocurrencies
Ideal as a dynamic support or structural price reference
The offset allows the line to be shifted upward or downward based on the user-defined value, making it useful for:
Fine-tuning support zones
Defining entry and exit margins
Adapting levels to different trading styles
The indicator uses a single buffer, is lightweight, non-repainting, and fully compatible with any market and timeframe.
🔧 Inputs
Price: High / Low / Open / Close
Period: number of bars used to calculate the low
Offset: vertical price displacement
Positive values move the line upward
Negative values move the line downward
✅ Features
Single buffer (single plotted line)
Clean and thin line
Stable period-low calculation
Works on Forex, indices, stocks, and cryptocurrencies
Ideal as a dynamic support or structural price reference
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน