Loading…

Wick Ratio By Hour Study

A rejection wick means something different depending on when it prints. A long upper wick during a thin overnight hour, with a handful of stray quotes crossing a wide spread, can be mostly noise; the same wick during an active session hour, with real volume behind it, is more likely genuine order-flow rejection at a level. Judging a wick's significance therefore needs an hour-by-hour baseline, not one number for the whole day. For every completed bar on the chosen intraday timeframe, this script computes the upper wick, lower wick and body as a fraction of that bar's own range, then averages each fraction separately for every hour of the day (0-23), using the bar's own open hour in the terminal's time base. The result turns "that looks like a big wick" into "is that a big wick FOR this hour" - a trader can compare a specific bar's wick ratio against its hour's own historical average rather than against the whole day's. Notes and limitations A bar with zero range (High equals Low) is skipped entirely - the wick and body ratios are undefined for it. Hours are read directly from the bar's own open time in whatever time base the terminal already shows (usually broker/server time), with no separate timezone conversion. Compare results across brokers with that in mind. This is a descriptive average over history, not a signal. An hour with a high average upper-wick ratio simply means upper wicks are typically larger relative to range at that hour on this symbol - it says nothing about direction or what happens next.

Script · MT4 · v1.0 · Free

About Wick Ratio By Hour Study

Wick Ratio By Hour Study is a script for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 3 settings, such as Timeframe, Bars to study and Save csv. MQL source code included.

Files in the download: WickRatioByHourStudy.mq4, WickRatioByHourStudy.txt.

Settings

SettingDefaultWhat it does
TimeframePERIOD_M15Intraday timeframe the wicks are measured on
Bars to study5000Completed bars to include
Save csvtrueWrite the 24-row hourly table to a CSV file

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Volume · Trading Sessions · Alerts · MT4 Script · MQL4 Source Code

MQL4 & MQL5 scripts · PolyMaria