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

MQL4 Kütüphaneler Entegrasyon

İş tamamlandı

Tamamlanma süresi: 3 saat
Geliştirici tarafından geri bildirim
Thank you, good luck

İş Gereklilikleri

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(879)
Projeler
1392
67%
Arabuluculuk
117
32% / 42%
Süresi dolmuş
215
15%
Serbest
2
Geliştirici 2
Derecelendirme
(253)
Projeler
358
49%
Arabuluculuk
24
25% / 50%
Süresi dolmuş
80
22%
Serbest
3
Geliştirici 3
Derecelendirme
(590)
Projeler
789
71%
Arabuluculuk
9
33% / 33%
Süresi dolmuş
22
3%
Serbest
4
Geliştirici 4
Derecelendirme
(1235)
Projeler
2820
80%
Arabuluculuk
156
22% / 43%
Süresi dolmuş
488
17%
Serbest
5
Geliştirici 5
Derecelendirme
(586)
Projeler
1047
49%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Serbest
6
Geliştirici 6
Derecelendirme
(547)
Projeler
757
46%
Arabuluculuk
23
39% / 13%
Süresi dolmuş
63
8%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(1127)
Projeler
1429
62%
Arabuluculuk
21
57% / 10%
Süresi dolmuş
43
3%
Serbest

Proje bilgisi

Bütçe
50+ USD
Geliştirici için
45 USD