Showing posts with label technical analysis. Show all posts
Showing posts with label technical analysis. Show all posts

Tuesday, 11 February 2014

Candlestick chart pattern identification AFL



candlestick chart patternToday i am posting an AFL, which could point to finding some of the important candle patterns. The patterns include Morning Doji star, Morning star, Three white soldiers, Piercing Line, Downside Tasuki Gap, engulfing Pattern, Abandoned Baby, Dragon fly Doji and Harami. When these patterns are identified, the number 1 appears in the results window, indicating the confirmation of the pattern. The volume is also included in order to select the desired volume levels. The results can be exported using the File menu in the analysis window, in the form of CSV, txt or html format. It is better to export it the the .csv format, so that it can be easily manipulated and analyzed in MS Excel program.

This afl will not show any charts in the chart window, because this is meant for analyzing the stocks. it is quite tedious to check candle pattern one by one for the reversal patterns. This AFL comes in handy to do this work in the shortest possible time. 

This AFL can be stored anywhere in the computer, but its preferred destination is the customs folder in the formulas folder. The amibroker has all the options to run this afl. One can scan the entire symbol list or selected symbols. Similarly, it can be run for any number of days or a single day.

Under Apply to , there are three options all symbols, current symbol and use filter. This mean the user can select a single stock or multiple stocks. Under the range from a single day quote to date range specified quotations could be selected for explorations. The above description is for a new user.

Finally using the candlestick chart patterns for trading purpose, need sufficient knowledge of various candlestick patterns. I suggest that the readers  to take interest in acquiring knowledge about candlestick chart patterns.

Click here to download the AFL for pattern identification

Wednesday, 1 January 2014

Amibroker AFL for Daily, Weekly and Montly Pivot levels


Today I am posting a small but very essential Amibroker AFL. By deploying this Amibroker AFL utility, the user can get sufficient knowledge of Daily, Weekly and Monthly Pivot. The calculations are based upon standard classic pivot levels. A monthly pivot normally gives us a vision of what the trend is all about. A weekly pivot shows us the market behavior in the last week. The day pivot gives us some information of the current trend. When we anticipate a trend, it will be helpful how the stock behaved itself in the weekly and monthly mode. Price movements do follow the pivot levels in most of the trading period, which is why pivot levels are important to a trader as a tool of technical analysis.

Saturday, 21 December 2013

The Guppy trading system AFL for Amibroker with Buy Sell signal


This trading system was developed by Australian trader Daryl Guppy and named after him. He had used a set of twelve exponentially-weighted moving averages.  He had selected 3, 5, 8, 10, 12, and 18 period exponentially-weighted moving averages ( EMA)  as short-term and 30, 35, 40, 45, 50, and 60 as long term EMA. This helps a trader to analyze the stock from different levels.

There are many ways to deploy this system, but rather than seeing this system as a cross over trading system we should view it as a trend momentum identifier. What has been suggested by Guppy is to take the sum of six short-term EMAs against the sum of the six long-term EMAs and look for trading signals.

Monday, 16 December 2013

The Foundation AFL for Amibroker

 The Foundation by Southwind
 Today I am posting an AFL which looks colorful and interesting. I am not the creator of this AFL. This is known as The Foundation AFL by a Bangladeshi coder with a nick name of SouthWind. The SouthWind as the coder calls himself has attempted to incorporate many indicators into one AFL.

Heiken Ashi type of candles have been used instead of the normal candlestick charts. Weekly, Short term, Medium term and Long term trends have been included.

Besides the general market trend all major indicators like RSI, MACD Stochastic, T3 have been covered. Volume, price spread is indicated. Support and resistance lines are drawn on the charts. Many other features can be enabled with the help of properties window.I have removed or disabled many features as they were more confusing than informative.

This AFL can be used for general study purpose, but for deep observation we need to be more focused on individual index charts.However this work of The Southwind must be appreciated for the effort put together.

The most important thing about this AFL is that the requirement of two other files needed to run the code in Amibroker. They are T3_include.afl and JurikLib.dll and kpami.dll. The T3_include afl must be copied and pasted in the folder Include. The other two plug in dll files must be copied and pasted into Plugins folder under Amibroker. I have uploaded the files in my 4shared folder for which I have included the links. For the AFL to run properly the correct placement of these files are important. 

Once these copy past job is done the Foundation AFL for Amibroker is ready for charting. The code it self is too large to be posted here. I therefore have uploaded in my 4shared folder. Kindly download the same from links given here.

T3_Include  - in include folder
JurikLib.dll  in plugin folder

Best of Luck

Thursday, 12 December 2013

Amibroker AFL for Intraday with Buy Sell -2

Today I am posting another AFL that can be used both for Intraday and on EOD basis. I found this in internet and I am not the creator of this AFL. This AFL seems to have an Indonesian origin, which I am not sure.Anyway the interesting thing is it can be used for trading.

The background color can be changed using the properties window. It also has a magnified market view for viewing convenience.
.
I request the readers to do some back-testing, before they arrive at decision to deploy this tool in intraday trading. I would like to suggest the use of other indicators for confirmation.

Thursday, 5 December 2013

Amibroker AFL for Identifying Candlestick chart patterns


Candlestick pattern Identification
Candlestick patterns invented by the early Japanese rice traders are becoming more and more popular among technical analysts. The art of identifying a chart pattern is something every share trader must learn. Candlestick chart reading can be like Greek for beginners because of the peculiar terms involved in interpreting the patterns. But with little involvement, the interpretation of candlestick charts can be very interesting. 

I am posting another AFL today. This AFL will identify the candlestick patterns in a chart and print it on the screen. This afl covers all major candlestick patterns. Each pattern has been allocated a number for easy identification. I have listed the allocated number to each pattern below. Wherever the mouse is clicked and a pattern is selected the name of the pattern is displayed at the top left corner of the chart window.

NearDoji  -1, BlackCandle – 2LongBlackCandle -3SmallBlackCandle  -4/ WhiteCandle  -5, LongWhiteCandle - 6 SmallWhiteCandle - 7 BlackMaubozu – 8 WhiteMaubozu – 9, BlackClosingMarubozu - 10, WhiteClosingMarubozu - 11, BlackOpeningMarubozu - 12, WhiteOpeningMarubozu  - 13, HangingMan - 14, Hammer - 15, InvertedHammer - 16, ShootingStar – 17, BlackSpinningTop -18, WhiteSpinningTop - 19, BearishAbandonedBaby - 20, DarkCloudCover - 21, BearishEngulfing - 22, ThreeOutsideDownPattern – 23, BullishAbandonedBaby - 24,BullishMorningDojiStar - 25BullishEngulfing - 26, ThreeOutsideUpPattern - 27BullishHarami – 28ThreeInsideUpPattern - 29/PiercingLine - 30, BearishHarami - 31, ThreeInsideDownPattern - 32,ThreeWhiteSoldiers -33, DarkCloudCover - 34,  ThreeBlackCrows  -35, doji - 36, GapUp - 37, GapDown - 38, BigGapUp - 39, BigGapDown - 40, HugeGapUp - 41HugeGapDown - 42, DoubleGapUp - 43, DoubleGapDown - 44 

I hope this afl will be of some help to beginners who would like to learn the technical aspects of a candlestick pattern chart.

Tuesday, 3 December 2013

Amibroker AFL for MACD and ADX based trading

MACD  and ADX based trading system

I have posted a colorful AFL. This AFL is a combined system both MACD and ADX indicators. In any market finding the trend is the most important priority. To a greater extend the ADX can help in detecting the trend of stock. One thing to note about ADX is that it does not take the sideways movement of the stock. The MACD on the other hand is based upon moving averages and works differently

This AFLdisplays the MACD with histogram and the ADX is plotted in a ribbon style without interfering one an other. 

Sunday, 1 December 2013

Trend finder afl for Amibroker



Today I am posting an afl which will help to identify the current trend in a market. This afl uses 35 long period SMA, 8 short period SMA and 5 period for signal. This setup gives us the strength of current market movement. I have also attached chart with price with bollinger band. One can note that the trend reversal actually matches with the price band chart. This can help the traders to find the right time to enter the market and also find the exit levels, Although the chart is for the EOD, I have observed that this indicator works well in weekly charts.

Finding the trend in any market is a challenging task. Once a trader finds the correct trend, very profitable trades can be achieved. I would suggest that this indicator be applied to the weekly charts in order to get the correct picture of the market.

The code is very simple as it involves just three parameters. But it carries some value for the traders.
////////// the code of the afl begins here////////

_SECTION_BEGIN("PPO ");

m=Param("long period",35,1,500,1);

n=Param("short period",8,1,100,1);

s=Param("signal",5,1,100,1);

mac3=( (WMA(C,(n) )) -WMA(C ,(m)) ) /WMA(C ,(m))*100 ;

signa=WMA(MAC3,s);

diff=(MAC3-signa)*2 ;


Plot(mac3, "PPO line", colorBlack, styleDots);
Plot(signa, "PPO signal", colorBlue, styleDots);


Color=IIf(diff>=0 , colorGreen,colorRed);

Plot(diff, "", color, styleNoTitle| styleHistogram | styleNoLabel |styleThick, maskHistogram);
Plot(diff, "", color, styleNoTitle| styleLine | styleNoLabel, maskHistogram);

Plot(0, "", colorDarkGrey, styleLine);

Title="Strenght Index " + WriteIf(diff>0 AND MAC3>0 , "   UP Trend    ", WriteIf(diff<0 AND MAC3>0 , " Down trend ", WriteIf(diff<0 AND MAC3<0 , "DOWN Trend", "Up trend"))+WriteIf( (diff>Ref(diff,-1) AND diff>0 ) OR (diff<Ref(diff,-1) AND diff<0 ) , " formation", " weakening"));
_SECTION_END();

///////////////////////// end of code///////////////
Best of luck