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

MQL4 Librerie Integrazione

Lavoro terminato

Tempo di esecuzione 3 ore
Feedback del dipendente
Thank you, good luck

Specifiche

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

Con risposta

1
Sviluppatore 1
Valutazioni
(885)
Progetti
1410
67%
Arbitraggio
123
32% / 41%
In ritardo
218
15%
Gratuito
Pubblicati: 1 codice
2
Sviluppatore 2
Valutazioni
(253)
Progetti
358
49%
Arbitraggio
24
25% / 50%
In ritardo
80
22%
Gratuito
3
Sviluppatore 3
Valutazioni
(590)
Progetti
789
71%
Arbitraggio
9
33% / 33%
In ritardo
22
3%
Gratuito
Pubblicati: 8 codici
4
Sviluppatore 4
Valutazioni
(1235)
Progetti
2820
80%
Arbitraggio
156
22% / 43%
In ritardo
487
17%
Gratuito
5
Sviluppatore 5
Valutazioni
(589)
Progetti
1066
50%
Arbitraggio
39
28% / 41%
In ritardo
49
5%
In elaborazione
Pubblicati: 1 articolo, 8 codici
6
Sviluppatore 6
Valutazioni
(639)
Progetti
862
48%
Arbitraggio
29
38% / 17%
In ritardo
63
7%
In elaborazione
7
Sviluppatore 7
Valutazioni
(1156)
Progetti
1462
63%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito

Informazioni sul progetto

Budget
50+ USD