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

Smart Break-Even and Partial Close - R-based trade manager - MetaTrader 5용 expert

Deepanshu Goyal
Deepanshu Goyal
  • MQL5 Developer: Expert Advisors, Indicators, Algo Trading Setups 에  Freelance
  • 인도
  • 483
MetaTrader 5용으로 고객님의 규칙을 정확히 따르는 전문가 어드바이저(EA)와 지표를 개발합니다. 깔끔한 코드로 작성하며 납품 전에 테스트합니다.
조회수:
102
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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.