Save OHLCV Data from Chart to CSV File – script MetaTrader 5

Save OHLCV Data from Chart to CSV File - script for MetaTrader 5
The standard method of getting historical data in metatrader5 is to use “View>Symbols>Request” tool as shown in the picture below: However, this sometimes doesn’t return all the data available on the chart. This script saves all the available historical data to a CSV file located in “Files” folder inside the “Common Data Path” directory. Note: Make … Read more

Find Swing Highs Swing Lows – indicator MetaTrader 5

Find Swing Highs  Swing Lows - indicator for MetaTrader 5
Swing High/Low Identifier The Swing High/Low Identifier is a custom MetaTrader 5 (MT5) indicator designed to highlight significant swing points on your chart. This indicator identifies and marks swing highs and swing lows based on a configurable range of bars.  – Swing Highs are marked with red arrows above the respective candles. – Swing Lows are … Read more

Trailing Stop Management Function – script MetaTrader 5

Trailing Stop Management Function - script for MetaTrader 5
//+——————————————————————+ //|                                       TrailingStopManagement.mq5 | //|                                  Copyright 2023, MetaQuotes Ltd. | //|                                             | //+——————————————————————+ #property copyright “Copyright 2023, MetaQuotes Ltd.” #property link      “” #property version   “1.00” #define _MagicNum  NULL//set magic number input int    Stoplose      =992;// set stoplose value input int    TrailingStop  =986;// set TrailingStop value //+——————————————————————+ //| Script program start function                                    | //+——————————————————————+ void OnStart()   { //—    Management();   } //+——————————————————————+ //+——————————————————————+ //| Management … Read more

Delete all objects on chart (main window and sub window) with drag and drop – script MetaTrader 5

Delete all objects on chart (main window and sub window) with drag and drop - script for MetaTrader 5
If there are objects cluttering the chart, sometimes you might want to start afresh without having to delete the entire chart and load another one. This means it may be efficient to drag a script onto the chart in order to clean it. Like a “clear” or “cls” but for objects. The script was meticulously … Read more

Candle Analysis Report – script MetaTrader 5

Candle Analysis Report - script for MetaTrader 5
This script is designed to perform candle analysis: Data Retrieval: The script retrieves the open, close, high, and low prices of candles for the financial instrument it is running on. Candle Categorization: It categorizes each candle as bullish, bearish, or neutral based on the relationship between its closing and opening prices. Amplitude Calculation: It calculates … Read more

Determine Broker’s Daylight (DST) schedule – script MetaTrader 5

Determine Broker's Daylight (DST) schedule - script for MetaTrader 5
Script to determine whether your Broker follows the US, UK or AU daylight (DST) schedule. The script scans the H1 chart bars at the expected dates for the daylight changes, and by comparing the changes in server (bar) times at these bars, the DST schedule of your broker can be determined. DST_AU schedule: server dst … Read more