Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Experts

ORB Risk Managed - Opening Range Breakout with Account Protection - expert pour MetaTrader 5

Matas Kerys
Matas Kerys
MQL5 developer focused on prop-firm-compliant Expert Advisors and risk management tools.
What I build:
Expert Advisors from clear trading rules
Risk controls: daily loss limits, max drawdown protection, risk-based position sizing, session-based trade closing
Vues:
151
Note:
(1)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Idea
The EA marks the high and low of the first minutes after the session open (the "opening range"). It then places a Buy Stop above and a Sell Stop below the range. When one order is filled, the other is deleted (OCO). Only one trade is taken per day, and all positions are closed before the session end.

Example

Recommended symbol and timeframe
Built and tested on a US100 / Nasdaq 100 index CFD. Works on any chart timeframe, since the range is always calculated from M1 data. Default times assume a GMT+3 server (US session open 16:30 server time). Adjust the time inputs to your broker's server time.

Main inputs

  • Range start, range length, last entry time, close-all time (server time)
  • Trade direction: both, long only, short only
  • Risk per trade (% of balance), take profit as R multiple, stop distance as a fraction of the range
  • ATR filter: skip days with an unusually small or large range
  • Daily loss limit (%), maximum total drawdown (%), initial balance

Account protection

  • Position size calculated from risk and stop distance. If even the minimum lot exceeds the allowed risk, the trade is skipped.
  • Daily loss limit: closes all positions and stops trading for the day.
  • Maximum drawdown limit: closes all positions and stops the EA.
  • Positions are never carried into the next day.

Important
This is an educational template showing breakout logic and risk management structure. It is not a profit-guaranteed system. Always test in the Strategy Tester and on a demo account before any live use.


Broker Profiler Broker Profiler

Displays the symbol properties that cause the same EA to behave differently on a different broker: trading hours, contract size, tick value, spread statistics, swap cost and real-session coverage. Read-only; does not execute trades.

Closed Trades Exporter MAE MFE Closed Trades Exporter MAE MFE

Exports closed trades to CSV with Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) in points and money, calculated from M1 history, plus the percentage of the available move each trade captured.

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.