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
等级
(879)
项目
1392
67%
仲裁
117
32% / 42%
逾期
215
15%
空闲
2
开发者 2
等级
(253)
项目
358
49%
仲裁
24
25% / 50%
逾期
80
22%
空闲
3
开发者 3
等级
(590)
项目
789
71%
仲裁
9
33% / 33%
逾期
22
3%
空闲
4
开发者 4
等级
(1235)
项目
2820
80%
仲裁
156
22% / 43%
逾期
488
17%
空闲
5
开发者 5
等级
(586)
项目
1047
49%
仲裁
39
28% / 41%
逾期
49
5%
空闲
6
开发者 6
等级
(547)
项目
757
46%
仲裁
23
39% / 13%
逾期
63
8%
工作中
7
开发者 7
等级
(1127)
项目
1429
62%
仲裁
21
57% / 10%
逾期
43
3%
空闲

项目信息

预算
50+ USD
开发人员
45 USD