Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Swap Cost Panel — tonight's rollover cost for every open position - indicator for MetaTrader 5

Shipra Gupta
Shipra Gupta
I’m Shipra Gupta, a trader and quantitative strategy developer with a strong background in mathematics, economics, and algorithmic trading systems. Over the years, I’ve worked extensively across forex, gold, indices, commodities, and crypto markets, focusing on building data-driven trading
Views:
25
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance


Why it matters


Swing systems on gold, indices and crypto hold positions for days or weeks. With interest rates high, long swaps add up every night. In one of the author's broker tests, swap took 15–18% of a Bitcoin EA's gross profit. Most traders only notice at the end of the month.

What the panel shows

Column Meaning
Symbol, B/S, lots The position
Swap Tonight's estimate in account currency; x3 on the triple-swap day
hop Cost of closing and re-opening: spread from OrderCalcProfit + commission
Verdict HOP +X when the swap costs more than the hop, otherwise hold
TOTAL Sum of tonight's swaps

Colours: green = swap earned, red = swap paid, orange = paid and worth hopping.

Swap modes supported


Mode Calculation
Points swap points × point value × lots
Deposit currency swap × lots
Interest (current or open price) notional × annual % / 360
Other modes shown as n/a

case SYMBOL_SWAP_MODE_POINTS: return(rate*PointValue(s)*lots); case SYMBOL_SWAP_MODE_CURRENCY_DEPOSIT: return(rate*lots); // triple swap: SymbolInfoInteger(s,SYMBOL_SWAP_ROLLOVER3DAYS)

Inputs

Input Default Description
Commission per lot 0.0 Round-trip commission in account currency
X / Y offset 12 / 40 Panel position
Background dark Panel colour
Max rows 12 Positions listed

Notes

The result is an estimate based on the symbol's current swap settings. Brokers can change swap rates at any time, and some use a different day convention.

Author: Shipra Gupta (SGupta30) · the author's SwapHop utility on the MQL5 Market automates this: it closes positions shortly before rollover when that is cheaper and re-opens them afterwards with the same SL/TP.


MTF Trend Dashboard — trend, position and volatility on six timeframes at a glance MTF Trend Dashboard — trend, position and volatility on six timeframes at a glance

One on-chart table for M15, H1, H4, D1, W1 and MN1: EMA slope, price vs EMA, Donchian position, ATR percentile and a combined UP / DOWN / RANGE regime. Completed bars only. Any symbol.

RSI Top and Bottom Scalper RSI Top and Bottom Scalper

RSI Top and Bottom Scalper is an MT5 indicator designed to identify potential reversal entries using RSI top and bottom retests together with price confirmation

H4 Breakout Retest EA for Gold (XAUUSD) H4 Breakout Retest EA for Gold (XAUUSD)

Gold EA: breakout of the first H4 candle with confirmation via a retest, fixed percentage stop and target, risk-based lot size and drawdown protection.

MACD Signals MACD Signals

Indicator edition for new platform.