Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter ü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
Komut dosyaları

Neural Loss-Pattern Auditor - MetaTrader 5 için komut dosyası

Real Author
Yayınlayan:
Cristian David Castillo Arrieta
Cristian David Castillo Arrieta
Finansal Yönetim alanında uzmanlaşmış Finans ve Uluslararası İş profesyoneli. Algoritmik ticaret, çoklu varlık portföy oluşturma ve kantitatif risk yönetimi odaklı, kendi kendini yetiştirmiş MQL5 ve Python geliştiricisi.
Görüntülemeler:
327
Derecelendirme:
(1)
Yayınlandı:
Güncellendi:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git



Aggregate statistics such as win rate or profit factor cannot show whether the probability of a loss depends on what a trader just did, such as sizing up right after a previous loss. Neural Loss-Pattern Auditor tests for exactly that kind of behavioral pattern, directly on the trader's own trade history.

The main script builds an eight-feature dataset per closed deal and prints a full diagnostic report to the Experts tab:

  • Accuracy uplift — the trained network's validation accuracy against the accuracy of always guessing the majority class.
  • Calibration table — each probability bin's average prediction against the actual observed loss frequency in that bin.
  • Permutation feature importance — which of the eight features the network actually relies on, ranked by the accuracy drop when that column is shuffled.
  • A composite score (A to F) combining the three diagnostics, with written recommendations.

Input. With the default InpUseDemoData=true, the script generates 480 synthetic closing deals with a known injected pattern (larger position size right after a loss) and analyzes those, so the output is visible immediately. Set InpUseDemoData=false to read real closed-deal history instead, through HistorySelect() and the HistoryDealGet*() functions; no file or CSV is needed in this mode.

Parameters. InpMinTrades sets the minimum closed trades required before training; InpValidationFraction sets how much of the most recent history is held out for validation; InpHiddenNeurons, InpLearningRate, and InpEpochs control the network; InpCalibrationBins and InpPermutationRepeats control the two diagnostics; and InpWeightUplift, InpWeightCalibration, InpWeightTopFeature plus the three *Scale and four Grade inputs control the composite score.

The tool is written in pure MQL5. It needs no external libraries, no Python, and no AI service of any kind. A full description of the method, the math behind each diagnostic, and the code is available in the article: [ARTICLE_URL].

Fair Value Gap Detector Indicator Fair Value Gap Detector Indicator

Detects 3-candle Fair Value Gaps (price imbalances) and draws them as boxes that extend live until price trades back through the gap. Detection runs only on fully closed bars, so gaps never flicker in and out as the current candle forms.

Interactive On-Chart Risk Management and Execution Panel Interactive On-Chart Risk Management and Execution Panel

An interactive GUI panel for MetaTrader 5 designed for manual traders and quant developers. It automates dynamic position sizing based on exact account equity risk percentage, features one-click order execution (Buy/Sell), instant BreakEven, Close All functionality, and continuous real-time Trailing Stop management.

MT5 Vertical Scroll MT5 Vertical Scroll

This allows mt5 chart to scroll like tradingview chart with auto button to reset

Liquidity Sweep Detector Indicator Liquidity Sweep Detector Indicator

Marks fractal swing highs/lows as liquidity levels, then flags the exact bar where price wicks beyond one and closes back inside — a liquidity sweep / stop hunt — with an arrow and an optional price label. Sweep checks run only on closed bars, so signals never repaint.