Script to convert OHLC to tick

MQL4 脚本

工作已完成

执行时间1 一天
客户反馈
Mehrdad is an excellent programmer, Will do business again!!!

指定


I would like a script to drop on chart, like renkotocsv,  that outputs the following into tick format as in the example
I can use a small boxsize for more accurate backtesting


This format:

date,time,O,H,L,C,  volume

2016.09.12,18:31,102.010,102.017,102.000,102.000,  204
 


---------->  will give 4 ticks in this format


datetime,bid,ask,volume


2016.09.12 18:31:00.001,102.010,ask,volume          Open

2016.09.12 18:31:00.002,102.000,ask,volume   //////  If the close is lower then open  then low first then high

2016.09.12 18:31:00.003,102.017,ask,volume   /////

2016.09.12 18:31:00.004,102.000,ask,volume          Close



ask = bid + extern Spread
volume = volume / 4   rounded up to nearest whole,  with 1 lowest



If the next bar is the same time  18:31 , continue the pattern 18:31:00.005  ,  so checking previous.

The script will convert the ohlc history into a " tick"  data file.

反馈

1
开发者 1
等级
(328)
项目
538
66%
仲裁
53
21% / 40%
逾期
169
31%
空闲
发布者: 1 代码
2
开发者 2
等级
(195)
项目
395
28%
仲裁
155
20% / 52%
逾期
112
28%
空闲
3
开发者 3
等级
(221)
项目
369
66%
仲裁
10
50% / 0%
逾期
46
12%
空闲

项目信息

预算
10 - 30 USD
截止日期
 1  7 天