Indicator · Pine Script v5 · Own pane

Wick Power Shift

by harryguiacorn· code credited to FxCloudTrader

Wick Power Shift calculates and plots the smoothed average sizes of upper and lower candlestick wicks in a separate pane.

View on GitHub

GitHub stars219on the repository
Pine versionv5runs as is
Lines of code30
Settings1inputs
LicenceNone statedfile: MPL-2.0
Last update1 year ago8 May 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  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

30 lines of Pine Script v5 from WickPowerShift.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

WickPowerShift.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © FxCloudTrader
//@version=5
indicator(title="Wick Power Shift")

length_wicks = input.int(10, "Length of wicks", 1, step = 1)

// ------------------------- Lower wick -------------------------
// LowerWickRange() returns the bar's lower wick range, which is the
// distance between the low and open (green bars) or close (red bars).
LowerWickRange() =>
    math.min(open, close) - low

// Compute the sma of the lower wick size
avgDownWick = ta.sma(LowerWickRange(), length_wicks)

// Plot the average down wick size with a line
plot(avgDownWick, style=plot.style_columns, color=color.green, title="Average Down Wick")

// ------------------------- Upper wick -------------------------
// UpperWickRange() returns the bar's upper wick range, which is the
// difference between the high and open (red bars) or close (green bars).
UpperWickRange() =>
    high - math.max(open, close)

// Compute the sma of the bar's upper wick range
avgUpWick = ta.sma(UpperWickRange(), length_wicks)

// Show the average upper wick size with a line
plot(avgUpWick, style=plot.style_columns, color=color.red, title="Average Upper Wick")

Overview

Wick Power Shift measures lower wick length (distance from the lower body to the low) and upper wick length (distance from the upper body to the high), applying a simple moving average over a specified period. Average lower wicks are plotted as green columns, while average upper wicks are plotted as red columns, assisting traders in visualizing shifts in rejection and pressure across candlesticks.

Details

Published by

harryguiacorn on GitHub

Code credit

FxCloudTrader, as written in the script's header

Type

Indicator, Pine Script v5

Draws

Separate pane below the chart

Category

Candlestick patterns

Markets

Any symbol

Timeframes

Any timeframe

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.

Topics

bollingerbollinger-bandbollinger-bandsichimokuichimoku-cloudichimoku-indicatorpinepinescriptpinescript-guidespinescript-indicators

Settings

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

SettingTypeDefaultVariable
Length of wicksint10length_wicks
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

The Bullish/Bearish Candle Series Distribution indicator calculates the length of the current streak of consecutive bullish or bearish candles based on user-selected mode. It tracks streak lengths from 2 to 59 and plots a histogram in a separate pane showing t

Indicator v4 Candlestick patterns
Updated 10 days ago · GPL-3.0 GitHub repository of Bullish/Bearish Candle Series Distribution

My Script

by ricardosantos79
261 stars

This indicator plots a normalized candle dynamic visualization inside a custom 500x500 Gann square grid within a separate pane. It normalizes each bar's open and close prices relative to its high-low range, storing the resulting coordinate pairs in fixed-size

Indicator v5 Support & resistanceCandlestick patterns
Updated 4 years ago · None stated GitHub repository of My Script

Qstick Indicator

by mihakralj
99 stars

This indicator calculates the Qstick value as a simple or exponential moving average of the difference between a chosen close source and open source. It plots that oscillator in a separate pane as a yellow line, draws a dashed zero line, and shades the backgro

Indicator v6 Oscillators & momentumCandlestick patterns
Updated 4 weeks ago · Apache-2.0 GitHub repository of Qstick Indicator

Dual-color bars

by be-thomas
65 stars

This indicator draws a separate OHLC bar series in its own pane using plotbar. Each bar is colored lime when the close is greater than or equal to the open, and red when the close is below the open. It has no user inputs, no signals, and no entry, exit, stop,

Indicator v5 Candlestick patterns
Updated 4 days ago · GPL-3.0 GitHub repository of Dual-color bars
43 stars

This indicator builds a synthetic Heikin-Ashi series using only the current open and the opens of the previous three bars. It derives open, high, low, and close from those values, rounds each price to the symbol mintick, and plots the result as candles in a se

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Heikin-Ashi Open Only
24 stars

This indicator plots a Cipher B-style oscillator in a separate pane and can source its calculations from Heikin Ashi candles when that option is on. It draws WaveTrend lines with optional buy, gold, sell, and divergence dots, plus overbought and oversold level

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · MPL-2.0 GitHub repository of Cipher B Heikin Ashi

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