Skip to content

margohpolo/Py_CleaningData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Py_CleaningData

Download from QuantConnect | Format for MT4 | Written in Python.

Description

Data from QuantConnect is not compatible for uploading to MT4; therefore this bit of code was written to convert the formatting.

Before

Not even readable Milliseconds Elapsed Since Midnight |Bid Rates: Open-High-Low-Close & Volume(0) | Ask Rates: Open-High-Low-Close & Volume(0)

After

Much better Date | Time | Open-High-Low-Close & Volume(0)

Afterthoughts

  • Did not convert from server date and time (probably Cyprus) to local (Singapore). Bigger picture, though, may not matter.
  • Could have found a solution to automate the formatting process, to loop through all the files in the folder. (Instead, manual input is required)
  • My original intentions were to obtain more data, to vigorously backtest a trading bot I wrote in MQL4 language. I would have also uploaded MQL4 code for my automated trading strategy on MT4, but (a) running MT4 with over a decade of historical data causes it to constantly crash; & (b) said trading bot lost money in a horrendous manner when backtest period was longer than a couple of years.
  • Nonetheless, learning how to format CSV data got me interested in Python.

About

Download from QuantConnect; Format for MT4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published