Fix the Python script for conversion of FXT format

MQL4 Script Integrazione

Specifiche

I've got convert_csv_to_mt.py script (in Python 3) which incorrectly converting the CSV files into FXT. Basically all timeframes have the same size, but they shouldn't. The size should be smaller as the timeframe increases.

Currently FXT files for one year have 80MB for all the timeframes which is not correct.

Notes: This was working some time ago. You may compare the logic with similar scripts

Reproducible steps using these commands (given the linked scripts and downloaded into the folder):

1. Download CVS files for 1 month:

python3 dl_bt_dukascopy.py -c -p EURUSD -y 2014 -m 1

2. Combine all CSV files into one file (Linux, on Windows you can just try with one file):

find . -name "*.csv" -print0 | sort -z | xargs -0 cat > all.csv

3. Convert CSV into FXT (should be less than 2 mins):

time python3 convert_csv_to_mt.py -v -i all.csv -s EURUSD -t M1,M5,M15,M30,H1,H4,D1,W1,MN -f fxt4

4. Now all the files have 77MB, but the size should decrease as the timeframe is higher.

Requirements:

- the script should not take higher time of the conversion process than the current (since it has less processing)

- the output format should be valid and pass the validation tests (which it is currently),

- the output format should work fine under MT4 platform (as it is currently)

Con risposta

1
Sviluppatore 1
Valutazioni
(28)
Progetti
36
17%
Arbitraggio
5
20% / 40%
In ritardo
17
47%
Gratuito
Pubblicati: 5 codici
Ordini simili
I NEED A TRADING BOT , WITH 99 PERCENT PROFITABLE, IT SHOULD BUY AND SELL ON MATHEMATICAL BASIS, IF ANYONE MY FRIEND HAVE THAT KIND OF SKILL OR EXPERTISE FOR MAKING BEST TRADING ROBOT , PLEASE REPLY WE CAN DEFINITELY MAKE SOMETHING BIG AND BEST TOGETHER. anyone have expertise,, plz reply
Shybossforex robot 30 - 50 USD
Shybossforex strategy full data continuation and reversal.The strategy of continuation and reversal is trading technique 5hat involves two different approach to trade execution.The continuation and reversal is based on assumption that current market trend will continuation in future and therefore inloves taking position in same direction as prevailing trending,I will wait for the pullback and continuation trade with
I need a custom options scanner built with the following features: Scan ATM call or put options with the same expiry . Filter for open interest ≥ 175 . Expiration between 1 to 60 days . Underlying stock price between $5 and $175 . Use mark price for calculations. Results should be sortable by debit or credit . Scanner should include ETFs as well as stocks . Goal: A simple and efficient scanner that quickly identifies
BOT for Deriv! 45+ USD
Hi guys, I need to create a bot for deriv, it will do this: *** Send "CALL" for volatility indexes and Jump indexes with expiry 10 seconds. *** Send "PUT" for volatility indexes and Jump indexes with expiry 10 seconds. i need the file to be ready in 1 hour

Informazioni sul progetto

Budget
40 - 60 USD
Per lo sviluppatore
36 - 54 USD
Scadenze
da 2 a 5 giorno(i)