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
Demand comes from rally-base-rally and drop-base-rally patterns, and supply from rally-base-drop and drop-base-drop, each switchable. Leg and base candle size rules use ATR and body ratio. Zones are graded by volume against an average and can be shaded by strength. Optional trade boxes project entry, stop and a target in R, and past trades can stay on the chart. Labels are in Thai.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Length
int
14
atrLen
Leg: body/range ขั้นต่ำ
float
0.55
legBodyPct
Leg: range ≥ ATR x
float
1.0
legAtrMult
Base: body/range สูงสุด
float
0.45
baseBodyPct
Base: range ≤ ATR x
float
0.8
baseAtrMult
Base: จำนวนแท่งสูงสุด
int
4
maxBase
Leg-out ต้องทะลุขอบ Base
bool
true
needBreak
RBR — Rally Base Rally (Demand)
bool
true
useRBR
DBR — Drop Base Rally (Demand)
bool
true
useDBR
RBD — Rally Base Drop (Supply)
bool
false
useRBD
DBD — Drop Base Drop (Supply)
bool
false
useDBD
Volume: ค่าเฉลี่ยอ้างอิง (แท่ง)
int
50
volAvgLen
Show all 40 settings
Setting
Type
Default
Variable
นับ Volume จาก
string
Base + Leg-out
volScope
เกรด A: volume ≥ x เท่าของค่าเฉลี่ย
float
2.0
gradeAmin
เกรด B: volume ≥ x เท่าของค่าเฉลี่ย
float
1.2
gradeBmin
กรองทิ้งถ้า volume < x เท่า (0 = ปิด)
float
0.0
minVolRat
เทรดเฉพาะโซนเกรด A
bool
false
onlyGradeA
แสดงค่า volume บนป้ายโซน
bool
true
showVolTxt
โซน volume สูง = สีเข้มกว่า
bool
true
shadeByVol
เปิดระบบ TP/SL
bool
true
enableTrade
จุด Entry
string
Zone Edge
entryMode
โหมด Stop Loss
string
Zone Distal
slMode
SL buffer (x ATR)
float
0.2
slBufAtr
SL ระยะ (x ATR) — โหมด ATR
float
1.5
slAtrMult
เป้า Take Profit
string
3R
rrInput
ต้องออกจากโซนก่อนถึงนับ retest
bool
true
requireRet
แสดง SL/TP ล่วงหน้าบนโซนที่ยังรอ
bool
true
showProj
ความยาวกล่องเทรด (แท่ง)
int
8
tradeExtend
🗂️ เก็บประวัติเทรดไว้บนชาร์ต
bool
true
showHistory
เก็บกล่อง TP/SL ของไม้เก่าไว้ด้วย
bool
true
histBoxes
จำนวนไม้ย้อนหลังสูงสุด
int
20
maxHistory
ทำให้ประวัติจางลงเพิ่ม (%)
int
0
histFade
ขอบโซน
string
Wick (High/Low)
zoneMode
ยืดโซนไปขวา (แท่ง)
int
30
extendBars
เก็บโซนล่าสุดสูงสุด
int
20
maxZones
เมื่อโซนถูกแตะแล้ว
string
Fade
afterHit
ลบโซนที่ถูกทะลุ
bool
false
delBroken
แสดงป้ายชื่อโซน
bool
true
showLabel
ขนาดป้าย
string
Small
labelSizeIn
สี Demand
color
color.new(color.teal, 0)
demandCol
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.
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 MGIC-tracker is a TradingView indicator that overlays ARK Invest trade records onto stock price charts. It plots buy and sell labels at the exact timestamp of each transaction, showing share volume and ETF weight. Users select a specific ETF type via setti
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
Comprehensive Volume Profile is an overlay indicator that calculates and plots volume distribution across specified time ranges such as daily sessions, weekly, monthly, or custom bar lengths. It identifies key structural price levels including the Point of Con
This indicator plots two Hull moving averages on the price chart, one of the selected price and one of close, and optionally smooths both with a Kahlman filter. It fills the space between them and marks buy and sell labels when they cross, provided scaled volu
This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow