Is there software (or Python / R / ... scripts) to generate (pseudo) tick data from candlestick data.
I have candlestick data (CSV format) from monthly timeframe (MN) to minute timeframe (M1) but time range can be different. Filenames are :
SYMBOL1.csv
for M1 timeframe (1 minute)SYMBOL5.csv
for M5 timeframe (5 minutes)SYMBOL15.csv
for M15 timeframe (15 minutes)SYMBOL30.csv
for M30 timeframe (30 minutes)SYMBOL60.csv
for H1 timeframe (1 hour)SYMBOL240.csv
for H4 timeframe (4 hours)SYMBOL1440.csv
for D1 timeframe (1 day)SYMBOL10080.csv
for W1 timeframe (1 week)SYMBOL43200.csv
for MN timeframe (1 month)
I would like to feed software or script with every csv file. I would like to give start datetime and end datetime and software will output a csv file with ticks data.
Ticks data will be generated from the longest timeframe to the shortest timeframe (if data exists). For example the software will output ticks data from M1 candlestick timeframe if data exists for the requested time interval. If there is no data in M1 timeframe, software will try to find data in M5 timeframe to generate ticks.
I understand that the generated ticks will be generated using interpolation (so they won't be exacts)
Such ideas are implemented in Metatrader Strategy Tester http://www.metatrader5.com/en/terminal/help/tester/tester_using/tick_generation
$ head _FRA401.csv
2010.11.16,08:01,3818.0,3820.0,3817.5,3820.0,41
2010.11.16,08:02,3820.0,3823.0,3801.0,3823.0,38
2010.11.16,08:03,3823.0,3825.0,3823.0,3823.5,28
$ tail _FRA401.csv
2012.11.01,18:32,3477.0,3477.0,3474.0,3474.5,37
2012.11.01,18:33,3474.5,3476.0,3474.5,3475.5,25
2012.11.01,18:34,3475.5,3476.0,3471.5,3472.5,62
$ head _FRA4043200.csv
2010.11.01,00:00,3818.0,3906.0,3589.5,3620.0,168480
2010.12.01,00:00,3629.0,3940.5,3618.5,3853.5,227760
2011.01.01,00:00,3848.0,4081.5,3605.5,4019.5,266725
$ tail _FRA4043200.csv
2012.02.01,00:00,3310.5,3490.5,3305.5,3456.5,514738
2012.03.01,00:00,3441.0,3593.0,3343.0,3420.5,353738
2012.04.01,00:00,3428.0,3475.5,2974.5,3128.5,247351