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

MQL4 Bibliotecas Integração

Trabalho concluído

Tempo de execução 3 horas
Comentário do desenvolvedor
Thank you, good luck

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(885)
Projetos
1410
67%
Arbitragem
123
32% / 41%
Expirado
218
15%
Livre
Publicou: 1 código
2
Desenvolvedor 2
Classificação
(253)
Projetos
358
49%
Arbitragem
24
25% / 50%
Expirado
80
22%
Livre
3
Desenvolvedor 3
Classificação
(590)
Projetos
789
71%
Arbitragem
9
33% / 33%
Expirado
22
3%
Livre
Publicou: 8 códigos
4
Desenvolvedor 4
Classificação
(1235)
Projetos
2820
80%
Arbitragem
156
22% / 43%
Expirado
487
17%
Livre
5
Desenvolvedor 5
Classificação
(589)
Projetos
1066
50%
Arbitragem
39
28% / 41%
Expirado
49
5%
Trabalhando
Publicou: 1 artigo, 8 códigos
6
Desenvolvedor 6
Classificação
(639)
Projetos
862
48%
Arbitragem
29
38% / 17%
Expirado
63
7%
Trabalhando
7
Desenvolvedor 7
Classificação
(1156)
Projetos
1462
63%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre

Informações sobre o projeto

Orçamento
50+ USD