MT5.QuickLastRow_GetSymbol: Load last row from MT5

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/Source_MT5.R

Description

Function to load the last row of a specific time frame of a vector of symbols. All the data come from socket connection.

The usage of this function is preferable than use MT5.Quick_GetSymbol() several times for each symbol.

Usage

1

Arguments

iTF

int; target time frame. See details.

sSymbol

character(); vector of target symbols.

Details

Supported time frames (iTF). See references for even more details.

Value

Returns [nx7] {data.frame} {Date, sSymbol, Open, High, Low, Close, Volume}.

Author(s)

Guilherme Kinzel, guikinzel@gmail.com

References

https://en.wikipedia.org/wiki/Open-high-low-close_chart

https://www.mql5.com/en/docs/constants/chartconstants/enum_timeframes

See Also

MT5.GetSymbol(), MT5.Quick_GetSymbol()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
## Get last row of EURUSD and GBPUSD, 30 minute timeframe both
MT5.QuickLastRow_GetSymbol(c("EURUSD", "GBPUSD"), 30)

## Returns
##                  Date sSymbol    Open    High     Low   Close Volume
## 1 2020-12-11 00:30:00  EURUSD 1.21371 1.21401 1.21370 1.21394    184
## 2 2020-12-11 00:30:00  GBPUSD 1.33030 1.33032 1.32947 1.32993    866


## End(Not run)

Kinzel/mt5r documentation built on March 25, 2021, 9:57 p.m.