Intermediate Trading Tutorial | PowerLanguage
Candle bodies describe the relationship between opening and closing prices, but wicks describe additional portions of the observed price interval. A candle with a long lower wick and a short upper wick has a different geometry from one with equal wicks, even if both have the same body size. This tutorial builds a free MultiCharts oscillator that measures this asymmetry and averages it across completed bars. It is a descriptive price feature, not a direct measurement of order flow.
Define the calculation
The upper wick is the high minus the larger of the open and close. The lower wick is the smaller of the open and close minus the low. Subtract the upper wick from the lower wick, divide by the entire high-low range, and multiply by 100. For valid OHLC data the result lies between −100 and +100. A zero-range bar contributes zero by convention. Average the most recent five scores with equal weights. Normalization allows bars of different sizes to contribute comparably, although it also discards absolute price distance.

Consider another hypothetical bar with open 103, high 110, low 100 and close 109. Its upper wick is one and its lower wick is three, producing a score of 20. A five-bar sequence of scores 0, 20, −30, 40 and 10 yields an average of eight. A positive score indicates greater normalized lower-wick length, not necessarily a bullish candle or a profitable long signal.
Complete PowerLanguage indicator
{ PatternSmart - prior closed bar wick imbalance }
Inputs: Length(5);
Variables: UpperWick(0), LowerWick(0), BarWidth(0),
WickScore(0), MeanScore(0);
If Length >= 1 then begin
BarWidth = High[1] - Low[1];
UpperWick = High[1] - MaxList(Open[1], Close[1]);
LowerWick = MinList(Open[1], Close[1]) - Low[1];
WickScore = 0;
If BarWidth > 0 then
WickScore = 100 * (LowerWick - UpperWick) / BarWidth;
MeanScore = Average(WickScore, Length);
If CurrentBar >= Length then begin
Plot1(MeanScore, "WickBalance");
Plot2(0, "Zero");
end;
end;
Installation and timing
Open PowerLanguage Editor, create an Indicator and paste the source. Compile in your installed MultiCharts environment. Set MaxBarsBack to automatic detection or manually allow at least Length + 1 bars. Add the indicator to a chart with the default Length of five. The implementation reads index one, the previous completed candle, and publishes its rolling result on the following bar. This avoids incorporating the changing high and low of the forming bar even when intrabar updates are enabled. Do not shift the output backward for strategy execution, because doing so could introduce lookahead. The code has not been compiled in MultiCharts for this article.
Parameter tradeoffs and validation
Length one displays the score of a single completed bar. Longer windows smooth isolated asymmetry but respond more slowly to changing conditions. Test equal wicks, an upper-only wick, a lower-only wick, a candle without wicks and a flat bar. Confirm that sufficient history is loaded and that the output remains stable as the current bar develops. Data corrections and changes to session templates can alter historical inputs. Small-range bars may generate large normalized scores despite little absolute movement; a minimum range filter could address this, but the denominator convention must be defined explicitly.
Interpretation and extensions
A long lower wick does not establish that aggressive buying dominated trading, nor does it prove that a support level will hold. Different intrabar paths can generate identical OHLC values. The indicator ignores volume, trend and execution costs. Combining it with a separately defined volatility or trend filter may be worth investigating, but evaluate the complete rule using out-of-sample data and realistic costs. For alerts, multi-timeframe outputs or custom filters, contact us for Custom MultiCharts indicator Development Services.
Risk disclosure: Educational material only, not investment advice. Trading involves risk of loss.