zilliq

Heiken Ashi On Range Bar

Category: Indicators By: zilliq Created: May 6, 2016, 7:36 PM
May 6, 2016, 7:36 PM
Indicators
13 Comments
Heiken Ashi On Range Bar

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/

____________________________________

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 

Download
Filename: Heiken-Ashi-on-Range-Bars.itf
Downloads: 438
Download
Filename: DAX30-Perf-Index-1.png
Downloads: 161
zilliq
zilliq Master
Je m'appelle, Zilliq, ou presque, et suis programmeur sur PRT d'Indicateurs et d'Algorithmes de trading. Mon approche du trading est essentiellement mathématique d'où ma passion pour les algorithmes. Vous pouvez me retrouver sur : http://www.zilliqtradingresearch.fr/
Author’s Profile

Comments

Guillaume34
6 years ago
#

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 :)

tahar
9 years ago
#

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.

Alai-n
9 years ago
#

Voir Echantillons de Couleurs RVB : https://www.prorealcode.com/documentation/category/instructions/

skydive
10 years ago
#

Now I did lose even more candle on the chart

Sorry I did not have permission to upload och screen shot.

Nicolas
10 years ago
#

You should change the conditions with an average on (close) and see what happens.

skydive
10 years ago
#

If I remove cond1 and cond2 the candles are back

skydive
10 years ago
#

I even lose some candles when I apply this code.

I use PRT 10.3 Beta,

skydive
10 years ago
#

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 THEN
XClose = TotalPrice
XOpen = (Open + Close) / 2
ELSE
XClose = TotalPrice
XOpen = (XOpen[1] + Xclose[1]) / 2
ENDIF

if xclose>xopen and cond1 then
DRAWCANDLE(XOpen,high,low,XClose) COLOURED(0,153,0)
elsif xclose<xopen and cond2 then
DRAWCANDLE(XOpen,high,low,XClose) COLOURED(153,0,0)
endif

return

Nicolas
10 years ago
#

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.

Elsborgtrading
10 years ago
#

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. :-)

mr.brymas
10 years ago
#

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. 

:)

Nicolas
10 years ago
#

No it's not possible to trigger sound alerts with code, sorry.

supertiti
10 years ago
#

Bonjour zilliq

En 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"

 

ProRealCode ProRealCode
Loading...