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