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
Komut dosyaları

Weekend Gap Check - prop firm gap risk before the Friday close - MetaTrader 5 için komut dosyası

Amedeo Nustriani
Amedeo Nustriani
MQL5 / MQL4 developer. I build exactly what the specification says, and I
test it before I hand it over.
WHAT I BUILD
Expert Advisors for MT4 and MT5, single or multi-symbol
Custom indicators, scripts, panels
MT4 to MT5 conversion, TradingView (Pine) logic rebuilt in MQL5
Görüntülemeler:
124
Derecelendirme:
(1)
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Weekend Gap Check - example of the result on the chart

For every open position the script estimates the loss if the market reopens with a gap against it, adds them up, and compares the total with the room left under the daily loss limit of the next trading day. Run it before the Friday close, or before a holiday.


What it shows

- The daily limit of the next day, in money.

- The floating loss you carry over. If your firm measures the trading day from the balance, this loss already uses part of the next day's limit before any gap.

- For each position: symbol, side, lots, the gap you accept for its group, and the loss that gap would cause.

- The verdict: OK, or TOO MUCH with how much to reduce every position.


Why it matters

A stop loss does not protect you from a gap. It is filled at the first price after the gap, so the loss can be much larger than the stop.


Inputs

- Account size (0 = current balance), daily loss limit %, safety margin %.

- Whether a floating loss carried over counts against the next day's limit. Check how your firm defines the start of the day.

- The gap you accept, as % of the price, for currency pairs, metals, indices, crypto and everything else. Crypto often trades in the weekend: there the setting is the move while you are away.

- The symbol groups, as parts of the name (XAU, US500, BTC...).


How the loss is calculated

Loss of a position = price x gap % / tick size x tick value x lots. The tick value comes from your broker, so the result is in your account currency.


It only reads the account. It never opens, changes or closes a position. The gap sizes are your assumptions, not a forecast.

MTF Trend Context - Vian MTF Trend Context - Vian

A compact MetaTrader 5 indicator that classifies five selected timeframes as Bullish, Bearish, Neutral, or N/A using price and EMA alignment, then summarizes whether the timeframes are aligned or mixed. This is a market-context indicator, not a standalone trading signal

Magic Number Scorecard - win rate, profit factor and drawdown per EA Magic Number Scorecard - win rate, profit factor and drawdown per EA

Running several EAs on one account? This script groups the closed trades by magic number and shows the score of each EA: win rate, profit factor, net profit and drawdown. Read-only, writes a CSV file.

MarketInfo MarketInfo

MarketInfo is a simple information script for MetaTrader 5. It collects and logs key data for the current instrument: prices, spread, volatility (ATR), time remaining until the bar closes, statistics covering N bars, and trend identification.

MACrossoverEA MACrossoverEA

The advisor opens trades when two moving averages (Fast and Slow) cross. It works on any instrument and timeframe.