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

Şartname

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
(885)
Projeler
1410
67%
Arabuluculuk
123
32% / 41%
Süresi dolmuş
218
15%
Serbest
Yayınlandı: 1 kod
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
Yayınlandı: 8 kod
4
Geliştirici 4
Derecelendirme
(1235)
Projeler
2820
80%
Arabuluculuk
156
22% / 43%
Süresi dolmuş
487
17%
Serbest
5
Geliştirici 5
Derecelendirme
(589)
Projeler
1066
50%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Çalışıyor
Yayınlandı: 1 makale, 8 kod
6
Geliştirici 6
Derecelendirme
(639)
Projeler
862
48%
Arabuluculuk
29
38% / 17%
Süresi dolmuş
63
7%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(1156)
Projeler
1462
63%
Arabuluculuk
21
57% / 10%
Süresi dolmuş
43
3%
Serbest

Proje bilgisi

Bütçe
50+ USD