Trades to CSV – EA MetaTrader 4

Exported Results
Real author: Inovance Export the trade details (order, trade return, ticket number, open price, close price, open timestamp, close timestamp, currency pair, position size) from a backtest or live trading to a CSV file. To use, input your trading logic inside the Signal() function (return 1 for long signals, 2 for short signals), name the … Read more

Trade History Export to CSV – indicator MetaTrader 4

EURUSDProHistory
Exports CSV file to analyze trade history for a symbol. Input parameters: InputFileName — export file name InputDirectoryName — export directory name InputHistoryStartDateTime — analysis start date InputHistoryEndDateTime — analysis end date Analysis trade type: OpBuy — Buy OpBuyLimit — Buy Limit OpBuyStop — Buy Stop OpSell — Sell OpSellLimit — Sell Limit OpSellStop — … Read more

History Dump CSV with heat map for Excel analysis – script MetaTrader 4

Drag script onto any chart. Popup confirms the output filename.
Do you need to know at what times of the day you are winning or losing compared to other times or the day? This script creates a .CSV file of your order history so you can import it into Excel and analyse it. It extracts all order information. Date / time information in both native … Read more

Converting hst-files into csv files – script MetaTrader 4

Converting hst-files into csv files - script for MetaTrader 4
The hst2csv script is used for converting *.hst files to *.csv files, that can be imported into the MetaTrader 4 client terminal with no errors.Script Operation Principle The input_file_name parameter must be specified with the extension. Extensions other than *.hst are not processed; The input_file_from_history parameter set to ‘true’ allows to open files from the … Read more

Export trade history to CSV v2 – script MetaTrader 5

Export trade history to CSV v2 - script for MetaTrader 5
This is the version 2 of my script to export the trade history from MT5 selected between two dates. The resulting file is CSV that can be opened/imported with any spreadsheet software. The CSV can be found in the folder MQL5Files Following data columns are exported: Position ID Type Symbol Volume Open Date/Time Open Price … 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