Pivot Point Touch Rate Audit
Every pivot method claims its levels matter, but the three popular formulas place R1 and S1 at genuinely different distances from the prior close - Camarilla's inner levels sit much closer to price than Classic's, Woodie's pivot is weighted toward the close instead of averaging the full range. A trader using one method's published hold rate to justify another method's levels is comparing different numbers without knowing it. This script computes all three formulas properly, from the actual published definitions, for every day in the loaded history: Classic - PP = (H+L+C)/3, then R1/S1/R2/S2/R3/S3 from the standard mirrored offsets around PP. Camarilla - built from the prior day's range multiplied by 1.1 and divided by 2/4/6/12 for R4 through R1 and their mirrored S levels, added to or subtracted from the prior CLOSE rather than the pivot. Woodie - PP = (H+L+2C)/4, giving the close double weight, then R1/S1/R2/S2 from the same mirrored-offset shape as Classic but around this different pivot. For every level of every method, on every trading day, it finds the first intraday touch and reads the outcome from that bar's close: held back on the approach side by a threshold, or broken through by a threshold. The result is a per-method, per-level table of touch rate, hold rate and break rate - so "does R1 actually work" gets a different, honest answer for each formula instead of one blended number. Notes and limitations - The prior day's OHLC is read from the D1 series; the intraday scan for touches is read from M15. Both must have enough history loaded for the requested InpMaxDays. - Held/broke are only meaningful once a level has been touched at all - an untouched level counts toward the touch-rate denominator but not the hold/break split. - The outcome is read from a bar's close, not from the extreme reached in between - a level briefly pierced and closed back on the near side is scored a hold at that bar, the same convention used elsewhere in this catalogue's touch-rate studies. - This is a descriptive study, not a trading signal. It ignores spread and slippage, and does not claim any one method is "better" - only reports what each one's own levels actually did.
Script · MT4 · v1.0 · Free
About Pivot Point Touch Rate Audit
Pivot Point Touch Rate Audit is a script for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 4 settings, such as Symbol, Max days and Hold threshold pips. MQL source code included.
Files in the download: PivotTouchRateAudit.mq4, PivotTouchRateAudit.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Symbol | Symbol to study, blank = this chart's symbol | |
| Max days | 500 | Most recent trading days to include |
| Hold threshold pips | 5.0 | Close-back distance past the level required to call it a hold |
| Save csv | true | Write every level's per-day outcome to a CSV file |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the script onto a chart to run it once.
Tags: Pivot Points · Alerts · MT4 Script · MQL4 Source Code