MULITIFRAME indicateurs ut
Forums › ProRealTime forum Français › Support ProBuilder › MULITIFRAME indicateurs ut
- This topic has 5 replies, 4 voices, and was last updated 2 years ago by
JC_Bywan.
-
-
06/14/2022 at 7:03 PM #195282
@JC_Bywan
bonsoir
le code ne fonctionne pas
il n est tenu compte que des indicateurs du 15 mn avec ce code
cdlt
kats1234567891011121314151617181920212223242526272829303132333435363738394041SLIPPAGE=10// Variable 1 MNTIMEFRAME(15 minutes , default)a15=rsi[14](typicalPrice)b15=MACDline[12,26,9](close)c15=exponentialaverage[9](MACDLine[12,26,9])TIMEFRAME(5 minutes , default)a5=rsi[14](typicalPrice)b5=MACDline[12,26,9](close)c5=exponentialaverage[9](MACDLine[12,26,9])TIMEFRAME(1 minute , default)a1=rsi[14](typicalPrice)b1=MACDline[12,26,9](close)c1=exponentialaverage[9](MACDLine[12,26,9])if a15 > 50 and b15 > c15 and a5 > 50 and b5 > c5 and a1 > 50 and b1 > c1 thenr = 0b2 = 0g = 255//Baisseelsif a15 < 50 and b15 < c15 and a15 < 50 and b15 < c15 and a15 < 50 and b15 < c15 thenr = 255b2 = 0g = 0//Neutreelser = 195g = 195b2 = 195endifDRAWCANDLE(open+slippage,high+slippage,low+slippage,close+slippage) coloured(r,g,b2)RETURN06/15/2022 at 8:02 AM #195297Bjr, merci de ne pas doubler les posts, cf règles de l’encart jaune en bas de page.
Pour quiconque tombe sur ce post dans une future recherche, cette conversation continue dans le topic initial:https://www.prorealcode.com/topic/multiframe-pour-colorier-le-fond-ou-bougies/#post-195279
Edit: des réponses sont intervenues ici avant de poursuivre dans l’original, la conversation continue désormais ici
et
Sujet déplacé de forum proorder à forum probuilder
06/15/2022 at 8:04 AM #195298Bonjour, vous avez utilisé “default” deux fois en 15 minutes et 1 minute.
Le graphique que vous utilisez est sûrement d’une minute, vous devez donc le mettre comme ceci :1234567891011121314151617181920212223242526272829303132333435363738394041SLIPPAGE=10// Variable 1 MNTIMEFRAME(15 minutes ,updateonclose )a15=rsi[14](typicalPrice)b15=MACDline[12,26,9](close)c15=exponentialaverage[9](MACDLine[12,26,9])TIMEFRAME(5 minutes , default)a5=rsi[14](typicalPrice)b5=MACDline[12,26,9](close)c5=exponentialaverage[9](MACDLine[12,26,9])TIMEFRAME(1 minute , default)a1=rsi[14](typicalPrice)b1=MACDline[12,26,9](close)c1=exponentialaverage[9](MACDLine[12,26,9])if a15 > 50 and b15 > c15 and a5 > 50 and b5 > c5 and a1 > 50 and b1 > c1 thenr = 0b2 = 0g = 255//Baisseelsif a15 < 50 and b15 < c15 and a15 < 50 and b15 < c15 and a15 < 50 and b15 < c15 thenr = 255b2 = 0g = 0//Neutreelser = 195g = 195b2 = 195endifDRAWCANDLE(open+slippage,high+slippage,low+slippage,close+slippage) coloured(r,g,b2)RETURNMauro T. “Algorithmic system”
06/15/2022 at 8:10 AM #195299Je suis désolé, mais je répondais et je n’avais pas vu ce que vous aviez écrit.
Salut
Mauro1 user thanked author for this post.
06/15/2022 at 8:35 AM #195303est-ce l’erreur
elsif a15 < 50 and b15 < c15 and a15 < 50 and b15 < c15 and a15 < 50 and b15 < c15 then
répété 3 fois a15 < 50 and b15 < c15
devrait-ce être
elsif a15 < 50 and b15 < c15 and a5 < 50 and b5 < c5 and a1< 50 and b1 < c1 then
aussi sensibilité à la casse
SLIPPAGE ……slippage
1 user thanked author for this post.
06/15/2022 at 8:47 AM #195305Bien vu, merci.
Effectivement ça part d’un copier-coller de la ligne 22 en ligne 28, changements des > en < puis oubli de transformer les 15 en 5 et 1. Le code corrigé donne:
123456789101112131415161718192021222324252627282930313233343536373839404142SLIPPAGE=10// Variable 1 MNTIMEFRAME(15 minutes , default)a15=rsi[14](typicalPrice)b15=MACDline[12,26,9](close)c15=exponentialaverage[9](MACDLine[12,26,9])TIMEFRAME(5 minutes , default)a5=rsi[14](typicalPrice)b5=MACDline[12,26,9](close)c5=exponentialaverage[9](MACDLine[12,26,9])TIMEFRAME(1 minute , default)a1=rsi[14](typicalPrice)b1=MACDline[12,26,9](close)c1=exponentialaverage[9](MACDLine[12,26,9])if a15 > 50 and b15 > c15 and a5 > 50 and b5 > c5 and a1 > 50 and b1 > c1 thenr = 0blue = 0g = 255//Baisseelsif a15 < 50 and b15 < c15 and a5 < 50 and b5 < c5 and a1 < 50 and b1 < c1 thenr = 255blue = 0g = 0//Neutreelser = 195g = 195blue = 195endifDRAWCANDLE(open+slippage,high+slippage,low+slippage,close+slippage) coloured(r,g,blue)//BACKGROUNDCOLOR(r,g,blue)RETURNLe choix des “default” ou “updateonclose” dépend de si l’utilisateur veut partir des valeurs clôturées de la période précédente ou de l’évolution dans la période en cours, a priori le topic précédent pointait vers vouloir du “default”.
-
AuthorPosts
Find exclusive trading pro-tools on