Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Views:
831
Rating:
votes: 19
Published:
2017.11.03 11:22
Updated:
2017.11.09 11:00
\MQL5\Files\
SaveTicks.mq5 (7.27 KB)view

This utility program is designed for recording tick quotes in the text (CSV) and binary (BIN) format. Files are saved to the MQL5\Files folder. Quotes are recorded with a constant sampling frequency to ensure a convenient analysis of ticks in mathematical programs.


Input Parameters

  • Recording interval - the interval of tick recording, milliseconds.
  • The symbols chosen as... - method of symbol selection for writing.
    • All symbols - writing all symbols provided by the broker.
    • MarketWatch symbols - writing all symbols from the Market Watch.
    • Load list of symbols from file - the list of symbols is loaded from a file.
  • Name of file with all symbol names - the name of the file with the list of symbols, e.g. "InputSymbolList.txt".
  • Format recording - CSV or Binary.
  • Time format - time setting. It can be either server time or computer time.

An example of algorithm with "Load list of symbols from file".

  1. Run the Expert Advisor with any parameters, unload the EA.
  2. The resulting file "\MQL5\Files\AllSymbols_SaveTicks.txt" will contain the names of all symbols provided by the broker.
  3. Rename it, for example to "InputSymbolList.txt".
  4. Edit "InputSymbolList.txt" leaving required symbols in it. The first line should show the number of symbols in the file. See the example in the download list at the top of this page.
  5. Run the EA again with necessary settings, and it will record ticks for symbols form the list.
  6. Check the "\MQL5\Files\*****" folder , it should have files with names like EURUSD_SaveTicks.csv.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/18046

VWAP Custom Position VWAP Custom Position

Standard VWAP (Volume Weighted Average Price) calculation, but with configurable start position.

HistoryPositionInfo version 2 HistoryPositionInfo version 2

Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.

Omni_Trend Omni_Trend

A trend indicator of NRTR type using an MA and ATR.

Omni_Trend_HTF Omni_Trend_HTF

The Omni_Trend indicator with the timeframe selection option available in the indicator input parameters.