VibeFox Pesavento
- Indicators
- Version: 1.0
- Activations: 5
VibeFox Pesavento — Fibonacci ratio analysis of swing legs with entry points
VibeFox Pesavento is a real-time swing-structure indicator for MetaTrader 5 that applies the Pesavento method of Fibonacci ratios to the market. It builds a ZigZag from the price, measures every leg of the swing structure, labels each leg with its ratio to the previous one, highlights the legs that land on a key Fibonacci/Pesavento ratio, and marks entry signals right on the chart. Instead of measuring retracements by hand, you see the proportion of each move and the reversal level at the very moment it forms — all gathered into one modern interactive panel.
How the indicator works
First the indicator detects the significant turning points of price — the swing highs (peaks) and swing lows (troughs) — using the classic ZigZag algorithm. The construction is controlled by three parameters. Depth sets the minimum number of bars between two pivots, so the structure ignores small wiggles and reacts only to moves that last long enough. Deviation is the minimum size of a reversal required to register a new pivot — it filters out shallow pullbacks. Backstep is the minimum number of bars between two extrema of the same kind, preventing two peaks (or two troughs) from sitting too close together. Together they tune the swing detection from a fast, detailed structure to a slow one that shows only major swings.
The swing legs are drawn directly on the price chart as line objects, while the indicator itself lives in its own subwindow, where the control panel sits. The Bars setting limits how much history is processed — set it to 0 to scan all available bars, or use a smaller value for faster redraws on heavy charts.
Pesavento ratio analysis
Once the swing pivots are known, the indicator splits the structure into legs — each leg connects two consecutive pivots. For every leg it computes the Pesavento ratio: the length of the current leg divided by the length of the previous one. This ratio describes the proportion of the move — how far price retraced or extended relative to the prior swing. A label with the ratio (for example 0.618) is drawn at the midpoint of each leg, so the geometry of the structure is visible at a glance.
Legs whose ratio lands on a key Fibonacci/Pesavento value are highlighted with the High (Highlight) color. The key ratios are 0.382, 0.500, 0.618, 0.786, 1.000, 1.272, 1.618 and 2.618. A leg counts as a match when its ratio is within the Tolerance distance of one of these values — the tolerance is an absolute figure, so you can make the match strict or loose. These highlighted legs are the harmonic moves Pesavento traders look for: retracements and extensions that respect the Fibonacci grid.
Entry points
The main value of VibeFox Pesavento is its automatic entry points: a clear marker is placed on the price chart whenever a swing completes at a key reversal ratio. A leg is treated as a likely reversal when its ratio matches the key retracement values 0.618 or 0.786 of the previous leg — at that proportion the prior move is usually exhausted.
When the leg ends on a confirmed swing low at a key reversal ratio, a BUY marker is placed below the bar — the down-move has retraced into the reversal zone and price is turning up. When the leg ends on a confirmed swing high at a key reversal ratio, a SELL marker appears above the bar — the up-move is exhausted and price is turning down. The two directions are toggled independently with the Buy and Sell switches.
Buy and sell markers are colored separately with the Buy Color and Sell Color settings, so direction is read instantly. The Marker selector switches the glyph between a plain cross (+), filled triangles, or arrows with a tail, while the Size control scales the marker in pixels (6 to 40) to fit any chart density.
Full visual control
The leg line color is set with Zigzag Line Color and the thickness with Line Width from 1 to 5 pixels. The legs matching a key ratio are painted with the Key-ratio Highlight Color. The line, the highlight, and both entry markers each support a transparency setting (0-100%) in the color picker popup, so you can blend them softly into the chart background. Markers on the price chart are sized and colored independently, so entries stand out clearly against any background.
Interactive on-chart panel
The whole interface is a smooth canvas-based panel built for fast mouse control. The swing and ratio parameters are gathered into tidy rows, and the entry block is set apart with its own gold ENTRY heading, so signal settings do not get mixed up with line settings. The panel header holds the control icons.
Power — turns the drawing of entry markers on and off without removing the indicator from the chart.
Settings (gear) — opens and closes the settings section.
Updown (arrows) — moves the panel between its subwindow and the main chart.
Close (cross) — closes the indicator.
Resizable — drag the bottom-right corner to scale the panel.
Collapsible — a double click on the header collapses the panel into a compact strip.
Mouse wheel — hover over any numeric field and scroll the wheel to change the value without opening the keyboard.
Settings and personalization
The Settings button opens a section where the panel is fitted to your workspace: a light, dark or automatic Theme, an adjustable panel width, header size, row height and font size. Extra touches let you hide the bottom bar via Hide Footer, shrink the header when collapsed with Mini Header, and automatically collapse the panel on a click outside it. Almost every parameter changes live right on the panel — the input fields on the Inputs tab only set the starting values. You can also run several independent copies on one chart by giving each a unique Instance, to compare different Pesavento settings side by side.
Entry notifications
You do not need to sit and guard the chart waiting for a signal. Each entry can be sent through several notification channels that are enabled independently right on the panel.
Alert — a pop-up message inside the terminal.
Push — a mobile notification to the MetaTrader app on your phone.
Email — a letter sent through the terminal's mail settings.
Telegram — the alert text together with a chart screenshot, sent straight to your Telegram chat.
Enable only the channels you need, and you will be notified the moment a new entry appears on the symbol and timeframe you are working with.
Visual history (HTML report)
Enable the Html channel, and every entry signal is saved to an HTML report together with a screenshot of the chart at the moment it fired. The report is stored in the terminal's Files folder, in the VibeFox_Pesavento directory (MQL5/Files/VibeFox_Pesavento/result.html), and opens in any browser — you get a visual log of all the entries the indicator found. A one-click trash button clears the report and its screenshots whenever you want to start over.
Telegram Alerts
Signals can also be delivered straight to your Telegram chat — the alert text together with a screenshot of the chart at the moment of detection. Turn on the Telegram channel and enter your bot token and chat id in the inputs.
Delivery rides on the HTML report: each new signal is written into the report, and the report — opened in a browser — forwards it to your Telegram chat on its own. For this reason, enabling Telegram automatically keeps the Html report on, and the two channels work together.
Built-in multilingual help
A full help page is built into the panel, available in multiple languages, so every control is explained right where you use it.
Parameters (Inputs tab)
Most settings can also be changed live right on the panel (the Settings button) — the input parameters only set the initial values at startup.
Pesavento (swings)
Swing Depth — the minimum number of bars between two pivots (2..100). Default: 12.
Swing Deviation — the minimum reversal size for a new pivot, in points. Default: 5.
Swing Backstep — the minimum number of bars between two extrema. Default: 3.
Max legs drawn/labeled — how many of the most recent legs are drawn and labeled. Default: 12.
Bars of history to process — how far back the swings are calculated, 0 = all available. Default: 500.
Key-ratio tolerance — the absolute tolerance for matching a leg ratio to a key value. Default: 0.030.
Zigzag Line Color — the color of the leg lines on the price chart. Default: DodgerBlue.
Line Transparency — leg line transparency in percent, 0-100. Default: 0.
Key-ratio Highlight Color — the color of legs that match a key ratio. Default: Gold.
Highlight Transparency — highlight transparency in percent, 0-100. Default: 0.
Line Width — the thickness of the leg lines in pixels, 1..5. Default: 1.
Entry Points
Buy signals (low @ key ratio) — enables BUY markers on a confirmed low pivot at a key reversal ratio. Default: on.
Sell signals (high @ key ratio) — enables SELL markers on a confirmed high pivot at a key reversal ratio. Default: on.
Marker Font Size — the size of the entry markers in pixels, 6..40. Default: 12.
Entry Marker — the marker glyph: Cross (+), Triangle, or Arrow. Default: Arrow.
Buy Color — the color of the BUY marker. Default: LimeGreen.
Buy Transparency — buy marker transparency in percent, 0-100. Default: 0.
Sell Color — the color of the SELL marker. Default: Red.
Sell Transparency — sell marker transparency in percent, 0-100. Default: 0.
Notifications
Push Notification — enables push alerts to the MetaTrader mobile app. Default: off.
Alert Popup — enables pop-up alerts inside the terminal. Default: off.
Email — enables email alerts through the terminal's mail settings. Default: off.
Html Report — saves each signal with a chart screenshot to Files/VibeFox_Pesavento/result.html. Default: off.
Telegram — forwards signals with chart screenshots to a Telegram chat via the HTML report. Default: off.
Telegram - bot token — the token of the Telegram bot used for delivery. Default: empty.
Telegram - chat id — the target Telegram chat identifier. Default: empty.
Panel / Settings
Panel width, px — the width of the on-chart panel in pixels, 300..800. Default: 800.
Header size — the height of the panel header, 1..6. Default: 1.
Theme — the color theme of the panel: Light, Dark, or Auto. Default: Auto.
Row height (px) — the height of each parameter row in pixels. Default: 34.
Font size — the font size used inside the panel. Default: 8.
Hide Footer — hides the bottom bar of the panel. Default: off.
Mini Header on collapse — shows a compact header strip when the panel is collapsed. Default: off.
Close on click outside — automatically collapses the panel when clicking outside it. Default: off.
Instance — a unique number for each copy of the indicator on the same chart, allows running multiple instances side by side. Default: 1.
Panel Start Window — sets the initial position of the panel: main chart or subwindow. Default: Subwindow.
