HeikinAshi CandleStick Formulae For MetaStock

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4
At a glance
Powered by AI
The passage discusses the Heikin Ashi technique for analyzing candlestick charts and introduces the HACO (Heikin Ashi Candles Oscillator) indicator to help determine when to enter and exit trades.

The Heikin Ashi technique was introduced in 2004 as a way to better visualize price trends by recalculating standard candlesticks. It involves calculating an 'average bar' using the average of the open, high, low and close prices from the previous period.

The HACO indicator uses TEMA averages applied to the Heikin Ashi candle values to generate crossover signals. It calculates two TEMA averages - one for upward trends and one for downward trends. When the averages cross, it gives signals to enter or exit positions.

MetaStock Formulas

HOME Back to MetaStock Formulas Overview


HACO
Analyzing a candlestick chart gives a quite good idea of what is going on in the
market. Candlestick patterns and the resistance or support from price pivots and
rising or falling gaps together with the use of trend lines are excellent
technical trading tools.
Nevertheless starting a trade and deciding to close a trade, candle after
candle, remains a difficult task. HACO or the "Heikin Ashi Candles Oscillator"
will help you to decide. The heikin ashi candles technique was introduced by Dan
Valcu [2004]. â Using the Heikin-Ashi techniqueâ , Technical Analysis of STOCKS &
COMMODITIES, Volume 22: February 2004.

In this formula I am using the heikin ashi average closing price:


haC
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;
This is the HACO digital formula:
HACO
avg:=Input("Up TEMA average: ",1,100,34);
avgdn:=Input("Down TEMA Average: ",1,100,34);
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;
TMA1:= Tema(haC,avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZlHa:= TMA1 + Diff;
TMA1:= Tema((H+L)/2,avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZlCl:= TMA1 + Diff;
ZlDif:=ZlCl-ZlHa;
keep1:=Alert(haC>=haOpen,2);
keep2:=ZlDif>=0;
keeping:=(keep1 OR keep2);
keepall:=keeping OR (Ref(keeping,-1) AND (C>=O) OR C>=Ref(C,-1));
keep3:=(Abs(C-O)<(H-L)*.35 AND H>=Ref(L,-1));
utr:=Keepall OR (Ref(keepall,-1) AND keep3);
TMA1:= Tema(haC,avgdn);
TMA2:= Tema(TMA1,avgdn);
Diff:= TMA1 - TMA2;
ZlHa:= TMA1 + Diff;
TMA1:= Tema((H+L)/2,avgdn);
TMA2:= Tema(TMA1,avgdn);
Diff:= TMA1 - TMA2;
ZlCl:= TMA1 + Diff;
ZlDif:=ZlCl-ZlHa;
keep1:=Alert(haC<haOpen,2);
keep2:=ZlDif<0;
keep3:=Abs(C-O)<(H-L)*.35 AND L<=Ref(H,-1);
keeping:=keep1 OR keep2;
keepall:=keeping OR (Ref(keeping,-1) AND (C<O) OR C<Ref(C,-1));
dtr:=If(Keepall OR (Ref(keepall,-1) AND keep3)=1,1,0);
upw:=dtr=0 AND Ref(dtr,-1) AND utr;
dnw:=utr=0 AND Ref(utr,-1) AND dtr;
result:=If(upw,1,If(dnw,0,PREV));
result

Special offer: "Capturing Profit with technical Analysis"

The digital Heikin ashi oscillator super-imposed on the price chart.

----------------------------
Gadgets powered by Google
Stocata Site
Latest News
March 16: BBS Trading Expert now available with the "BAND INDICATORS" DVD! Watch
Youtube BBS video.
Read my S&P500 and FOREX EUR/USD weekly forecast with new trading rules and a
NEW chart template!
BBS Band Break System trading Sylvain Vervoort
Band Indicators DVD $199
My book "Capturing Profit with Technical Analysis" Only $79 inclusive 2 bonus
DVD's.
Follow my forex trades with signal provider BandBreak5.
Last Published my "Long Term Trading ETF's" HACOLT in S&C magazine July 2012.
NinjaTrader formulas.
MetaStock formulas.
MetaTrader formulas.
WINNER "Favorite Article" in the S&C Readers' Choice Award 2010 and 2011 and
finalist in 2012. Thank You!
AXIOM business books awards, bronze medal for my book! Thank You!
My YouTube videos
Sylvain Vervoort
SEARCH Stocata
Book Store
Ttitle, author, item# or ISBN
Capturing Profit with Technical Analysis
NOW lowest price anywhere $79
WINNER 2010 and 2011 favorite article Readers' Choice Award.
readers choice awards
AXIOM Business Books Awards, bronze medal.
AXIOM award

special offers
Facebook fan page

MetaStock Formulas
HOME Back to MetaStock Formulas Overview
Heikin ashi TEMA average crossing
Heikin ashi, Japanese for â average bar,â is a technique used to better visualize
price trends by recalculating the standard candlesticks. This technique was
introduced by Dan Valcu in 2004. The average heikin ashi closing I calculate
dividing the sum of the re-calculated heikin ashi values for open, high, low and
close by 4. You can use a heikin ashi TEMA average smoothed value with a
zero-laging technique, crossing with a TEMA zero-lagging average closing price,
to create fast reliable crossings.

These are the formulas:


SVE_HA_Tema_ZL
avg := Input("Temagemiddelde? ",1,200,55);
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;
TMA1:= Tema(haC,avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZlHa:= TMA1 + Diff;
ZlHa
SVE_CloseTema_ZL
avg := Input("TEMA period? ",1,200,55);
TMA1:= Tema((H+L+C)/3,avg);
TMA2:= Tema(TMA1,avg);
Diff:= TMA1 - TMA2;
ZlCl:= TMA1 + Diff;
ZlCl
Special offer: "Capturing Profit with technical Analysis"

heikin ashi tema crossing chart


Buy and sell crossings in CHRW with the zero-lagging TEMA averages.
http://stocata.org/metastock/ha_tema.html

You might also like