Code To Check And Delete Chart Objects For MT5 – script MetaTrader 5

Code To Check And Delete Chart Objects For MT5 - script for MetaTrader 5
To Check And Delete Chart Objects For MT5 Check And Delete Chart Object Script Scans through the current chart for any available chart objects, Counts and delete them accordingly -And log the the names of the objects on the chart respectively. Code To Check And Delete Chart Objects For MT5 – script for MetaTrader 5

Check Last Closed Trade (Profit / Type / Symbol etc.) – EA MetaTrader 5

Check Last Closed Trade (Profit / Type / Symbol etc.) - expert for MetaTrader 5
With this code block, you can get the last closed trade data without using loops.  Create a variable to set the current day start time. (This is not necessary to do.) Create some other variables to print a chart output and use if in other code blocks as well. (This is not necessary to do.) Using … Read more

Check Current Open Orders With Profit – script MetaTrader 4

Screenshot of the script "Check Current Orders With Profit v1.00".
This script lists current open orders with profit. The result is displayed in a message box. If there is at least one open order with profit, a report file is created in .txt format, in Files directory (<terminal_data_folder>/MQL4/Files/). The precise file name format is: report_open_orders_with_profit__[Account Name]__[Server Time].txt Check Current Open Orders With Profit – script … Read more

CheckHistory – Check and load history function – library MetaTrader 5

CheckHistory - Check and load history function - library for MetaTrader 5
Function to check and load history: This is slightly modified CheckLoadHistory function from MetaQuotes. Title: #include <komposter\String.mqh> Usage: void OnTick() {    static bool first = true;    if ( first && !CheckLoadHistory( _Symbol, _Period, BarsToAnalyze ) )       return;    else       first = false;    // add your code here } The history of changes: … Read more

Class for set and check your trading time – library MetaTrader 5

Class for set and check your trading time - library for MetaTrader 5
CTimeControl class for include to your EA for easy setting and checking your own trading time. An example of usage: Include: #include “TimeControl.mqh” Default constructor: CTimeControl   timeControl; Or constructor with days: CTimeControl timeControl(false, true, true, false, false, false, false); Or constructor with array of days settings and arrays for trading times in every day: … Read more

Lot Check – script MetaTrader 5

Lot Check
Idea by: Airat Safin Code mq5 by: barabashkakvn This is a utility script. The lot size is set in the inputs. As a result, we obtain a correctly rounded lot, as well as auxiliary data, such as maximum lot size, lot step, and minimum stop size. You can specify a necessary symbol to run calculations for. https://www.mql5.com/ru/code/22785 … Read more

Check Margin – script MetaTrader 5

Check Margin - script for MetaTrader 5
This script calculates required margin to open a trade by examining specified volume. It also calculates maximum amount of lots that can be traded for given symbol. PARAMETERS Symbol Name: select symbol for calculation. if it is not specified script takes chart symbol as default. Volume: specify lots for required margin calculation. Order Type: determine … Read more