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

MQL4 Bibliotecas Integración

Trabajo finalizado

Plazo de ejecución 3 horas
Comentario del Ejecutor
Thank you, good luck

Tarea técnica

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

Han respondido

1
Desarrollador 1
Evaluación
(885)
Proyectos
1410
67%
Arbitraje
123
32% / 41%
Caducado
218
15%
Libre
Ha publicado: 1 ejemplo
2
Desarrollador 2
Evaluación
(253)
Proyectos
358
49%
Arbitraje
24
25% / 50%
Caducado
80
22%
Libre
3
Desarrollador 3
Evaluación
(590)
Proyectos
789
71%
Arbitraje
9
33% / 33%
Caducado
22
3%
Libre
Ha publicado: 8 ejemplos
4
Desarrollador 4
Evaluación
(1235)
Proyectos
2820
80%
Arbitraje
156
22% / 43%
Caducado
487
17%
Libre
5
Desarrollador 5
Evaluación
(589)
Proyectos
1066
50%
Arbitraje
39
28% / 41%
Caducado
49
5%
Trabaja
Ha publicado: 1 artículo, 8 ejemplos
6
Desarrollador 6
Evaluación
(639)
Proyectos
862
48%
Arbitraje
29
38% / 17%
Caducado
63
7%
Trabaja
7
Desarrollador 7
Evaluación
(1156)
Proyectos
1462
63%
Arbitraje
21
57% / 10%
Caducado
43
3%
Libre

Información sobre el proyecto

Presupuesto
50+ USD