Create Function To Find Candle Index Based Off Datetime (on higher tf)

MQL4 资料库 积分

工作已完成

执行时间3 小时
员工反馈
Thank you, good luck

指定

Hi guys, 

I need a function that returns the index of the candle when passed a datetime value.

Similar to iBarShift(), but I need this function to handle different time frames.

Example.

I pass the datetime of a daily candle, I need it to return the weekly candle's index in which the daily candle is contained within.

Same with say a 1 hour candle timestamp, this function should be able to return the index of the relevant 4 hour candle and so on.

So the function will accept a datetime, and a timeframe to search on.


function(datetime timeStamp, int timeFrameToSearch)


Thanks

反馈

1
开发者 1
等级
(885)
项目
1410
67%
仲裁
123
32% / 41%
逾期
218
15%
空闲
发布者: 1 代码
2
开发者 2
等级
(253)
项目
358
49%
仲裁
24
25% / 50%
逾期
80
22%
空闲
3
开发者 3
等级
(590)
项目
789
71%
仲裁
9
33% / 33%
逾期
22
3%
空闲
发布者: 8 代码
4
开发者 4
等级
(1235)
项目
2820
80%
仲裁
156
22% / 43%
逾期
487
17%
空闲
5
开发者 5
等级
(589)
项目
1066
50%
仲裁
39
28% / 41%
逾期
49
5%
工作中
发布者: 1 文章, 8 代码
6
开发者 6
等级
(639)
项目
862
48%
仲裁
29
38% / 17%
逾期
63
7%
工作中
7
开发者 7
等级
(1156)
项目
1462
63%
仲裁
21
57% / 10%
逾期
43
3%
空闲

项目信息

预算
50+ USD