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

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

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

Dashboard Panel for displaying information on the chart – EA MetaTrader 5

Dashboard Panel for displaying information on the chart - expert for MetaTrader 5
Ever wondered how the dashboards and trading panels in Expert Advisors and indicators are created? Now you can learn to build your own! The attached code contains everything you need to create a fully functional and informative dashboard. With this code, you’ll have the foundation to design custom dashboards that display key trading data and … Read more

PTB – indicator MetaTrader 5

PTB - indicator for MetaTrader 5
Indicator Description: PTB.mq5 Overview: The PTB.mq5 indicator is designed for use in the MetaTrader 5 trading platform. It calculates and displays short-term and long-term high and low levels, along with Fibonacci retracement levels based on these extremes. Features: – Short-Term High and Low: The indicator computes the highest and lowest prices over a user-defined short … Read more