거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Trailing Stop and Break-Even Manager (points or ATR) - MetaTrader 5용 expert

Gilberto Cardona Velez
Gilberto Cardona Velez
  • MQL4/MQL5 developer - Expert Advisors, backtests and strategy conversion 에  Laboratorio de Estrategias
  • 콜롬비아
  • 921
Laboratorio de Estrategias - MQL4/MQL5 development with tested, honest results.
SMALL JOBS FROM 30 USD (MQL5 Freelance, usually delivered in 1-3 days):
- Fixes and changes to an existing EA or indicator (source code required)
- Adapting one of my free CodeBase tools to your own rules
조회수:
506
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This utility manages the stop loss of positions that are already open, whether you opened them by hand or with another Expert Advisor. It never opens or closes trades by itself: it only moves the stop loss, and only in your favour.


What it does

  1. Break-even: when a position reaches the profit you choose (in points), the stop moves to the entry price plus a small locked profit.
  2. Trailing stop: after a second profit level, the stop follows the price at a fixed distance in points or at a multiple of ATR.
  3. The stop is never moved backwards, it only changes when it improves by at least the minimum step, and it respects the broker's minimum stop distance.

Inputs

  • Break-even trigger and locked profit (points; trigger 0 = off)
  • Trailing mode: off, fixed points or ATR multiple
  • Trailing start, distance, ATR multiple, ATR period and timeframe
  • Minimum step to move the stop
  • Positions to manage: this chart's symbol or all symbols
  • Magic number filter (-1 = any, 0 = manual trades only)
  • Status panel on the chart

How to use it

Attach it to any chart and enable Algo Trading. It checks the positions every second and on every tick. If the broker rejects a change (for example, market closed), it waits 60 seconds before trying again. Test it on a demo account first.

Not financial advice. Past results do not guarantee future results.

Close All at Total Profit or Loss (money) Close All at Total Profit or Loss (money)

Utility EA that closes all positions (and optionally deletes pending orders) when the total floating profit reaches your target or the total floating loss reaches your limit, in account currency. It never opens trades.

News Straddle EA Economic Calendar News Straddle EA Economic Calendar

News trading EA for Gold (XAUUSD) and forex: places a Buy Stop and a Sell Stop seconds before each release of the MT5 economic calendar, one cancels the other, stop loss, take profit and trailing in points. Open source code.

Trade-Request Matrix: Regression Testing Invalid Stops, Volume and Close Errors with OrderCheck() Trade-Request Matrix: Regression Testing Invalid Stops, Volume and Close Errors with OrderCheck()

Part 4 of the regression-testing series. An Expert Advisor that builds a fixed matrix of 20 valid and invalid trade requests (stops at and inside the stops level, wrong-side stops, volume outside the symbol rules, oversized and unknown closes, unchanged and wrong-side modifications), checks each one with OrderCheck() without sending anything, and reports PASS, FAIL or INCONCLUSIVE per row with a digest you can compare between runs.

Basket Guard - closes a basket of positions at loss or profit in percent of balance Basket Guard - closes a basket of positions at loss or profit in percent of balance

Free Expert Advisor that watches a basket of open positions (all, by Magic number or by symbols) and closes the whole basket when floating loss or profit reaches a set percent of balance. Works next to any EA or manual trading.