1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
四邊圖 · 四邊獨立拖曳 · 斜線樣式 V10.12 provides independently draggable boundary handles for top, bottom, left, and right coordinates, alongside an optional moving-average baseline offset. Users can configure the number of horizontal and vertical cells, choose between multiple horizontal alignment engines, and optionally snap the right boundary to quarterly settlement dates. An auto-adaptation feature automatically detects when a new symbol is loaded to reset coordinates.
Multi-cell price and time grid overlay
Independently draggable four-edge boundaries
Multiple horizontal division and alignment engines
Quarterly settlement-date snapping and labeling
Moving-average baseline offset with auto-adaptation
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
水平相連格數
int
3
cols
垂直相連格數
int
1
rows
★ 水平分割引擎
string
★ 手柄優先(邊線貼實手柄 · 推薦)
xMode
★ 右邊跟結算日
bool
false
rightFollowSettle
對齊邊一季
string
第 1 季(本季)
settleQ
顯示結算日標籤
bool
true
settleLabel
吸附到該日的 K 棒
bool
true
settleSnap
結算星期幾
string
星期五
settleDow
第幾個
string
第 3 個
settleOcc
★ 頂邊價格 · 上下拖我
price
0.0
hTop
★ 底邊價格 · 上下拖我
price
0.0
hBot
★ 左邊日期 · 左右拖我
time
timestamp("2026-09-24T00:00:00")
hLeft
Show all 40 settings
Setting
Type
Default
Variable
★ 右邊日期 · 左右拖我
time
timestamp("2026-10-07T00:00:00")
hRight
★ 價格來源
string
★ 均價做起步(底 -%、頂 +%)
pxSrc
均價天數(日)
int
10
maDays
± 百分比(%)
float
20.0
maPct
★ 重設返均價起步(暫時唔理手柄)
bool
false
maForce
★ 整體上下移(% 均價)
float
0.0
maShiftPct
★ 用手柄接手(拖曳 · 唔理均價起步)
bool
true
maUseHandle
★ 自動適應新標的
bool
true
autoAdapt
適應門檻(% · 手柄值離現價超過此值就當係另一隻標的)
float
50.0
adaptPct
適應觸發時喺狀態標籤提示
bool
true
adaptShow
每格寬度(K 棒 / 日子)
int
60
cellBars
★ 自動高度(% · 方框總高 ÷ 現價)
float
2.0
autoHeightPct
水平位移(K 棒)
int
0
shiftXBar
垂直位移(% 格高)
float
0.0
shiftYPct
★ 啟用單格獨立位移(主開關)
bool
false
sepEnable
第 1 格 · 水平(%)
float
0.0
sep1X
垂直
float
0.0
sep1Y
第 2 格 · 水平(%)
float
0.0
sep2X
垂直
float
0.0
sep2Y
第 3 格 · 水平(%)
float
0.0
sep3X
垂直
float
0.0
sep3Y
第 4 格 · 水平(%)
float
0.0
sep4X
垂直
float
0.0
sep4Y
第 5 格 · 水平(%)
float
0.0
sep5X
垂直
float
0.0
sep5Y
顯示四邊手柄指示標籤
bool
false
showHandle
顯示原始大小虛線框
bool
false
showRef
顯示狀態標籤
bool
false
showInfo
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us
This overlay indicator finds pivot highs and lows on the price chart and compares the last two highs and the last two lows. When the percentage difference between a pair is below the Equal HL threshold, it treats them as equal levels and draws a box. Left and
This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale
This overlay indicator draws a fixed-range volume profile on the price chart, splitting traded activity into up and down volume at each price level. It also plots a sentiment profile, a developing point of control, and value-area high and low around a configur
The BZ-tracker indicator marks ARK Invest buy and sell transactions on stock charts with labels. It plots green labels for purchases and red labels for sales, each annotated with a multiplier such as X1 or X2 to show the number of ARK ETFs trading the stock on
This indicator fits a linear regression through stored pivot highs and lows and draws the resulting channel on the price chart. A function returns predicted values, maximum and minimum deviations, and the average absolute deviation. Confirmed two-bar pivots up