OPEN-SOURCE SCRIPT
ที่อัปเดต: X OHL

designed to plot significant levels—closed higher timeframe High, Low, Open, and an Equilibrium (EQ) level and current Open—on the current chart based on user-defined higher timeframes (HTFs). It helps traders visualize HTF price levels on lower timeframes for confluence, context, or decision-making.
Key Functional Components:
Configurable Inputs:
Visibility Toggles for:
How It Works:
For each selected timeframe:
Draws Horizontal Lines:
Labels:
Anchoring:
Lines and labels are redrawn on the start of each new HTF bar to ensure accuracy and relevance.
Key Functional Components:
Configurable Inputs:
- Four Timeframes: Customizable (default: 1H, 4H, D, W).
Visibility Toggles for:
- Previous High (pHigh)
- Previous Low (pLow)
- EQ (midpoint between high and low)
- Current Open
- Previous Open
How It Works:
For each selected timeframe:
- retrieves OHL Data
- Previous high/low (high[1], low[1])
- Current and previous open
- EQ is calculated as midpoint: (high + low) / 2
Draws Horizontal Lines:
- Lines are drawn from the candle where the HTF bar opens and extended until timeframe switch. Lines extends a few bars beyond current to assist in visualization
Labels:
- On the most recent bar, each level is labeled with a description (pHigh 1H, EQ 6H, etc.).
- Labels are customizable (size, color, background).
Anchoring:
Lines and labels are redrawn on the start of each new HTF bar to ensure accuracy and relevance.
เอกสารเผยแพร่
clean upเอกสารเผยแพร่
added fib levels equal to 0.5, 1.0, 1.5 of previous range applied from current Open. เอกสารเผยแพร่
Added feature to retain historical open for the third timeframe in the settings. เอกสารเผยแพร่
fixed image เอกสารเผยแพร่
clean up เอกสารเผยแพร่
added option for all historical opens for three of the timeframe optionsเอกสารเผยแพร่
clean up and fixed photoสคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน