Indicator · Pine Script v6 · On the chart

PA Indicators

by forecho

This indicator plots price action tools directly on the main price chart.

View on GitHub

GitHub stars5on the repository
Pine versionv6current
Lines of code801
Settings40inputs
LicenceNone stated
Last update8 weeks ago1 Sep 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

forecho on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Candlestick patterns, Moving averages, Sessions & time, Support & resistance

Markets

Any symbol

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
EMA20int20ema20Length
EMA240int240ema240Length
K线计数booltrueshowBarCount
间隔计数int2c_contador
RTH(美东时间)session0930-1615rthSession
文字大小stringsmalltextSize
文字颜色colorcolor.new(color.purple, 5)textColor
阳线基础颜色color#26A69AbaseBullColor
阴线基础颜色color#EF5350baseBearColor
区间震荡颜色colorcolor.new(#2196F3, 50)rangeColor
启用区间震荡着色boolfalseenableRangeColor
影线阈值(%)float50wickThreshold
Show all 40 settings
SettingTypeDefaultVariable
启用缺口检测booltrueenableGapDetection
显示开盘对前收 GapboolfalseshowOpenCloseGap
Gap 最小价差float0.0openCloseGapMinMove
Gap 文字大小stringsmallopenCloseGapTextSize
向上 Gap 颜色colorcolor.new(color.green, 70)openCloseGapUpColor
向下 Gap 颜色colorcolor.new(color.red, 70)openCloseGapDownColor
启用 L/H 标记booltrueenableLH
文字大小stringnormallhTextSize
L 颜色colorcolor.greenlColor
H 颜色colorcolor.redhColor
L 标签下移(跳动)int2lLabelOffsetTicks
显示 B1 提示booltrueenableB1Hint
跳空阈值(%)float0.3gapThreshold
显示 iibooltrueshowPA_II
显示 ioibooltrueshowPA_IOI
显示 iiibooltrueshowPA_III
显示 oobooltrueshowPA_OO
文字大小stringsmallpaTextSize
文字颜色colorcolor.yellowpaTextColor
显示关键价位booltrueshowPrevDayLevels
今日开盘booltrueshowTodayOpenLevel
昨日高点booltrueshowPrevDayHighLevel
昨日低点booltrueshowPrevDayLowLevel
昨日收盘booltrueshowPrevDayCloseLevel
今日50%booltrueshowTodayMidLevel
今日开盘颜色colorcolor.aquatodayOpenColor
昨日高点颜色colorcolor.grayprevDayHighColor
昨日低点颜色colorcolor.grayprevDayLowColor
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.

Similar Pine Scripts

TradeKit

by tanishq-rocks
5 stars

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

Indicator v6 Moving averagesCandlestick patterns
Updated 3 months ago · MPL-2.0 GitHub repository of TradeKit

Midnight VWAP

by TradersPost
218 stars

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

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

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

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap
56 stars

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

Indicator v6 Support & resistanceCandlestick patterns Repaints
Updated 2 months ago · None stated GitHub repository of Daily Weekly Monthly Yearly Opens

LunarTick Levels

by lunarticktrading
7 stars

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

Indicator v6 Support & resistanceMoving averages
Updated 2 weeks ago · None stated GitHub repository of LunarTick Levels
7 stars

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

Indicator v6 Candlestick patternsSessions & time
Updated 3 months ago · None stated GitHub repository of Multi-Ticker Anchored Candles

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers