Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Swing Level Breaks Graded by Volume - indicator for MetaTrader 5

Bruno Nunes Myrrha Ribeiro
Bruno Nunes Myrrha Ribeiro
🆓 FREE SOURCE CODE
-
🤖 EXPERT ADVISORS
► Awesome Oscillator Pullback EA for EURUSD:
https://www.mql5.com/en/code/78891
► Stochastic Daily Breakout for Gold:
Views:
32
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A swing high or low that held once tends to matter again, and the question on every bar is whether price respects it or runs through it. This indicator marks those levels from confirmed swing points, keeps them on the chart for as long as they hold, and grades every break the moment it happens, so a strong breakout and a quiet slip through a level never look the same.

DE40 H1: two breaks on a volume surge, then the drop

Live levels with their price

A swing high becomes resistance and a swing low becomes support once enough bars on both sides confirm it, 15 on each side by default. The level starts at the swing bar and runs a few bars past the last candle, where it carries its name and price, such as "resistance 26163.40". Up to three levels stay live on each side at the same time, so an older level that has not been touched is still on the chart when a newer swing forms. When two levels on one side sit almost at the same price, they share one tag instead of printing on top of each other.

A level ends in one of two ways. A close beyond it breaks it, and the line turns dotted up to the candle that broke it, in full color. A newer swing on a full side retires the oldest level, which turns dotted in a faded color. Each level breaks once: price coming back and forth across an old level does not produce a new signal.

How a break is graded

The volume surge is the fast volume average against the slow one, in percent. On the bar that closes beyond a level:

  • Arrow: the surge is above the threshold, 20% by default. Volume came in with the move.
  • Diamond: the candle has a long wick against the break, longer than its body. Price got through on the close but was pushed back during the bar.
  • Hollow circle: neither. Price crossed the level on ordinary volume and without a rejection, which is often where a breakout fails.

Bullish marks print below the candle in the support color and bearish marks above it in the resistance color. Hovering a dotted level shows whether it was broken or retired, at which price, and on which bar. A short legend in the top left corner of the chart explains every line style and mark, so the chart reads on its own.

Real volume when the symbol has it

Stocks and exchange futures report real traded volume; currency pairs and gold on most brokers report only tick volume. The indicator checks the last 100 bars: when real volume is present it uses it, otherwise it uses tick volume, so the same settings work on any symbol without a switch.

For Expert Advisors and alerts

Nine buffers carry everything the chart shows: break up and down on volume, bullish and bearish wick, weak break up and down, the nearest live resistance, the nearest live support, and the volume surge in percent. They appear in the Data Window and can be read with iCustom and CopyBuffer. The optional alert fires once per closed bar that breaks a level on volume, and says how many levels the bar broke and how strong the surge was.

Inputs

  • Swings: bars left and bars right of a swing point (15 and 15).
  • Breaks: mark breaks and wicks (true), volume surge for a break in percent (20), and live levels on each side, from 1 to 10 (3).
  • Look: the color of support and bullish marks, and of resistance and bearish marks.
  • Alerts: alert on volume breaks (false).

Inputs window: eight settings in four groups

Works on any symbol and timeframe. Closed bars are processed once; the bar in progress is recalculated on every tick from a copy of that state, so a forming candle never rewrites the history. Removing the indicator deletes everything it drew.

Educational content, not financial advice. Trading involves risk of loss.

Account Settings Sync - Bidirectional EA Settings Across Charts Account Settings Sync - Bidirectional EA Settings Across Charts

Small MQL5 library that shares an EA's own runtime settings between charts of the same account, with edits from either chart, a file lock and per-field merge.

Why Your Indicator Gives Different Values on Another Broker Why Your Indicator Gives Different Values on Another Broker

Checks the bar history of the chart for six defects that make an indicator give different values on another broker: missing bars, impossible values, filler bars, repeated bars, bars without ticks and price spikes. Every defective bar is marked in the indicator window, and a panel gives a health score for the symbol and timeframe, the largest holes, the defect counts and one line that can be pasted into a comment to compare brokers.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.