Hi,
This indicator apply the Heiken ashi candles (who indicates the trend notably) on Range Bar Candles
You can do some good strategies with the Heiken ashi candles and some indicators (average and so on …)
Enjoy !
Zilliq
____________________________________
Coding is not a crime 😉
http://www.zilliqtradingresearch.fr/
____________________________________
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
IF BarIndex = 0 THEN XClose = TotalPrice XOpen = (Open + Close) / 2 ELSE XClose = TotalPrice XOpen = (XOpen[1] + Xclose[1]) / 2 ENDIF if xclose>xopen then DRAWCANDLE(XOpen,high,low,XClose) COLOURED(204,255,204) elsif xclose<xopen then DRAWCANDLE(XOpen,high,low,XClose) COLOURED(255,204,204) endif return |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Bonjour zilliqEn collant ce code de three lines break de PRC sur les heikin Ashi on peut se faire une petite stratégie pèpère quand le HA casse le 3 lines break.Bon week end à tous.// Three lines break PRC
once t=1
once a0=(close)
once a1=(close)
once a2=(close)
once a3=(close)
if t=1 and close>a3 then
a0=a1
a1=a2
a2=a3
a3=close
elsif t=1 and close<a0 then
t=-1
a1=a3
a0=a3
a3=close
elsif t=-1 and close<a3 then
a0=a1
a1=a2
a2=a3
a3=close
elsif t=-1 and close>a0 then
t=1
a1=a3
a0=a3
a3=close
endif
cc = customclose
return cc as \" customclose \" , a0 coloured by t[1] as \"cassure\"
Hey guys.
I´m using the code that supertiti have written. I have a question for you. Is it possible to code some sound into the code? I would love to have a “ping” when the “beartrend” lines breaks the “bulltrend” line and vice versa.
🙂
No it’s not possible to trigger sound alerts with code, sorry.
Perhaps build a screener from the indicator code and attach a customized wav-file to it. I have a wav file saying “Screener detected” every time a screener pops. 🙂
Why can´t I ad one more condition for the drawcandle?
I want a indicator that works like John Carters TTM trend.
cond1=average[1](medianprice) > average[6]cond2=average[1](medianprice) < average[6]IF BarIndex = 0 THENXClose = TotalPriceXOpen = (Open + Close) / 2ELSEXClose = TotalPriceXOpen = (XOpen[1] + Xclose[1]) / 2ENDIFif xclose>xopen and cond1 thenDRAWCANDLE(XOpen,high,low,XClose) COLOURED(0,153,0)elsif xclose<xopen and cond2 thenDRAWCANDLE(XOpen,high,low,XClose) COLOURED(153,0,0)endifreturn
I don’t see nothing that could explain why it doesnt work. Though, the moving average of the medianprice over 1 period is the same as the medianprice itself.
I even lose some candles when I apply this code.
I use PRT 10.3 Beta,
If I remove cond1 and cond2 the candles are back
You should change the conditions with an average on (close) and see what happens.
Now I did lose even more candle on the chart
Sorry I did not have permission to upload och screen shot.
Bonjour, je travaille sur un ecran noir et les bougies sont extremement palotes, on distingue à peine le rouge du vert. Quels codes couleurs devrais-je entrer pour mieux identifier mes bougies? Merci d’avance.
Voir Echantillons de Couleurs RVB : https://www.prorealcode.com/documentation/category/instructions/
Bonjour, quelqu’un à t’il réalisé ce code à l’identique mais pas dans une fenêtre sous le graphique, mais directement appliqué aux bougies japonaises du graphe principal ?
Merci 🙂