Push Notification for Opened / Closed Trades (Netting) – library MetaTrader 5

Push Notification for Opened / Closed Trades (Netting) - library for MetaTrader 5
Features Sends notifications for trade opens and closes Shows trade type (Buy/Sell) and lot size for new trades Displays profit/loss for closed trades Works in both live trading and strategy tester (sends to logs in tester) Monitors last 2 hours of trading history Prevents notification spam through basic throttling Installation Add this function to your … Read more

Crossover Vortex – MT4 EA – EA MetaTrader 4

Crossover Vortex - MT4 EA - expert for MetaTrader 4
This EA identifies critical moving average crossovers, providing accurate buy and sell signals at key market moments. With fully customizable moving average, take profit, stop loss, and slippage settings, Crossover Vortex offers flexibility and control, ensuring that each trade is executed efficiently and with minimal risk. It’s built for traders who aim to capitalize on … Read more

Simplest Logger class for MetaTrader 5 – library MetaTrader 5

Simplest Logger class for MetaTrader 5 - library for MetaTrader 5
Every programmer has their own logger. I wrote my own for MQL5, inspired by the Python logging module. This class is simplest. No hierarchy, rotators or formatters. It’s simple and convenient for any project. Installation Copy CDKLogger.mqh to MQL\Include\DKStdLib\Logger folder. Import CDKLogger class. #include <DKStdLib\Logger\CDKLogger.mqh onee CDKLogger logger; // STEP 1. Init Logger with “MyLoggerName” … Read more

Simplified “EuroSurge” Expert Advisor (EA) for MetaTrader 4 (MT4) – EA MetaTrader 4

Simplified "EuroSurge" Expert Advisor (EA) for MetaTrader 4 (MT4) - expert for MetaTrader 4
This code represents a simplified version of “EuroSurge” Expert Advisor (EA) for MetaTrader 4 (MT4). It implements multiple technical indicators for trade signal generation, provides configurable lot sizing, and manages trades based on specific conditions. The Default settings work for EURUSD 5min Settings based off optimizations since 2020Input Parameters Trade Size Calculation: The EA allows … Read more

Script to extract Candlesticks data from all time frames to CSV. – script MetaTrader 5

Script to extract Candlesticks data from all time frames to CSV. - script for MetaTrader 5
Overview of the CandlesticksData Script The CandlesticksData script is designed for the MetaTrader 5 trading platform, allowing traders and developers to export detailed candlestick data into a CSV file for further analysis or record-keeping. This script is particularly useful for quantitative analysis, backtesting trading strategies, or for educational purposes, enabling users to examine historical price … Read more

TimeServerDaylightSavings – script MetaTrader 5

Example of week opening hour changes in quotes due to DST switch
This script introduces the function TimeServerDaylightSavings() that is missing among the built-in ones, which provide only TimeDaylightSavings() for local computer. In addition the attached header mqh-file includes some other helpful server-bound time-related functions, in particular allowing you to know if your broker uses DST switches in general. All this is based on empirical analysis of … Read more

Custom crosshair cursor with synchronization – indicator MetaTrader 5

Custom crosshair cursor with synchronization - indicator for MetaTrader 5
Useful for multi timeframe charts to locate candle of interest.It converts optionally server time to local time shown as tooltip. Press [Ctrl] or [Shift] key while moving mouse on a chart to reposition the custom crosshair cursor. Indicator parameters: Show localtime display localtime as tooltip Cursor colorcolor of crosshair cursor Cursor namesame cursor name will … Read more

Auto Profit Closer – MT4 EA – EA MetaTrader 4

Auto Profit Closer - MT4 EA - expert for MetaTrader 4
Auto Profit Closer is a highly efficient and user-friendly Expert Advisor designed to automate the process of closing all open trades once a predefined profit target is reached. Parameter: TargetProfit: allows users to set their desired profit threshold. This EA is ideal for traders looking to secure their gains without constantly monitoring the market, offering … Read more