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

MQL4 Bibliothèque Intégration

Tâche terminée

Temps d'exécution 3 heures
Commentaires de l'employé
Thank you, good luck

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(885)
Projets
1410
67%
Arbitrage
123
32% / 41%
En retard
218
15%
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(253)
Projets
358
49%
Arbitrage
24
25% / 50%
En retard
80
22%
Gratuit
3
Développeur 3
Évaluation
(590)
Projets
789
71%
Arbitrage
9
33% / 33%
En retard
22
3%
Gratuit
Publié : 8 codes
4
Développeur 4
Évaluation
(1235)
Projets
2820
80%
Arbitrage
156
22% / 43%
En retard
487
17%
Gratuit
5
Développeur 5
Évaluation
(589)
Projets
1066
50%
Arbitrage
39
28% / 41%
En retard
49
5%
Travail
Publié : 1 article, 8 codes
6
Développeur 6
Évaluation
(639)
Projets
862
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Travail
7
Développeur 7
Évaluation
(1156)
Projets
1462
63%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit

Informations sur le projet

Budget
50+ USD