PrevDayLines.mq4 – Draw Previous Day’s High, Low, and Average Price Lines – script MetaTrader 4

PrevDayLines.mq4 - Draw Previous Day's High, Low, and Average Price Lines - script for MetaTrader 4
The PrevDayLines.mq4 script is a tool for MetaTrader 4 that automatically draws three critical price levels from the previous trading day on your chart. These levels include the highest price (Max), the lowest price (Min), and the average price (Avg), providing traders with a clear visual reference for key support and resistance points. The script … Read more

Rotate TEXT – script MetaTrader 4

Rotate TEXT - script for MetaTrader 4
The script creates a text object on the chart that continuously rotates and changes its position based on price levels. While running, the text changes color and content depending on its position, adding a dynamic visual element to the chart. This can be particularly useful for traders who want to add annotations or dynamic markers … Read more

Abiroid Switch Templates Script – script MetaTrader 4

Abiroid Switch Templates Script - script for MetaTrader 4
Features: Switch sequentially between multiple Templates (as many as you want) Switch template in current chart OR for all charts Video Tutorial: How to Use: Open mq4 file in Metaeditor. Change the template names with any you like. Template names should be comma separated. extern string Templates = “1.tpl, 2.tpl, 3.tpl”; extern bool   ApplyAllCharts = … Read more

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

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