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
PA Indicators shades candles according to Internal Bar Strength (IBS) and optional wick-length thresholds to differentiate trend bars from trading ranges. The script tracks session bar counts during regular trading hours, detects open-to-close gaps, overlays 20-period and 240-period EMAs, and marks numbered swing pullbacks (L1/L2 and H1/H2) alongside inside/outside bar patterns such as ii, ioi, iii, and oo. Users can adjust EMA lengths, session times, wick thresholds, and visual label sizes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
EMA20
int
20
ema20Length
EMA240
int
240
ema240Length
K线计数
bool
true
showBarCount
间隔计数
int
2
c_contador
RTH(美东时间)
session
0930-1615
rthSession
文字大小
string
small
textSize
文字颜色
color
color.new(color.purple, 5)
textColor
阳线基础颜色
color
#26A69A
baseBullColor
阴线基础颜色
color
#EF5350
baseBearColor
区间震荡颜色
color
color.new(#2196F3, 50)
rangeColor
启用区间震荡着色
bool
false
enableRangeColor
影线阈值(%)
float
50
wickThreshold
Show all 40 settings
Setting
Type
Default
Variable
启用缺口检测
bool
true
enableGapDetection
显示开盘对前收 Gap
bool
false
showOpenCloseGap
Gap 最小价差
float
0.0
openCloseGapMinMove
Gap 文字大小
string
small
openCloseGapTextSize
向上 Gap 颜色
color
color.new(color.green, 70)
openCloseGapUpColor
向下 Gap 颜色
color
color.new(color.red, 70)
openCloseGapDownColor
启用 L/H 标记
bool
true
enableLH
文字大小
string
normal
lhTextSize
L 颜色
color
color.green
lColor
H 颜色
color
color.red
hColor
L 标签下移(跳动)
int
2
lLabelOffsetTicks
显示 B1 提示
bool
true
enableB1Hint
跳空阈值(%)
float
0.3
gapThreshold
显示 ii
bool
true
showPA_II
显示 ioi
bool
true
showPA_IOI
显示 iii
bool
true
showPA_III
显示 oo
bool
true
showPA_OO
文字大小
string
small
paTextSize
文字颜色
color
color.yellow
paTextColor
显示关键价位
bool
true
showPrevDayLevels
今日开盘
bool
true
showTodayOpenLevel
昨日高点
bool
true
showPrevDayHighLevel
昨日低点
bool
true
showPrevDayLowLevel
昨日收盘
bool
true
showPrevDayCloseLevel
今日50%
bool
true
showTodayMidLevel
今日开盘颜色
color
color.aqua
todayOpenColor
昨日高点颜色
color
color.gray
prevDayHighColor
昨日低点颜色
color
color.gray
prevDayLowColor
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.
TradeKit is an all-in-one technical analysis indicator that consolidates multiple chart overlays into a single script on the price chart. It plots up to four customizable moving averages (SMA, EMA, SMMA, WMA, or VWMA), Bollinger Bands, VWAP, and reference leve
The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal
This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l
This overlay indicator highlights candles with a body smaller than 50% of their total range by coloring them white on the price chart. Simultaneously, it calculates and plots horizontal lines for open prices across multiple higher timeframes, such as daily, we
LunarTick Levels plots key daily reference levels and multi-timeframe simple moving averages directly on the price chart. It highlights key price points including the Opening Print, Previous Day High and Low, and Overnight High and Low. Additionally, it projec
Multi-Ticker Anchored Candles overlays up to three user-selected symbols on the price chart as candles anchored to a chosen period, which defaults to the daily timeframe. Each symbol has its own color and an on or off toggle. Optional drawings mark session bre