INI File – library MetaTrader 5

The ini file can be saved at any place.
A library to provide simple storage mechanism for expert advisors and indicators. Library Functions //— If the key is not found, the returned value is NULL. bool  GetIniKey          (string fileName, string section, string key, T &ReturnedValue) //— add new or update an existing key. bool  SetIniKey          (string fileName, string section, string key, T value) int   GetIniSectionNames (string fileName, string … Read more

CSV file reader for MQL5 – library MetaTrader 5

CSV file reader for MQL5 - library for MetaTrader 5
Usage of the class 1. Set up an array of column descriptions  in an MqlParam array.    CCsvReader infile;    MqlParam example_column_desc[] =    {     { TYPE_STRING,   0, 0.0, “symbol” },       // 1. field is string     { TYPE_DOUBLE,   0, 0.0, “contractsize” }, // 2. field is double     { TYPE_DATETIME, 0, 0.0, “expiration” }    // 3. field … Read more

CSV file creating example expert – EA MetaTrader 4

CSV file creating example expert - expert for MetaTrader 4
Hi fellas i’m Lucas,i thought i should contribiute with something to this wonderful community which i have learned a lot from reading good informative articles and much more. Myself then, forex and stock market investor and i’m coding experts for my personal trading only. So here’s my contribution and i hope some of you guys … Read more

Listing all MT5 Signals’ properties to a CSV file – script MetaTrader 5

Listing all MT5 Signals' properties to a CSV file - script for MetaTrader 5
This simple, quick & dirty script code will output a CSV file of all the Signals’ properties as reported by the MQL5 Trade Signals functionality. With the resulting CSV file opened as a spreadsheet (e.g. Excel), you can sort them by your preferred metrics and choose that suite your requirements for copy trading.  Please note … Read more

Listing all MT4 Signals’ properties to a CSV file – script MetaTrader 4

Listing all MT4 Signals' properties to a CSV file - script for MetaTrader 4
This simple, quick & dirty script code will output a CSV file of all the Signals’ properties as reported by the MQL4 Trade Signals functionality. With the resulting CSV file opened as a spreadsheet (e.g. Excel), you can sort them by your preferred metrics and choose that suite your requirements for copy trading. Please note … Read more

Grid and Martin Gale include file – library MetaTrader 4

Grid and Martin Gale include file - library for MetaTrader 4
This include file provides programmers with a seamless solution for creating Martin Gale trading strategies effortlessly. The classes GridStrategy and MartinGaleStrategy are derived from the Strategy class, which encompasses various attributes such as Startprice, Lots(Volume available for the strategy), TakeProfit, Stoploss (in monetary terms), and more. While Grid and Martin Gale strategies possess their own … Read more

Grid, MartinGale include File – library MetaTrader 5

Grid, MartinGale include File - library for MetaTrader 5
This include file provides programmers with a seamless solution for creating Martin Gale trading strategies effortlessly. The classes GridStrategy and MartinGaleStrategy are derived from the Strategy class, which encompasses various attributes such as Startprice, Lots(Volume available for the strategy), TakeProfit, Stoploss (in monetary terms), and more. While Grid and Martin Gale strategies possess their own … Read more

Simplest CSV file reader – script MetaTrader 5

Simplest CSV file reader - script for MetaTrader 5
Use this simplest class to read CSV file with out any preparations and types casting declarations. Find the shortest usage example below. string Filename = “filename.csv”; CDKSimplestCSVReader CSVFile; // Create class object // Read file pass FILE_ANSI for ANSI files or another flag for another codepage. // Give values separator and flag of 1sr line … Read more