Description Usage Arguments Value Author(s) Examples
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.
1 | MT5.SymbolType(sSymbol)
|
sSymbol |
character(); target symbols. |
Returns int
vector, with follow information:
-1: not found
0: stock
1: options
2: future contracts
3: Forex
4: CFD
Guilherme Kinzel, guikinzel@gmail.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.