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

Break-even and Trailing Stop Manager - MetaTrader 5용 expert

조회수:
47
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Attach it to a chart and it manages the stop loss of existing positions: your manual trades or trades opened by any other EA.


Break-even:
- When profit reaches X points, SL moves to entry plus Y points of locked profit.

Trailing stop:
- Fixed distance in points, or ATR multiple (ATR period and timeframe selectable; ATR of the last closed bar is used, so the value does not jump within the bar).
- Starts only after a chosen profit in points.

Safety rules:
- SL only moves forward, never back, and only by at least the "minimum SL step" (fewer modification requests to the broker).
- Respects the broker's stop level and freeze level.
- Does not send requests while the symbol's trading session is closed (daily break, weekend).
- If the broker rejects a modification, that ticket is paused for a set number of seconds instead of flooding the log and the server.
- The existing take profit is kept.

Filters:
- Chart symbol only, or all symbols.
- Magic number: -1 = all, 0 = manual trades only, or a specific EA.

Tested in the Strategy Tester on XAUUSD and EURUSD (2 months, M5): thousands of stop loss modifications, none moved backwards.


Breakeven Trailing Manager

Trade Cost Meter Trade Cost Meter

Shows the real cost of a trade on the current symbol (spread, commission, swap) and which share of your risk (R) it takes on every timeframe from M1 to D1.

LotFromRisk: position size from risk, stop and commission LotFromRisk: position size from risk, stop and commission

An include file for calculating the size of a position to be opened. It turns a risk figure (percent of the balance, percent of the equity or money), a stop and a commission per lot into a lot size whose loss at the stop never goes over that risk. The lot is always rounded down to the volume step and a risk below the minimum volume returns 0 lots with a reason.

Equity Guard Equity Guard

Closes all positions, deletes pending orders and blocks new trades when the daily loss, drawdown-from-peak or daily profit target is reached. Works with manual trading and any other EA. State survives terminal restart.

MACD Signals MACD Signals

Indicator edition for new platform.