Berikut sedikit teori (dapet dari milis OB) dan AFL (dapet dari internet) untuk pengguna Amibroker, yang dikombinasikan dengan Alligator/Buaya untuk lebih mempermudah melihat trend yang sedang berlangsung.
/*
Heikin Ashi Smoothed is a type of candlestick chart designed to improve the discovery of trends AND predict of future prices of securities. Many traders need help in locating trends amid an often erratic market. The A candlestick is simply a price chart which displays the High, Low, Open, AND Close positions for a security over a specified period of time. The period of time for can be in minutes, hours, days, etc.
A Heiken Ashi chart is constructed like any regular candlestick chart with the exception of the addition of new values.The time series used is defined by the user. The chart includes a series of filled AND unfilled bars on a graph. Negative time on the chart is represented by filled bars. Positive time on the chart is represented by empty bars. The final step for calculating trends is to follow the standard equations for candlestick equations.
Heiken Ashi Smoothed newer Version of Heiken Ashi tailored specifically for the commodity AND Equity markets. It has many of the same features but there are two important differences in Heiken Ashi. The differences between the two is:
(1)It smoothed the Open, Close, High AND Low prices of the security.
(2) The candlesticks are also smoothed in the forecast. The formula for Smoothed is:
Open = MVA(MVA(Open, N1)[-1] + MVA(Close, N1) / 2, N2)
Close = MVA(MVA(Open, N1) + MVA(Close, N1) + MVA(High, N1) + MVA(Low, N1)/ 2, N2)
High = Max(Open, Close, MVA(High, N1), N2)
Low = Min(Open, Close, MVA(Low, N1), N2)
There are five major indicators of trends when using Heiken Ashi (Smoothed) Candlestick:
1. A Hollow candle may indicate an upward trend. Let it Ride! The looks like the good times are here again! Be prepared to change direction.
2. A Hollow candle with no lower shadow indicates a strong upward trend. Get ready for liftoff! Exit Short positions AND enter long positions.
3. A Small Single Candle surrounded by upper AND lower shadows indicates a negative OR positive trend change. A risk-lovers domain.
The market could go either way so; most traders will wait for more information before they make their next move.
4. A Filled Candle indicates a downward change. Proceed with caution. Exit long positions AND enter Short positions.
5. A Filled Candle with no higher shadows indicates a strong downward trend. Brace for impact! The negative trend will be substantial for the investor.
Traders can program Heiken Ashi Smoothed in various trading programing software programs such MetaTrader. Results can be analyzed by the trader using a variety of spreadsheet programs like Microsoft Excel.
Heiken Ashi Smoothed candlestick chart an extremely useful tool for making candlestick charts more readable. Identifying trends in the market makes locating opportunities easier for a trader. This chart is constructed in the same way as a normal candlestick chart, with one important exception. It includes a set of the modified bar formulas. When properly executed, this technique can helps traders spot trends AND trend changes before the rest of the market.
*/
//AFL Heikin Ashi
HaClose = (O+H+L+C)/4;
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
// Velvoort is using not original, but modified Heikin-Ashi close
HaClose = ( HaClose + HaOpen + HaHigh + HaLow )/4;
// you can switch between Heikin-Ashi chart and regular candlestick chart
//tambahan Ku
Hacol = IIf(HaClose>HaOpen, colorBlack, colorBlack);
SetBarFillColor(Hacol);
if( ParamToggle("Plot Heikin-Ashi", "No,Yes", 1 ) )
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Heikin Ashi " + Name(), IIf(HaClose>HaOpen, colorBlue, colorRed), styleCandle); //colorBlue, styleCandle );
else
Plot( C, "Regular candles " + Name(), IIf(Close>Open, colorBlue, colorRed), styleCandle );
JKSE, DJI, dan HSI terlihat masih nguptrend dan sedang koreksi.
Candle Heikin Ashi tanggal 24 Agus 2012 pada JKSE, DJI dan HSI semua berwarna merah.
Waspada jika support trend line atau support buaya ditembus.
Semoga bermanfaat.
Eco Syariah