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
(879)
Progetti
1392
67%
Arbitraggio
117
32% / 42%
In ritardo
215
15%
Gratuito
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
4
Sviluppatore 4
Valutazioni
(1235)
Progetti
2820
80%
Arbitraggio
156
22% / 43%
In ritardo
488
17%
Gratuito
5
Sviluppatore 5
Valutazioni
(586)
Progetti
1047
49%
Arbitraggio
39
28% / 41%
In ritardo
49
5%
Gratuito
6
Sviluppatore 6
Valutazioni
(547)
Progetti
757
46%
Arbitraggio
23
39% / 13%
In ritardo
63
8%
In elaborazione
7
Sviluppatore 7
Valutazioni
(1127)
Progetti
1429
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito

Informazioni sul progetto

Budget
50+ USD
Per lo sviluppatore
45 USD