Unité de temps 5m sur graphe 1m
Forums › ProRealTime forum Français › Support ProBuilder › Unité de temps 5m sur graphe 1m
- This topic has 5 replies, 2 voices, and was last updated 6 years ago by Matriciel.
-
-
03/15/2018 at 12:33 PM #65362
Bonjour Nicolas,
J’ai créé un indicateur qui affiche l’unité de temps 5 minutes sur le graphique 1 minute. Pour l’instant, je l’ai rédigé de 9H00 à 11H30.
J’aimerais qu’il s’incrémente tout seul toutes les 5 minutes, cela m’éviterait d’écrire des centaines de fois les mêmes lignes !
Peux-tu m’aider s’il te plait ?
Merci de m’accorder de ton temps.
DJ
Unité de temps 5m sur graphe 1m123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231//Indicateur Unité de temps 5m sur 1m//Le 15 mars 2018//Matriciel @ www.prorealcode.com//Sharing ProRealTime knowledgec1 = open[4]c2 = highest[5](high)c3 = lowest[5](low)c4 = closeHausse = (open[5] <= close)Baisse = (open[5] >= close)If Hausse and time >= 090000 and time < 090100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 090000 and time < 090100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 090500 and time < 090600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 090500 and time < 090600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 091000 and time < 091100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 091000 and time < 091100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 091500 and time < 091600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 091500 and time < 091600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 092000 and time < 092100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 092000 and time < 092100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 092500 and time < 092600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 092500 and time < 092600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 093000 and time < 093100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 093000 and time < 093100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 093500 and time < 093600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 093500 and time < 093600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 094000 and time < 094100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 094000 and time < 094100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 094500 and time < 094600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 094500 and time < 094600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 095000 and time < 095100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 095000 and time < 095100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 095500 and time < 095600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 095500 and time < 095600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 100000 and time < 100100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 100000 and time < 100100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 100500 and time < 100600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 100500 and time < 100600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 101000 and time < 101100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 101000 and time < 101100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 101500 and time < 101600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 101500 and time < 101600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 102000 and time < 102100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 102000 and time < 102100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 102500 and time < 102600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 102500 and time < 102600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 103000 and time < 103100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 103000 and time < 103100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 103500 and time < 103600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 103500 and time < 103600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 104000 and time < 104100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 104000 and time < 104100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 104500 and time < 104600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 104500 and time < 104600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 105000 and time < 105100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 105000 and time < 105100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 105500 and time < 105600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 105500 and time < 105600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 110000 and time < 110100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 110000 and time < 110100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 110500 and time < 110600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 110500 and time < 110600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 111000 and time < 111100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 111000 and time < 111100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 111500 and time < 111600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 111500 and time < 111600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 112000 and time < 112100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 112000 and time < 112100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 112500 and time < 112600 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 112500 and time < 112600 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifIf Hausse and time >= 113000 and time < 113100 thendrawcandle (c1,c2,c3,c4) coloured (0,255,0)EndifIf Baisse and time >= 113000 and time < 113100 thendrawcandle (c1,c2,c3,c4) coloured (255,0,0)EndifRETURN03/15/2018 at 3:47 PM #65375Sauf erreur de ma part, c’est exactement ce qu’à fait Toto dans son topic dans le forum Anglais, vous vous êtes donné le mot ? 🙂
MULTI TIME FRAMES : 5min candles on 1min chart
1 user thanked author for this post.
03/15/2018 at 4:24 PM #65376Je n’étais pas au courant du topic à Toto. C’est vrai, c’est étonnant ! 🙂
Nous n’avons pas le même résultat tous les deux. Voir photo ci-dessous.
De plus, je ne comprends pas bien son code; je ne suis pas fort concernant la programmation sous PRT !
03/15/2018 at 4:31 PM #6538003/15/2018 at 4:47 PM #65382Je pense que tu n’affiches le chandelier qu’une fois que la barre est clôturée, ce qui n’est pas le cas dans l’indicateur de Toto, la barre bouge en temps réel et donc les chandeliers s’agrège avec les données Close/High et Low durant 5 minutes.
C’est logique que tu ne puisses pas appliquer une moyenne mobile, puisque les données du tableau de données seront celles liées au temps qui s’écoule, soit au barindex. En fonction de l’indicateur, la façon de faire serait différente, mais pour une moyenne mobile, tu peux essayer d’utiliser ce que j’ai pu faire dans l’indicateur de moyenne mobile sur Renko: https://www.prorealcode.com/topic/new-renko-system/page/2/#post-63626
1 user thanked author for this post.
03/15/2018 at 10:11 PM #65398 -
AuthorPosts
Find exclusive trading pro-tools on