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

Description Usage Arguments Value Author(s) Examples

View source: R/mt_import_data.R

Description

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

[Stable]

Usage

1
mt_import_data(path_sbxm, system_number)

Arguments

path_sbxm
  • String, Path to the sandbox with the log file (master terminal)

system_number
  • magic number id of the trading system

Value

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

Author(s)

(C) 2020, 2021 Vladimir Zhbanko

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(dplyr)
library(readr)
library(lazytrade)

path_sbxm <- normalizePath(tempdir(),winslash = "/")

file.copy(from = system.file("extdata", "MarketTypeLog9139106.csv", package = "lazytrade"),
          to = file.path(path_sbxm, "MarketTypeLog9139106.csv"), overwrite = TRUE)

DF1 <- mt_import_data(path_sbxm = path_sbxm,
                      system_number = 9139106)

lazytrade documentation built on Dec. 16, 2021, 1:06 a.m.