Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Telegram üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzmanlar

Smart Break-Even and Partial Close - R-based trade manager - MetaTrader 5 için uzman

Deepanshu Goyal
Deepanshu Goyal
  • MQL5 Developer: Expert Advisors, Indicators, Algo Trading Setups at  Freelance
  • Hindistan
  • 483
MetaTrader 5 için kurallarınızı birebir uygulayan Uzman Danışmanlar (EA) ve göstergeler geliştiriyorum; temiz kod, teslimattan önce test edilmiş.
Görüntülemeler:
102
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Smart Break-Even & Partial Close manages open positions opened by hand, from the phone app or by other Expert Advisors. It works in R multiples: 1R is the distance between the entry and the original stop loss, remembered the first time a stop is seen.


What it does, in order:

1. Partial close: at InpPartialAtR (default 2R) it closes InpPartialPercent (default 50%) of the volume, once per position. Volume is rounded to the symbol's lot step; if the position is too small to split, the step is skipped.

2. Break-even: at InpBreakEvenAtR (default 1R) the stop moves to entry plus InpBreakEvenOffset points, to cover spread and commission. Trades without a stop loss can use InpBreakEvenPoints instead.

3. Step trailing: from InpTrailStartR the stop trails InpTrailDistance points behind price and only moves in steps of InpTrailStep points.


Inputs:

- InpMagicFilter (-1): magic number to manage; -1 = all positions, 0 = manual trades only.

- InpAllSymbols (true): manage all symbols, or only the chart's symbol.

- InpBreakEvenAtR (1.0), InpBreakEvenPoints (0), InpBreakEvenOffset (20).

- InpPartialAtR (2.0), InpPartialPercent (50).

- InpTrailStartR (2.0), InpTrailDistance (300), InpTrailStep (100).


Design notes:

- A stop is modified only when the new level is better than the current one, and only if it respects the broker's minimum stop distance. This keeps the number of server requests low, which many prop firms check.

- The original risk and the partial-close flag are stored in terminal global variables, so a terminal or VPS restart does not reset the logic. Entries for closed positions are cleaned up every minute.

- Works on hedging and netting accounts and on any symbol and timeframe. Attach it to one chart.

Prop Firm Equity Guard - daily loss and max drawdown protection Prop Firm Equity Guard - daily loss and max drawdown protection

Account-wide protection for prop firm and funded accounts: enforces a daily loss limit and a maximum overall loss (FTMO-style), closes all positions and blocks new trades when a limit is hit, with an optional profit target.

Thanos AI Level Strength Thanos AI Level Strength

Unbroken swing highs and lows, shaded by strength: how old each level is and how many times price was turned away from it.

Equivalence Checker: Regression Testing for MQL5 Indicators Equivalence Checker: Regression Testing for MQL5 Indicators

A regression-test harness for indicator code. It compares an incremental, tick-by-tick calculation (the way OnCalculate runs live) with an independent from-scratch reference on a fixed dataset, flags every deviation, and prints a regression digest you can compare between versions of your code.

True Trading Cost - Net Risk Reward Calculator for MT5 True Trading Cost - Net Risk Reward Calculator for MT5

Free MT5 chart planner with draggable entry, stop and target levels, spread, risk-based lots, fees, estimated swap, break-even and net risk/reward. Indicator only; no orders.