당사 팬 페이지에 가입하십시오
- 게시자:
-
Cristian David Castillo Arrieta
재무 및 국제 비즈니스 전문가로 재무 관리를 전공했습니다. MQL5와 Python 독학 개발자로서 알고리즘 트레이딩, 멀티에셋 포트폴리오 구축, 정량적 리스크 관리에 집중하고 있습니다.
저의 작업은 개별 전략이 아닌 조율된 포트폴리오로 작동하는 Expert Advisor의 설계, 최적화 및 검증에 중점을 두고 있습니다. 상관관계 분석, 시간대 커버리지 매핑, 자산군 분산화를 적용하여 단일 상품이나 단일 접근 방식에 의존하지 않는 시스템을 구축합니다. - 조회수:
- 125
- 평가:
- 게시됨:
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Scaling out of a position is usually assumed to help, but no standard MetaTrader report compares the blended result against what the same position would have returned if the trader's own exit prices had been used differently.
The script reads a CSV of closing deals and prints a full report to the Experts tab:
- Value-Add Ratio — the aggregate value scaling added, against holding the full position to the last exit.
- Scale-Out Win Rate — the share of scaled positions where scaling out beat holding to the last exit.
- Scaling Efficiency — the share of the best outcome available among the trader's own exit prices that was actually captured.
- A composite score (A+ to F) combining the three dimensions, with a single-trade dependence check and written recommendations.
Input. Place a CSV named in the InpFileName input (default ScaleOutData.csv) in the terminal MQL5\Files folder, with the header PositionID,Symbol,Direction,EntryTime,EntryPrice,EntryCount,TotalVolume,ExitTime,ExitPrice,ExitVolume,ExitProfit,ExitCommission,ExitSwap and one row per closing deal. On the first run, if no file is found, the script generates a built-in demonstration set and analyzes it, so the report is visible immediately. The companion script ScaleOutExport.mq5 writes that file directly from the terminal's own account history: run it once (optionally setting a from/to date range), then run ScaleOutValue.mq5 on the file it produces.
Parameters. InpFileName sets the input CSV; InpMinScaledPositions sets the minimum number of scaled positions required before a grade is produced; InpWeightValueAdd, InpWeightHitRate and InpWeightEfficiency set the three composite weights (normalized automatically); InpValueAddSensitivity sets how strongly the Value-Add Ratio moves its sub-score; InpGradeAPlus through InpGradeD set the letter-grade boundaries; InpHitRateAlertBelow, InpEfficiencyAlertBelow and InpStressDependenceAlert set the thresholds that trigger each written recommendation.
The tool is written in pure MQL5. It needs no external libraries, no Python and no DLLs. A full description of the method and the code is available in the article: [ARTICLE_URL].
Smart Trade Manager for MT5
Automatic structure-based SL, breakeven, ATR trailing, and dollar-based profit protection for manual MT5 trades and pending orders on Gold and selected FX pairs.
Swing High Low - Non-Repainting Pivots with Push/Email Alerts
Marks non-repainting swing highs and lows using configurable LeftBars / RightBars pivots. Sends push and email alerts on each new confirmed swing.
Structure Range
Sell Arrow SL Box: Extends UPWARDS from the Sell Arrow. Buy Arrow SL Box: Extends DOWNWARDS from the Buy Arrow.
MACD Signals
Indicator edition for new platform.
