Five items to check the swap for long-term holding EAs
When researching EAs that hold positions for a long period, do you check not only the profit and loss and drawdown, but also the swap calculation conditions applied during the holding period?
![]()
Previously, we examined 2,220 positions by holding period and confirmed that long-held positions play a major role in the profit-and-loss composition analyzed. This aggregation does not indicate the swap amount for the EA in question. If you read the holding period, you need to separately verify the costs incurred during the holding period.
Here, we summarize five items to avoid misreading swap values when viewing buy/sell swaps in MT5, and the order to verify history. For specific conditions, please check with the broker and trading server you are using.
Five items to confirm before the swap value
1. Swap calculation method
Check the SYMBOL_SWAP_MODE of the instrument specification. Depending on whether it is point-based, currency-based, or based on interest rate method, the meaning of the displayed value and the calculation assumptions differ. Merely comparing values across different instruments or accounts does not guarantee the same cost conditions.
2. Buy and sell values
Record buy side (SYMBOL_SWAP_LONG) and sell side (SYMBOL_SWAP_SHORT separately. The values can differ by direction. If the EA trades both directions, cross-check with each holding history.
3. Display unit and account currency
Verify which unit the displayed value uses—points, account currency, base currency, etc. Do not estimate profit and loss by multiplying the displayed value by lots or holding days without confirming the calculation method. Also review instrument specification and account currency, and, if necessary, refer to the trading server description.
4. Three-day rollover days
With SYMBOL_SWAP_ROLLOVER3DAYS, confirm the weekday on which three days of swap are accrued. Do not generalize the day of the week; record the specifications of the instrument and server you are using. Also verify weekend and holiday treatment as needed by the trading conditions.
5. Test conditions and actual history
For settled trades, DEAL_SWAP indicates the accumulated swap at settlement. For positions currently held, POSITION_SWAP is the candidate for accumulated swap. Since the timing and meaning differ, do not mix in the same column; record together with the position ID, direction, quantity, and holding period.
Record sheet
・Trading server and account type (with personal information masked)
・Official instrument name
・Swap mode
・Swap long / short
・Display unit / account currency
・Three-day rollover weekday
・Test period / price data / test mode
・DEAL_SWAP / POSITION_SWAP (settled / held currently)
・Unconfirmed items (clearly state if not inferred)
Order of verifying long-term history
1. Define the aggregation unit and holding period.
2. Separate settled DEAL_SWAP and held POSITION_SWAP. Also confirm direction, quantity, and holding period together.
3. If there are multiple deals due to partial settlements, track the history by Position ID before simply summing values.
4. If values cannot be obtained, do not fill by estimation; record as “Unconfirmed.”
5. Read profits and losses by the EA logic separately from swaps and fees.
6. Do not deduce future costs from past history.
The previous analysis of 2,220 positions was an aggregation by holding period and does not indicate the swap amount for this article. Use it as a procedure to separately verify costs when reading the results of long-term holdings.
Summary
The swap of long-term-held EAs cannot be judged from the displayed number alone. Check the calculation method, buy/sell, display unit, three-day rollover weekday, and the history of settled vs. held positions. Specifications may differ depending on the broker and trading server you use, so please confirm in your environment.
This article provides a general explanation for confirming MT5 instrument specifications and trading history and does not endorse buying or selling particular instruments or EA operation. Past results do not guarantee future profits.
References
MQL5 Official: Symbol Properties https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants
MQL5 Official: Deal Properties https://www.mql5.com/en/docs/constants/tradingconstants/dealproperties
MQL5 Official: Position Properties https://www.mql5.com/en/docs/constants/tradingconstants/positionproperties