FX31337 / FX-BT-Scripts

:page_facing_up: Useful scripts for backtesting.
MIT License
34 stars 39 forks source link

FXT format consist ending zero closing prices (Python) #88

Open kenorb opened 7 years ago

kenorb commented 7 years ago

Required fix in: convert_csv_to_mt.py file. The converted FXT file from CSV data files consist possibly zero values as per chart below.

In the platform, this can be tested by running terminal.exe (e.g. via wine with X11 forwarding if inside VM), then from menu select File -> Open Offline, and select the file (hover on the item to see the file path). The FXT file needs to be copied to tester/history folder of the platform to be visible (e.g. ~/.wine/drive_c/Program Files/MetaTrader 4/). Once opened, you should see this window (zoom out or resize window to catch the zero value):

screen shot 2016-12-14 at 22 52 44
kenorb commented 7 years ago

Could be a platform bug as there is no zero values in the data file. Needs reproducing steps.

Uptacknerd commented 2 years ago

Hi

I observed the same problem. After some researches, I found that a fxt file generated by MT4 itself also shows a this final bar with all values to zero and a date of 1970-0&-01 00:00:00. The fxt does not contains such bar at the end, so I believe there is a bug in MT4