lazytrade (version 0.4.0)

import_data_mt: Import Market Type related Data to R from the Sandbox

Description

Function imports file from the MetaTrader sandbox. Function performs necessary cleansing of the data column types

Usage

import_data_mt(path_terminal, trade_log_file, system_number, demo_mode = FALSE)

Arguments

path_terminal

- path to the sandbox

trade_log_file

- direct path to the log file (used for demo purposes)

system_number

- magic number id of the trading system

demo_mode

- when true, uses sample datafile stored in the package

Value

function returns the data frame with 3 columns including market type code

Examples

Run this code
# NOT RUN {
library(dplyr)
library(readr)
import_data_mt(trade_log_file = system.file("extdata", "MarketTypeLog8132101.csv",
                                            package = "lazytrade"),
               demo_mode = TRUE)



# }

Run the code above in your browser using DataLab