ZigZag Pro ArBrain VE
- Göstergeler
-
Bahtiyar Arniyazov
Over 33 years of engineering, economic, and executive management experience in civil and industrial construction — progressing from field engineer and site supervisor to Head of Production & Technical Department (PTO), Head of Planning & Economic Department in a state construction enterprise, Chief - Sürüm: 1.0
ZigZag Pro Ar.Brain VE
A chart tool for MetaTrader 5 that draws an adaptive ZigZag, marks confirmed pivots and prints a short summary of the current movement direction. There is no panel at all. Everything is shown on the chart itself, so the tool does not cover candles and does not take space in the terminal window.
The markup is calculated from closed bars. The tool first finds local highs and lows within the given depth, then checks how far the price has travelled from the previous extreme. The deviation threshold can be set in points, in percent of price, or in units of the average true range, that is ATR. In automatic mode the threshold never falls below ATR multiplied by the chosen factor, so the markup does not become too dense on a quiet market. Depth and backstep define sensitivity in the same way as in the standard ZigZag of MetaTrader.
The chart shows the ZigZag line with separate colours for upward and downward legs, pivot markers, price labels of confirmed extremes, labels of the daily high and low, labels of the high and low of the current candle, and a single text line in the corner with the trend verdict and the accumulated price change in percent. The trend verdict uses confirmed pivots only. The number of price labels is limited by a setting, and the font, its size and the label offset are configurable.
One property matters most: a confirmed pivot is fixed and does not change afterwards. It is published at the moment the next pivot appears, and from that point its price and direction stay as they are. The live, not yet confirmed part of the line can move, exactly as in any ZigZag, and this behaviour is stated openly. Trading decisions therefore rely on the confirmed pivot, not on the newest point of the line.
The indicator is ready to be called from Expert Advisors through iCustom. Seven buffers are readable: the ZigZag line, its colour index, pivot markers, the colour index of markers, the price of the confirmed pivot, the direction of the confirmed pivot with plus one for a high and minus one for a low, and the trend score, which is valid on the latest bar. Values follow the standard empty value convention for blank areas instead of zero, so a robot does not have to filter out fake zeroes.
Calculation is incremental. Only new and changed bars are processed, the history is not recalculated from scratch, and time series are not copied on every tick. Chart output is refreshed when a new bar appears and not more than twice per second, so the load on the terminal stays low even on a long history. The internal ATR follows the terminal formula and matches the built in ATR indicator.
In the strategy tester, chart objects and alerts are switched off during optimization, while visual mode shows the indicator in the usual way. This speeds up parameter sweeps and keeps the log clean.
Alerts support a pop up window, sound, mobile notification and email. By default a signal is sent on a confirmed pivot, so it cannot disappear together with a redraw. An option exists to alert on the newest, still unconfirmed extreme.
Every object created by the indicator has a unique prefix containing the chart identifier, is not selectable by mouse, and is removed when the indicator is removed from the chart. Objects of other programs are never touched.
The indicator works on any instrument and any timeframe of MetaTrader 5, including currency pairs, metals, indices and crypto currencies. About one hundred bars of history are enough for a calculation, while several thousand bars are recommended for a stable picture. Settings are tuned per instrument and timeframe, and the defaults are intended for higher timeframes of major instruments.
This is an analytical tool. It does not trade, it does not give trading recommendations, and it does not promise profit. Past behaviour does not guarantee future results. Before live use, please check the indicator in the strategy tester and on a demo account.
