MT5.SymbolType: Symbol type

Description Usage Arguments Value Author(s) Examples

View source: R/Source_MT5.R

Description

This function is useful to know what kind of asset target symbol is.

It can be used for several symbols at once using a character vector.

This function will automatically manage if the sSymbol is in marketwatch. Not advisable for huge vectorized uses, use a loop instead for safer handling.

Usage

1
MT5.SymbolType(sSymbol)

Arguments

sSymbol

character(); target symbols.

Value

Returns int vector, with follow information:

Author(s)

Guilherme Kinzel, guikinzel@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

MT5.SymbolType("EURUSD")

## Returns
# 3

MT5.SymbolType(c("CADJPY", "UK Oil"))

## Returns
# 3 4


## End(Not run)

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