MT5CopyTicksFrom {MetaTrader}R Documentation

Get ticks starting from the specific date

Description

Gets the specified number of ticks of a financial instrument starting from the specified date.

Usage

  MT5CopyTicksFrom(symbol, from, count, flags)

Arguments

symbol

symbol name, for example "EURUSD"

from

the date from which you want to request ticks specified in milliseconds since 1970.01.01

count

number of ticks to get

flags

a flag to define the type of the requested ticks, specified as a value of the MT5_COPY_TICKS enumration

Details

For additional information, see https://www.mql5.com/en/docs/series/copyticks

Value

Returns a matrix with tick values:

time Time of the last price change specified in milliseconds since 1970.01.01
bid Bid price
ask Ask price
last Price of the last deal
volume Volume of the last deal
flags Tick flags specified as values of the MT5_TICK_FLAG enumration
                 time     bid     ask last volume flags
    [1,] 1.548634e+12 0.71748 0.71784    0      0   134
    [2,] 1.548634e+12 0.71749 0.71784    0      0   130
    [3,] 1.548634e+12 0.71764 0.71802    0      0   134
    [4,] 1.548634e+12 0.71766 0.71804    0      0   134
    [5,] 1.548634e+12 0.71778 0.71816    0      0   134
  

Examples

	MT5CopyTicksFrom("EURAUD", as.POSIXct("2019-01-28 13:00:00"), 10000, MT5_COPY_TICKS_ALL)

[Package MetaTrader version 1.0.3 Index]