31 January 2011

Price Adjustment:

(Thanks and all credit goes to stockpedia)

You might have seen that day after record date, there was a drastic price fall of a particular company. This price is not fallen due to performance or any news of the company. Actually this price is adjusted according to the declared dividend(stock or cash)or right share rate. So, this type of price reduction after record date is called as "Adjustment of Price" for a share. But as we know, there are 3 types of record date. One is for AGM/dividend approval, second is for entitlement of Right Share and third one is for EGM. Normally price is adjusted in case of first two cases. Moreover, the adjustment rate will be different in case of cash/stock/right share.

Adjustment for Stock Dividend:
This adjustement occurs in case of stock dividend. Processes are as below:
1)Find the closing price: We know that no transiction occures on the record date. So, first of all, identify the closing price on day before record date. As for example, record date of Xcompany was 10th April and the last price on 9th April was 1200tk. So, you have consider the 1200tk in this case.
2)Calculate price of 100 shares: As stock dividend/right share is declared as percentage(%), it will be easier if you consider the adjustement for each 100 shares. To calculate the price of 100 shares, multiply the closing price with 100(number of shares). So, from previous example, price of 100 shares is 1200(tk)X 100(shares)= 1,20,000 tk on day-before-record date.
3)Total shares with bonus: Find out total number of shares (Main+Bonus) you will get after record date for each 100 shares. Suppose, The company declared 20% stock dividend. So your number of shares will be 100+20=120 nos if you have 100 shares on record date.
4)Calculate adjustment: Now the adjustment can be done by following formula:
Adjusted Price = Calculated Price of 100 Shares / Total Shares with Bonus
Here, (/)sign means, divided by.

From the example, we have calculated price of 100 shares is 1,20,000tk and number of shares after record date 120nos.
So, adjusted price after record date is, 1,20,000/120 = 1000tk.
You can also get our calculator from [MISC] section under drop-down menu.

Adjustement for Right Share:
1)Find the closing price: Same as 'Stock Dividend'. Please see the Adjustment for Stock Dividend.
2)Calculate price of 100 shares: Same as 'Stock Dividend'.
3)Total shares with right shares: In case of right share, if it is declared as 1R:2(1 Right share of each 2 shares), then the number will be 100+50Right=150nos. If it is declared as percentage(%), calculation will be as like as stock dividend.
4)Deduct the submitted price: To get right share, you have to deposit at least face value for the total amount of right shares you will recieved. Moreover, if company declared premium, you have to add that amount(premium)with face value for each share. From the previous point, we have calculated that you will get 50 right shares for 1R:2, Facevalue of each share is 100tk and suppose premium is 50tk. So you have to deposit 100(facevalue)+50(premium)=150tk for each right share. Total money you have to deposit for that 50 right share is 50X150tk=7500tk. Deduct this amount from the price of 100 shares (1,20,000tk - 7,500tk=1,12,500tk)
5)Calculate adjustment:
Adjusted Price = Deducted Price / Total Shares with Right Shares
Here, (/)sign means, divided by.

From the example, adjusted price is 1,12,500/150 = 750tk.
You can also get our calculator from [MISC] section under drop-down menu.

Adjustment for Cash Dividend:
1)Calulate cash amount: In case of cash dividend, you have identify how much cash you are going to get after record date. If face value of a share is 200 taka, then the price of 100 no. of shares is 100(shares)X 200(taka)= 20,000 taka. In case of 20% cash dividend, you will get 20,000tkX20%= 4,000tk for each 100 shares.
2)Calculate market price of 100 shares: If the price of each share was 1200tk on day-before-record date, then the current market price is 1200(tk)X 100(shares) = 1,20,000tk for each 100 shares.
3)Calculate adjustment:
Adjusted Price = (Current price of 100 shares - Calulated cash amount for 100 shares) / 100

From the example, current market price of 100 shares is 1,20,000tk and calculated cash amount to be recieved from 100 shares is 4,000tk.
So the adjusted price = (1,20,000tk - 4,000tk)/ 100 = 1160tk
You can also get our calculator from [MISC] section under drop-down menu.

31 December 2010

afl to calculate risk, profit and RR Ratio

First save the formulae through FORMULA EDITOR. Then click on COMMENTARY. Immediately guru chart commentary will open. After that click on formula in guruchart commentary and click on LOAD button and select the formulae where you have saved. Then change the parametres of entry, stoploss,target for the current chart. Then click on commentary. You will get results.


"Date="+Date();
Entry=10.15;
StopLoss=9.57;
Target=13.97;
"Entry="+WriteVal(Entry);
"StopLoss="+WriteVal(StopLoss);
"Target="+WriteVal(Target);
Risk=(Entry-StopLoss);
RiskPer=((Entry-StopLoss)/Entry)*100;
"Risk%="+WriteVal(RiskPer);
Profit=(Target-Entry);
ProfitPer=((Target-Entry)/Entry)*100;
"Profit%="+WriteVal(ProfitPer);
RRR=(Profit/Risk);
"RRRatio="+WriteVal(RRR);

30 December 2010

Formula name: MultiCycle 1.0

Description:

This looks at four different cyclic indicators together at one time. When three oscillators synchronize, this signals a strong buy or sell.

The white dotted line is the Volume Flow Indicator, or VFI. If the VFI is above the zero line, look for synchronized oscillators rising out of an oversold condition -- this is a good buy signal. If VFI is below zero, look for overbought conditions and short, instead.

The REI is Tom DeMark's Range Expansion Index. This is the most leading indicator included here. The DSS is a double-smoothed stochastic, good for timing and exact buy or sell point. And the IFT is the Inverse Fisher Transform function.

This indicator works well for any time frame. All it takes is a little getting used to before you become intuitive with it.

I named it the MultiCycle for lack of a better name.
Formula:

/*
MULTICYCLE 1.0
By Brian Richard
*/

/* Volume Flow Indicator */
Period = Param("VFI Period",26,26,1300,1);
Coef=0.2;
VCoef=Param("Max. vol. cutoff",2.5,2.5,50,1);
inter = log(Avg)-log(Ref(Avg,-1));
Vinter = StDev(inter,30);
Cutoff=Coef*Vinter*Close;
Vave=Ref(MA(V,Period),-1);
Vmax=Vave*Vcoef;
Vc=Min(V,VMax);
MF=Avg-Ref(Avg,-1);
VCP=IIf(MF>Cutoff,VC,IIf(MF<-Cutoff,-VC,0)); VFI1=Sum(VCP,Period)/Vave; VFI=EMA(VFI1,3); /* Double Smoothed Stochastic - DSS */ Slw = 4; Pds = 4; A = EMA((Close-LLV(Low,Pds))/(HHV(H,pds)-LLV(L,Pds)),Slw)*100; DSS = EMA((A-LLV(A,pds))/(HHV(A,Pds)-LLV(A,Pds)),Slw)*100; /* Tom DeMark's Range Expansion Index */ HighMom = H - Ref( H, -2 ); LowMom = L - Ref( L, -2 ); Cond1 = ( H >= Ref( L,-5) OR H >= Ref( L, -6 ) );
Cond2 = ( Ref( H, -2 ) >= Ref( C, -7 ) OR Ref( H, -2 ) >= Ref( C, -8 ) );
Cond3 = ( L <= Ref( H, -5 ) OR L <= Ref( H, -6) );
Cond4 = ( Ref( L, -2 ) <= Ref( C, -7 ) OR Ref( L, -2 ) <= Ref( C, -8 ) );
Cond = ( Cond1 OR Cond2 ) AND ( Cond3 OR Cond4 );
Num = IIf( Cond, HighMom + LowMom, 0 );
Den = abs( HighMom ) + abs( LowMom );
TDREI = 100 * Sum( Num, 5 )/Sum( Den, 5 ) ;

// General - purpose Inverse Fisher Transform function
function InvFisherTfm1( array1 )
{
e2y1 = exp( 2 * array1 );
return ( e2y1 - 1 )/( e2y1 + 1 );
}
function InvFisherTfm2( array2 )
{
e2y2 = exp( 2 * array2 );
return ( e2y2 - 1 )/( e2y2 + 1 );
}
function InvFisherTfm3( array3 )
{
e2y3 = exp( 2 * array3 );
return ( e2y3 - 1 )/( e2y3 + 1 );
}

function InvFisherTfm4( array4 )
{
e2y4 = exp( 2 * array4 );
return ( e2y4 - 1 )/( e2y4 + 1 );
}

Value1 = 0.1 * (DSS-55);
Value2 = WMA( Value1, 5 );

Value3 = 0.1 * ( RSI( 5 ) - 50 );
Value4 = WMA( Value3, 10 );

Value5 = 0.03 * (TDREI);
Value6 = WMA( Value5, 10 );

Value10 = VFI;
Value11 = EMA(VFI,10);

Plot( InvFisherTfm1( Value2 ), "DSS", colorDarkGreen, styleThick );
Plot( InvFisherTfm2( Value4 ), "RSI", colorBlue, styleThick );
Plot( InvFisherTfm3( Value6 ), "REI", colorRed, styleThick );
Plot( InvFisherTfm4( Value11 ), "VFI", colorWhite, styleDots );

Plot(0,"",colorDarkBlue,styleDots);
PlotGrid( 0.5 );
PlotGrid(-0.5 );

25 December 2010

Schaff's Trend Cycle - Amibroker

The Schaff Trend Cycle Indicator (STC) by Dough Schaff, was developed to improve upon the speed and accuracy of the MACD indicator when it comes to identifying trends. It uses a MACD Line (the difference between two exponential moving averages) through a reworked stochastic algorithm.

What we get is a faster cycle identifier - an great aid in identifying trend changes and finding faster entries and exits.

Schaff Trend Cycle (STC) oscillates in between 0 and 100 scale.
The 25 level is called a Buy level, the 75 - a Sell level.
The default settings for STC are (10, 23, 50).

Buy Entry:
1. While indicator stays below the 25 - the downtrend is in progress.
2. Once it crosses up above the 25 level - it's the first warning of a changing trend: place a pending Buy order above the corresponding candle on a chart.
3. Wait for the Buy order to be filled. If the order is not filled, and the price continues lower - not a problem. Keep the pending order further while observing Schaff Trend Cycle behavior and new signals.



Opposite true for Sell entries, where the indicator has to cross the 75 level down to send a signal about a trend change setup.

18 December 2010

BEAR MARKET AND STOP LOSS

Bear market,Things are quite bad brokers are tensed they are not able to reach their respective brokerage targets,Traders are feeling the heat no easy money by trading in out.

Is there any way to survive Bear market!!!!

Of course easiest would be not to trade:).

Well that's not possible.
Trader will trade

Many Traders or investors have one thing in common in thinking.
Bear market good for investment...
buying in falls would fetch good return...

Now here few valid points to discuss
how long you ready to wait..
A trader who sits in front of live charts would he be able to see his holding getting ripped off 50-80%.
Secondly,How to analyze which fall is good to buy,and which is not.

Answer would be not an easy task.
With the kind off falls we are witnessing in individual stocks Its a daunting task.

Atleast we can figure out how much we are ready to loose if the trade goes against us.
In more technical terms we need to define risk appetite.
There's a very catchy saying "A trader with out risk is like a nude girl in a boy's hostel"

You just cannot risk more than you ready to loose
Also cannot hold on to it as it keeps your money stuck in a bad trade discouraging to to get into a new trade and of course Capital gets eaten up its a cascading effect .
Lets take an example say a trader gets into a trade he makes 2k loss a amateur trader would
risk double capital to recover 2k loss+ 2k profit and may end up losing 4k.
Some one so rightly pointed out
Trading is serious Business.Accept it or forget it:)

Stop loss is best tool to define ones risk,Without stop loss its kind off gambling or wishful thinking
I came across many traders who say every time we put stop loss it gets hit.
Take this with a pinch of salt if your sl hits in more than 50% of your trades think about something else trading is not your cup of of tea.

16 December 2010



Pivot Identifier (Amibroker AFL)
Price pivots are best conceptualized with three bars. A three-bar pivot low represents support and is formed when buying pressure turns price from down to up. It is designated by a price bar with a higher low that closes above the previous bar's high, where the previous bar's low is lower than the bar that preceded it. This is true in every time frame.

A three-bar pivot high represents resistance and is formed when sellers turn price from up to down. It is seen where a price bar with a lower high closes below the previous bar's low, where the previous bar's high is higher than the bar that preceded it. Structural pivots are more easily recognized and understood when seen in a diagram or on a price chart. This is true in every time frame. (See the below mentioned figure)


Now I introduce the Pivot identifier AFL for Amibroker. You can also identify important supports and resistances in any time frame. The AFL is as follows (also an image attached):

http://2.bp.blogspot.com/_-XgafoM-JX0/TBo8PTCgomI/AAAAAAAAEr8/btyErbOnn2A/s320/Pivot+Identifier.png

_SECTION_BEGIN("Pivot Identifier");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

dist = 0.5*ATR(10);
//code and plot the pivot top
PivotTop = L < Ref(L,-1) AND H < Ref(H,-1) AND Ref(L,-1) < Ref(L,-2) AND Ref(H,-1) < Ref(H,-2) AND Ref(H,-2) > Ref(H,-3) AND Ref(L,-2) > Ref(L,-3);
PivotBottom = H > Ref(H,-1) AND L > Ref(L,-1) AND
Ref(H,-1) > Ref(H,-2) AND Ref(L,-1) > Ref(L,-2) AND
Ref(L,-2) < Ref(L,-3) AND Ref(H,-2) < Ref(H,-3);
for( i = 0; i < BarCount; i++ )
{
if( PivotTop [i] ) PlotText( "PVT", i-2, H[ i-2 ], colorGreen );
if( PivotBottom [i] ) PlotText( "PVB", i-2, L[ i-2 ] - dist[i] , colorRed );
}
_SECTION_END();

Trapped Traders - Part 1 Written by Lance Beggs




Trapped Traders - Part 1





Trapped traders are a simple concept you may wish to incorporate into your trading strategy, due to its potential to offer higher reliability trade setups.



These are price action based setups in which traders suddenly find themselves trapped in an undesirable situation, either:



a. Stuck in a losing position, desperate to get out; or

b. Stopped out of a position that then moves back in their direction, leaving them desperate to get back in.



The key in both cases is that the price action has placed traders in a position where their normal human emotional response will compel them to make a trade. We can then increase our odds by trading in the same direction as this new surge of order flow.



There are numerous ways this can present itself on a chart. We’ll look at one of my favorites today, and follow up with other trapped trader patterns in future articles.



Today’s pattern is called a 3-swing retrace.



You might also hear it referred to as an ABC correction, or an ABCD correction. It could also be considered in some cases a bull or bear flag.



We’ll start by examining a 3-swing retrace in an uptrend.


http://www.yourtradingcoach.com/images/stories/articles/3-swing-retrace-long.jpg


3-swing retrace - long







The 3 swings in the name refer to price swing AB, followed by BC and CD.



The price action is quite simple. An uptrend leading to:



- A higher high at pivot A, followed by

- A higher low at pivot B,

- A lower high at pivot C,

- A lower low at pivot D, and

- A price reversal back in the direction of the original trend.



The moving average is not essential – it’s just there to make it simpler to see the clear uptrend. And because you’re sure to be wondering, it’s a 20 period EMA. Nothing special about that, although it is a commonly used moving average. Anyway, back to the 3-swing retrace…



Why is this 3-swing retrace a powerful setup? Let’s consider the thought processes of two quite normal traders, trader A and trader B.



Trader A has been watching the uptrend rally from the sidelines, frustrated that he’s missed the move, and desperately seeking any sign of a reversal so he can get on board the next trend early. He’s not going to miss this next trade. Hope comes when he sees the price unable to breach the highs of pivot A, forming the lower high of pivot C. Trader A knows that the definition of an uptrend is a sequence of higher highs and higher lows, so the lower high is a warning sign of possible trend failure which will be confirmed by a break of the pivot low at B. He places an entry order to initiate a short position on a break of B, as is rewarded as a large red candle triggers his entry.



This is quite common thinking. Many traders will see this breakout as a quite reasonable entry point in the short direction. Others will wait for further confirmation such as a close below the pivot low at B, entering at an even worse price. The strong close below the EMA 20 is another bearish sign which should attract other traders seeking an early entry to a reversal.



In this case, the bearish order flow of the reversal traders was insufficient to overcome the force of the uptrend. Price immediately turned and smashed them, via a large green candle closing well above the pivot B breakout entry point and also above the entire red breakout candle.



No-one likes the pain of failure, especially when it comes so rapidly and decisively.



Stops will be triggered, in some cases above the red breakout candle which led to pivot D, or in other cases above the high of pivots C or A. These stop orders, which are a BUY, add to the uptrend bullish order flow, helping to propel price to new highs.



Now let’s consider Trader B. Trader B was lucky enough to catch the original trend and is sitting on a profitable long position. However, as is quite common, Trader B finds it difficult to let profits run. Recognizing the lower high at pivot C, and therefore the potential trend failure, she tightens up the trailing stop to a breakout of the last swing low, pivot B. Stopped out of her position as the red candle moved down to D she feels quite happy with herself and her brilliant tape-reading skills, until the next green candle reaffirms the dominance of the bulls and continues the uptrend without her.



Knowing that she was unfairly stopped out by those damn stop-running brokers who once again were obviously targeting her position, she now scrambles to reenter her position long, either on the close of the green candle, or the breakout above pivots C or A.



Once again, the reentry order, which is a BUY, adds to the bullish order flow helping to propel price to new highs.



All jokes about stop-running brokers aside, this is really quite common. A 3-swing retrace in an uptrend traps the bulls out of their long position, forcing them to have to get back in, and also traps the bears in a losing position, forcing them to get out. Both outcomes, trapped out of a trade, or trapped in a losing trade, lead to further bullish order flow.



Where is our entry?



As soon as we can after the large bullish green candle traps our friends Trader A and B.



Our stop loss of course should be below the pivot D, as price returning to new lows would confirm the failure of our 3-swing retrace setup. Yes, sometimes the trappers can get trapped!!!



Let’s look quickly at a second example, this time in a downtrend.





3-swing retrace - short





This example is not as technically beautiful as the previous one, but then price action patterns are rarely text-book perfect. If you look at the positioning of the labels A to D, you’ll clearly see the 3-swing retracement pattern. In this case we have a downtrend leading to…



- A lower low at pivot A, followed by

- A lower high at pivot B,

- A higher low at pivot C,

- A higher high at pivot D, and

- A price reversal back in the direction of the original trend.





The candle at pivot B offered an excellent rejection of higher prices, perhaps tempting many of the traders in a short position to tighten their stops above this candle. These positions were of course stopped out on the run up to D, trapping the bears out of their position as it then resumed its downward move.



Likewise, anyone entering long on the break above pivot B suffered through a 3 candle pause before being trapped in a drawdown situation.



Both groups of traders, those trapped in a losing long position and those trapped out of a profitable short position, will now contribute to the bearish order flow through their sell orders, as price plummets from pivot D.



We’ll look at more trapped trader patterns in future articles.



Till then, watch out for these patterns when the market is trending. Awareness of these setups can be difficult in real-time as it is quite common for traders to be searching for reversals. It’s important to remember though that trends will often continue a lot further than you can possibly expect. So don’t be too quick to change your bias. Watch counter-trend setups for possible failure opportunities, which often give a great entry back in the original trend direction.

11 December 2010

Harmonic Trading 104 (The Butterfly Pattern )

As we begin to learn about the Butterfly Pattern.

I would like to say that it is not easy. And will take some time to fully comprehend the various Fibonacci rations that makes up each Harmonic pattern.*

If you are an average Joe trader such as myself. I suggest that you find a good Harmonics indicator to help with identifying these patterns in the live market. (And connect with more experienced Harmonic traders to help you on your journey.)*

Never trade with out a stop and use good money management.

So Lets Get Started!!!!


The Butterfly Pattern


The Butterfly is considered a reversal pattern. Especially when found at significant tops (Highs) and Bottoms (Lows)


An ideal Butterfly Pattern, has a Fibonacci ratio of a 0.786 retracement of the XA leg as the B point.

That forms an AB=CD pattern of an extended C.D. leg that is 1.27 or 1.618 of the AB leg.

D. will be below X. in a Bullish Butterfly and D. will be above X. in a Bearish Butterfly.

D. is the Bread and Butter point and projection level with the greatest profit potential if the pattern holds true.* Especially when found at significant tops (Highs) and Bottoms (Lows).





This image has been resized. Click this bar to view the full image. The original image is sized 645x355.




This image has been resized. Click this bar to view the full image. The original image is sized 782x351.


GFT-Butterfly-Bullish.pdf
GFT-Butterfly-Bearish.pdf

10 December 2010

Elliot waves and Harmonic patterns

Let us have a look at an interesting situation on the Gbp/Aud pair.
The daily chart has the makings of a possible bearish Elliot wave.

As we can see, wave2 was a sharp correction to 78.6 of wave1, and it was a classic 3 wave corrective pattern.
So far, we seem to have completed the wave3 and we can expect a pullback/correction towards the upside for a wave4.
Now, price may still continue towards the down side, thus negating the Elliot wave, but we seem to have a couple of factors pointing to a possible upside correction.
The stochastic indicator has been showing a bullish regular divergence, which indicates an upside move.
We seem to looking a possible bearish Butterfly pattern in the making within the corrective wave4.
So, if the low of EW3 holds, then we can expect some moves to the upside to complete the wave4.
We can estimate the possible levels of resistance of this up move as-
a.) The reversal level “D” of the harmonic pattern.
b.) As per the rules of the Elliot wave, the wave4 should never go into the territory of wave2; hence this could also act as a resistance level. (The red line shown in the chart)

Let us have a detailed look at the harmonic pattern – the bearish butterfly

The point B has formed precisely at the 78.6 of X-A and we are looking for some more down moves to form the point ‘C’.
If price does find support at a fib level (at ‘C’) then we can expect a rally to complete the wave ‘C-D’….which should support the wave4 of the Elliot wave.
Thus the target of this bearish butterfly would be the Fib projection 127.2 of A-D…..which would be the wave5 of the Elliot wave.

When we have 2 different factors pointing to a similar setup, then it becomes a high probability trade.
But again, coming back to our ‘Mantra”.
We don’t assume anything and we don’t predict anything. We wait for price to confirm.
So, if the low of EW3 (the point A of the harmonic pattern) holds, then we can expect a corrective move up – the Elliot wave4 and subsequently the wave5.
If price breaks this low, then it becomes a bearish 123 pattern (as shown in the chart) and we can estimate the targets of this bearish move.
Sunil.
“Act….don’t React”

03 December 2010

RADAR FOUNADATION

Radar for The Foundation for Amibroker (AFL)






1 / 5 (Votes 3)
Click a star to give your rating!

This Radar afl is a combination for Southwind’s foundation.

It has heiken trend indicator as well as macd and histogram with buy sell arrows, with various indicators as bearish hook and bullish hooks warnings.

It also gives blue lines showing strength and yellow lines for change in MACD trend.it works well with SW foundation 13.

Screen shot is attached for benefit of members.

Looks like this is done by karthik M , a good work.

Here is a screenshot of how the indicator looks:
Sw_foundation_and_radar_afl

Tags: oscillator, amibroker, exploration

AFL :

// TRADING THE MACD Ver 1.0 by Karthik Marar.


_SECTION_BEGIN("MACD");
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );
r4 = Param( "Wk slow", 17, 2, 200, 1 );
r5 = Param( "Wk fast", 8, 2, 200, 1 );
m1=MACD(r1,r2);
s1=Signal(r1,r2,r3);
GraphXSpace =20;

mycolor=IIf(m1<0>s1, 51,IIf(m1>0 AND m1>s1,colorLime,IIf(m1>0 AND m1Plot( m1, StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2), mycolor,ParamStyle("MACD style") );
Plot( s1 ,"Signal" + _PARAM_VALUES(), ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
histcolor = IIf((m1-s1)-Ref((m1-s1),-1)> 0, colorLime, colorRed );

TimeFrameSet( inDaily );// weekly
m1w=MACD(r4,r5);
s1w=Signal(r4,r5,r3);
kp=m1w-s1w;
kph=Ref(kp,-1);
TimeFrameRestore();

kw=TimeFrameExpand( kp, inDaily ); // expand for display
khw=TimeFrameExpand( kph, inDaily ); // expand for display
mw=TimeFrameExpand( m1w, inDaily ); // expand for display
sw=TimeFrameExpand( s1w, inDaily ); // expand for display

hcolor=IIf(mw<0>sw, 51,IIf(mw>0 AND mw>sw,colorLime,IIf(mw>0 AND mwgcolor=IIf(kw>khw,IIf(kw>0,colorDarkYellow,colorYellow),IIf(kw>0,colorSkyblue,colorBlue));


Plot( m1-s1, "MACD Histogram", mycolor, styleHistogram | styleThick| styleOwnScale );

_SECTION_END();

_SECTION_BEGIN("Signals");
//Zero crossover up

j1=Cross(m1,0);
PlotShapes(IIf(j1,shapeDigit1 ,Null),colorPaleGreen,0,Min(0,0),Min(0,0));
PlotShapes(IIf(j1,shapeUpArrow,Null),colorGreen,0,Min(0,0),-10);

// crossover above zero

j2=Cross(m1,s1) AND m1>0;
PlotShapes(IIf(j2,shapeDigit2 ,Null),colorYellow,0,0,0);
PlotShapes(IIf(j2,shapeUpArrow,Null),colorGreen,0,0,-10);

//Zero crossover down

j3=Cross(s1,m1) AND m1>0;
PlotShapes(IIf(j3,shapeDigit3 ,Null),colorOrange,0,Min(0,0),0);
PlotShapes(IIf(j3,shapeDownArrow,Null),colorOrange,0,Min(0,0),-10);

// crossover below zero

j4=Cross(0,m1);
PlotShapes(IIf(j4,shapeDigit3 ,Null),colorRed,0,0,0);
PlotShapes(IIf(j4,shapeDownArrow,Null),colorRed,0,0,-10);

// Histogram peak and troughs
pt=m1-s1;
Tp = Ref(pT,-1) == HHV(pT,3);
Vl = Ref(pT,-1)==LLV(pT,3);
PlotShapes(IIf(Vl AND m1>s1 ,shapeSmallCircle+ shapePositionAbove,shapeNone),IIf(m1<0 ,colorYellow,colorLime),0,0,0);
PlotShapes(IIf(Tp AND m1
//Zeroline reject bearish
zd=BarsSince(j1);
zlrd1=(zd<6 )AND j4;
PlotShapes(IIf(zlrd1,shapeStar+ shapePositionAbove,shapeNone),colorDarkRed,0,0,20);

//hooks bearish
Hu=BarsSince(j2);
Hu1=(Hu<6)AND j3;
PlotShapes(IIf(Hu1,shapeStar+ shapePositionAbove,shapeNone),colorRed,0,0,20);

//Zeroline reject Bullish
zu=BarsSince(j4);
zlru=zu<6 AND j1;
PlotShapes(IIf(zlru,shapeStar+ shapePositionAbove,shapeNone),colorPink,0,0,20);

//Hook Bullish
Hd=BarsSince(j3);
Hd1=Hd<6 AND j2;
PlotShapes(IIf(Hd1,shapeStar+ shapePositionAbove,shapeNone),colorLime,0,0,20);

//ADX related calculations
plus=EMA(PDI(14),3)>Ref(EMA(PDI(14),3),-5);
ap=EMA(ADX(14),3)>Ref(EMA(ADX(14),3),-5);
Minus=EMA(MDI(14),3)>Ref(EMA(MDI(14),3),-5);

//Power Dips - Bullish
PDIp=ADX(14)>MDI(14) AND PDI(14)>MDI(14) AND ap AND Vl AND m1>s1 AND plus ;
PlotShapes(IIf(PDIp,shapeHollowCircle+ shapePositionAbove,shapeNone),colorCustom12,0,0,0);

//power buys
pr2=ADX(14)>20 AND PDI(14)>20 AND ADX(14)>MDI(14) AND PDI(14)>MDI(14) AND plus AND j2;
PlotShapes(IIf(pr2,shapeHollowCircle+ shapePositionAbove,shapeNone),colorCustom12,0,0,20);

//Power Dips - Bearish
PDIm=ADX(14)>PDI(14) AND MDI(14)>PDI(14) AND ap AND Tp AND m1PlotShapes(IIf(PDIm,shapeHollowCircle+ shapePositionAbove,shapeNone),colorWhite,0,0,0);

//Power shorts
sr2=ADX(14)>20 AND MDI(14)>20 AND ADX(14)>PDI(14) AND MDI(14)>PDI(14) AND Minus AND j4;
PlotShapes(IIf(sr2,shapeHollowCircle+ shapePositionAbove,shapeNone),colorRed,0,0,-20);

//powerbuy2
pr2a=ADX(14)>20 AND PDI(14)>20 AND ADX(14)>MDI(14) AND PDI(14)>MDI(14) AND plus AND j1;
PlotShapes(IIf(pr2a,shapeHollowCircle+ shapePositionAbove,shapeNone),colorCustom12,0,0,20);
_SECTION_END();

_SECTION_BEGIN("Exploration");
Filter = j1 OR j2 OR j3 OR j4 OR PDIp OR PDIm OR pr2 OR sr2 ;

AddColumn(j1,"ZL UP",1);
AddColumn(J2,"MA Up",1);
AddColumn(j3,"MA DN",1);
AddColumn(J4,"ZL DN",1);
AddColumn(PDIp,"PDIP UP",1);
AddColumn(pr2,"PHK UP",1);
AddColumn(PDIm,"PDIP DN",1);
AddColumn(sr2,"PHk UP",1);
_SECTION_END();

_SECTION_BEGIN("Display the Signals");
Title = "Trading the MACD" + " - " + Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor() +

" - " + Date() +" - " +EncodeColor(colorLime)+ "MACD= "+WriteVal(m1)+"--"+EncodeColor(colorYellow)+
WriteIf (j1, " MACD Crossed above zero","")+
WriteIf (j2, " Bullish crossover above zero","")+
WriteIf (j4, " MACD Crossed below Zero","")+
WriteIf (j3, " Bearish crossover above zero","")+
WriteIf (PDIP, " Bullish Power Dip","")+
WriteIf (pr2, " & Power Buy","")+
WriteIf (sr2, " & Power Short","")+
WriteIf (PDIm, " Bearish Power Dip","")+
WriteIf (Hd1, " & Bullish Hook","")+
WriteIf (Hu1, " & Bearish Hook","")+
WriteIf (zlrd1, " & Bearish zeroline Reject","")+
WriteIf (zlru, " & Bullish Zeroline Reject","");
_SECTION_END();






















_SECTION_BEGIN("Earth-2");
//Copyright 9Trading.com
VAR2=(High+Low+(Close)*(2))/(4);
B = ((EMA((VAR2-LLV(VAR2,15))/(HHV(Low,15)-LLV(VAR2,15)),2))*(38));
Plot(b, "", 4, 1+4);
bot1 = ((((-1))*(EMA((VAR2-LLV(VAR2,15))/(HHV(Low,15)-LLV(VAR2,15)),2))+0.01)*(38));
Plot(bot1, "", 4, 1+4);
VAR22=((Close-LLV(Low,10))/(HHV(High,10)-LLV(Low,10)))*(100);
VAR33=EMA(VAR22,10);
VAR44=EMA(VAR33,10);
VAR55=(3)*(VAR33)-(2)*(VAR44);
VAR66=EMA(VAR55,5);
BridgeT = (EMA(VAR66,1));
Plot(bridget, "", IIf(bridget > Ref(bridget,-1),colorBlue,colorYellow), 1+4);
Plot(-bridget, "", IIf(bridget > Ref(bridget,-1),colorBlue,colorYellow), 1+4);

trend = (5)*(EMA(((Close-LLV(Low,27))/(HHV(High,27)-LLV(Low,27)))*(100),5))-
(3)*(EMA(EMA(((Close-LLV(Low,27))/(HHV(High,27)-LLV(Low,27)))*(100),5),3))-
EMA(EMA(EMA(((Close-LLV(Low,27))/(HHV(High,27)-LLV(Low,27)))*(100),5),3),2);
Buy1 = Cross(trend,5);
PlotShapes( IIf( Buy1, shapeSmallSquare, shapeNone ), colorGreen, layer = 0, yposition = 0, offset = 3 );
PlotShapes( IIf( Buy1, shapeSmallSquare, shapeNone ),colorGreen, layer = 0, yposition = 0, offset = -4 );

VARA1=((Close>=Ref(Close,-1)) AND (Ref(Close,-1)>=Ref(Close,-2)) AND (Ref(Close,-1)<=Ref(Close,-3))
AND (Ref(Close,-2)<=Ref(Close,-3)) AND ((Ref(Close,-4)>Ref(Close,-2)) OR (Ref(Close,-4)<=Ref(Close,-2))
AND (Ref(Close,-5)>=Ref(Close,-3))) OR (Close>=Ref(Close,-1)) AND (Ref(Close,-1)<=Ref(Close,-2))
AND (Close>=Ref(Close,-2)) AND ((Ref(Close,-3)>Ref(Close,-1)) OR (Ref(Close,-3)<=Ref(Close,-1))
AND (Ref(Close,-4)>=Ref(Close,-2))));
VARA2=LLV(Low,5);
VARA3=HHV(High,5);
VARA4=EMA(((Close-VARA2)/(VARA3-VARA2))*(100),4);
VARA5=EMA((0.66699999)*(Ref(VARA4,-1))+(0.333)*(VARA4),2);
VARA6=(VARA5<24) AND (Open
Buy2 =IIf(VARA1 AND (VARA6),30,0);
Plot(Buy2, "", 8,2+4);
Plot(-Buy2, "", 8,2+4);

_N(Title = StrFormat("\\c02.{{NAME}} | {{DATE}} | {{VALUES}}")+EncodeColor(colorBrightGreen)+WriteIf(Buy2==30,"BuySignal-A","" )+EncodeColor(colorBrightGreen)+WriteIf(Buy1==1," | BuySignal-B",""));


_SECTION_BEGIN("Earth-3");
n = Param("Periods", 14, 5, 25, 1 );
var6=(2*Close+High+Low)/4;
var7=LLV(L,n);
var8=HHV(H,n);
var9=EMA((var6-var7)/(var8-var7)*100,5);
varA=EMA(0.333*Ref(var9,-1)+0.667*var9,3);
UP=Var9;
DOWN=Vara;
barcolor2=
IIf( (Ref(up,-1)>Ref(down,-1) AND Ref(up,-1)>up AND up>down )
OR (Ref(up,-1) , colorBlue,
IIf(up>down,5,4));
Plot(0,"",barcolor2,styleLine);

_SECTION_END();

_SECTION_BEGIN("Earth-1");
EB1 = Close > Ref(Close, -1) AND Ref(Close, -1) > Ref(Close, -2) AND Ref(Close, -1) <>= Ref(Close, -5) ),IIf(Ref(Close, -5) < Ref(Close, -6), 1,Ref(Close, -6) < Ref(Close, -7))));
ES1 = Close <> Ref(Close, -3) AND IIf(Ref(Close, -3) > Ref(Close, -4), 1, IIf(Ref(Close, -4) > Ref(Close, -5),Ref(Close, -1) > Ref(Close, -4) OR( Ref(Close, -2) > Ref(Close, -4) AND Ref(Close, -3) <= Ref(Close, -5) ),IIf(Ref(Close, -5) > Ref(Close, -6), 1,Ref(Close, -6) > Ref(Close, -7))));
PlotShapes( IIf( EB1, shapeHollowSmallSquare, shapeNone ), colorWhite, layer = 0, 0, 0 );
PlotShapes( IIf( ES1, shapeHollowSmallSquare, shapeNone ), colorOrange, layer = 0, 0, 0 );
_SECTION_END();

_SECTION_BEGIN("Exploration");
LastBar = Cum( 1 ) == LastValue( Cum( 1 ) );
Filter = LastBar;

pfrom = Param("Price From", 0, 0, 1000, 0.5 );
pto = Param("Price To", 1000, 0, 1000, 0.5 );
Minv = Param("Minimum Volume (K)", 500, 0, 1000, 50);
dd = Param("Decimal Digits", 1.2, 1, 1.7, 0.1 );

EB21= Buy1;
EB22=Buy2;
//Filter = Buy AND C>pfrom AND C1000*Minv;
Color = IIf(Close>Open, colorGreen, colorRed);
bcolor = IIf(Buy1 OR Buy2, colorGreen, 1);
AddTextColumn(WriteIf(EB1,"Buy",WriteIf(ES1,"Sell","")),"Earth-1",colorDefault,-1);
AddTextColumn(WriteIf(Buy1==1,"Buy-A"," "),"Earth-2a",colorDefault,-1);
AddTextColumn(WriteIf(Buy2==30,"Buy-B"," "),"Earth-2b",colorDefault,-1);
AddTextColumn(WriteIf(bridget > Ref(bridget,-1) AND Ref(bridget,-1)Ref(bridget,-2),"Sell","")),"Earth-2c",colorDefault,-1);
AddTextColumn(WriteIf(barcolor2==colorBlue,"Modarate",WriteIf(barcolor2==4,"Buy",WriteIf(barcolor2==5,"Sell",""))),"Earth-3",colorDefault,-1);
//AddColumn(Buy, "Buy" , 1.1, bcolor);
//AddColumn(O, "Open", dd, textColor = Color);
//AddColumn(C, "Close", dd, textColor = Color);
//AddColumn(V, "Volume", 1, textColor = Color);
//AddTextColumn(FullName(),"Name");
_SECTION_END();










// created by chandrakant
//modified on 120309..credit goes to of Karthik sir

/*1. Here are some observations to keep in mind that will help assure
you are in a good trending move which is detrimental to the success
of the trade moving higher before the inevitable over exhausted trend.

2 Consider only going long on the 5M if the 30M (two rows above) is also blue.

3 Consider the 1hr row as well being blue since it has an effect too.

4 The 15M row has to be blue with NO exceptions

5 The 30M row if blue has less effect on the trade as compared to the 15M row
but keep this in mind. The 30M row being blue helps the 15M row continue to stay blue.

6 The 1hr row has even less effect OR importance but it too keeps the 30M
from weakening to some minor degree.
*/
// Define label bar (x) position location

blankRightBars = 5; //insert actual blank right bars specified in Preferences
barsInView = Status("lastvisiblebarindex") - Status("firstvisiblebarindex") - blankRightBars;
Offset = Param("Offset Bar", 0.95, 0, 1, 0.01);
textOffset = BarCount - (Offset * barsInView);

_SECTION_BEGIN("default");
HaClose =EMA((O+H+L+C)/4,3);
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
PlotText("Heinkein 4T tf :"+Interval(2), textoffset, 41.01, colorYellow);

Color = IIf( Haopen > Haclose,4, IIf( Haopen == Haclose,colorYellow, 6));
Plot(10,"", Color, styleHistogram+styleThick|styleOwnScale|styleNoLabel, 0, 100 );
Plot( 11,"",colorBlack,styleOwnScale|styleArea|styleNoLabel,0, 100 );

_SECTION_BEGIN("4");
Compress4= Param("Compression4",8,2,10,1);
TimeFrameSet(Compress4* Interval());
HaClose4 =EMA((O+H+L+C)/4,3);
HaOpen4 = AMA( Ref( HaClose4, -1 ), 0.5 );
HaHigh4 = Max( H, Max( HaClose4, HaOpen4 ) );
HaLow4 = Min( L, Min( HaClose4, HaOpen4 ) );
PlotText("Heinkein 4T tf :"+Interval(2), textoffset, 41.14, colorYellow);
TimeFrameRestore();
HAopen4f=TimeFrameExpand( Haopen4, Compress4* Interval());
Haclose4f=TimeFrameExpand( Haclose4, Compress4* Interval());
HaHigh4f=TimeFrameExpand( Hahigh4, Compress4* Interval());
HaLow4f=TimeFrameExpand( Halow4, Compress4* Interval());
Color4 = IIf( Haopen4f > Haclose4f,4, IIf( Haopen4f == Haclose4f ,colorYellow, 6));
Plot(10,"", Color4, styleHistogram+styleThick|styleOwnScale|styleNoLabel, 0, 100 );
Plot( 41,"",colorBlack,styleOwnScale|styleArea|styleNoLabel,0, 100 );
_N(Title = "{{NAME}} - {{INTERVAL}} {{DATE}} "+_DEFAULT_NAME()+" : {{OHLCX}} {{VALUES}}" );



27 November 2010

Better Volume (Amibroker Formula)


This is a modified version of Volume indicator in Amibroker. Now have an idea of what type of volumes are building. Climax - Red, Churning - Green, Low Volume - Yellow, Climax Churning - Blue, Low Churning - Lime. With the help of this you can have an idea on where is the smart money flowing for now.

The Amibroker formula is as follows:
//******************************
_SECTION_BEGIN("EMA");

P = Volume;
Periods = Param("PeriodsEMA", 9, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), colorRed, styleLine
styleThick );
_SECTION_END();

Period = Param("Period", 10, 2, 300, 1, 10 );;
LowColor = colorYellow;
ClimaxColor = colorRed;
ChurnColor = colorGreen;
ClimaxChurnColor=colorBlue;
LowChurnColor= colorLime;

Value1 = V;
Value2 = V*(H-L);
Value3 = V/(H-L);

BarColor = IIf( (Value1 == LLV(Value1,Period)), LowColor,
IIf( (Value2 == HHV(Value2,Period)), ClimaxColor,
IIf( (Value3 == HHV(Value3,Period)), ChurnColor,
IIf( ((Value2 == HHV(Value2,Period) AND (Value3 == HHV(Value3,Period)))), ClimaxChurnColor,
IIf( (Value3 == LLV(Value3,Period)), LowChurnColor, colorBlueGrey)))));

_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), BarColor, ParamStyle( "Style", styleHistogram
styleThick, maskHistogram ), 2 );
_SECTION_END();
//******************************

Time To Setup Your Charts - Daytrading or Swing Trading


Here is an example by Ben Brinneman on how you could setup your charts to trade in the choppy and volatile market. He named it as Tripple Whammy Setup. Refer to the time reference for day-trading below.

SET UP YOUR CHART: Ensure first that you have a good real-time streaming chart-package. We can provide that in Amibroker, and make your chart-settings as follows:

1. Chart Data Required: For DAY-Trading, 30 minutes or one hour; for SWING- Trading, 3 days or longer
2. Chart Style: CANDLESTICK
3. Chart Frequency: For DAY-Trading, one minute; for SWING-Trading, 10, 15, or 30 minutes
4. Upper Indicators: EMA (9 period) and BOLLINGER BANDS (20 period)
5. Lower Indicators: MACD (12, 26) and RSI (14) and volume.

For quick profits with a Triple-Whammy Perfect BUY (Buy-Low-then-Sell-High; or Buy-to-Cover Short-Sell), these three legs are as follows:
1. The candlesticks will violate the lower Bollinger Band.
2. RSI must fall into OVERSOLD territory, under 30, and preferably in DEEPLY OVERSOLD territory, under 20.
3. The MACD (blue) line must be under the signal (red) line, and falling; and then must turn back upwards and cross the signal line. The crossover is the final confirmation — but if the turn upwards is sharp enough, you know it’s getting ready to do a crossover, so it’s best to go ahead and act, if the prior two conditions are already in place.

For quick profits with a Triple-Whammy Perfect SELL (Short-Sell-High-then-Buy-Low; or Sell-to-Close Long Position), these same three legs are as follows:
1. The candlesticks will violate the upper Bollinger Band.
2. RSI must rise into OVERBOUGHT territory, over 70, and preferably in STEEPLY OVERBOUGHT territory, over 80.
3. The MACD (blue) line must be above the signal (red) line, and rising; and then must turn back downwards and cross the signal line. The crossover is the final confirmation.
Utilizing this technique allows you to comfortably and very profitably trade any liquid stock or index multiple times during each day. You can enter and exit both Long and Short positions at the perfect points and extract amazing profits from the massive stream of money flowing constantly between those two Bollinger Bands. Refer to the image above for the setup.

Fibonacci Trading (Part - I)

Fibonacci Trading (Part - I)

Exerpts from the famous book by Carolyn Boroden: For those who are not already familiar with the name Fibonacci, you may remember hearing something about it in 2006, when the movie The DaVinci Code appeared in theaters. When Jacques Saunière was found murdered at the Louvre Museum in Paris, the strange position that this deceased character was placed in mimicked the famous painting of the Vitruvian Man by Leonardo da Vinci. This painting has been known to illustrate how Fibonacci ratios appear in the human form. The film also piqued the curiosity of some people when the characters in the film started talking about Fibonacci numbers as part of a clue or code of some sort. For myself, I only chuckled and thought, “It’s about time someone is taking Fibonacci seriously.”

The Fibonacci number series and the properties of this series were made famous by the Italian mathematician Leonardo de Pisa. The Fibonacci number series starts with 0 and 1 and goes out to infinity, with the next
number in the series being derived by adding the prior two. For example, 55 + 89 = 144, 89 + 144 = 233, 144 + 233 = 377, and so on (see the following number series):
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987 . . . out to infinity

What is most fascinating about this number series is that there is a constant found within the series as it progresses toward infinity. In the relationship between the numbers in the series, you will find that the ratio
is 1.618, or what is called the Golden Ratio, Golden Mean, or Golden or Divine Proportion. (For example, 55 x 1.618 = 89, and 144 is 1.618 times 89.)

Take any two consecutive numbers in the series after you get beyond the first few and you will find the Golden Ratio. Also note that the inverse or reciprocal of 1.618 is 0.618.

We will not use the Fibonacci number series to analyze the markets. Instead, we will use the ratios derived from this number series. We’ve already discussed 1.618 and 0.618 or the Golden Ratio and its inverse. The
main ratios I use in my everyday analysis are 0.382, 0.50, 0.618, 0.786, 1.00, 1.272, and 1.618.

We will sometimes also include 0.236, 2.618, and 4.236. You saw how we found the 0.618 and 1.618 ratios within the Fibonacci number series, but what about the rest of these ratios? Well, actually, they are all related mathematically.

For example:
  • 1.0 - 0.618 = 0.382
  • 0.618 x 0.618 = 0.382
  • 1.0 / 2 = 0.50
  • Square root of 0.618 = 0.786
  • 0.618 is the reciprocal of 1.618
  • Square root of 1.618 = 1.272
  • 0.618 - 0.382 = 0.236
  • 0.382 x 0.618 = 0.236
  • 1.618 x 1.618 = 2.618
  • 2.618 x 1.618 = 4.236

Now what do we do with these ratios and how do they help us trade? (To be continued.........)

BETA VALUE

I think u all already heard about beta cofficient on stock market..it help to make decesion to enter safe tickers...u can find it by soem calculation and keep in the AB to see each and every scripts....

* b Less than 0:

Negative Beta is possible but not likely. People thought gold stocks should have negative Betas but that hasn't been true. Sometimes negetive beta goes against index progress

* b Equal to 0:

Cash under your mattress, assuming no inflation!

* Beta Between 0 and 1:

Low-volatility investments (e.g., utility stocks).

* b Equal to 1:

Matching the index.

* b Greater than 1:

Anything more volatile than the index.

* b Much Greater than 1:

Impossible, because the stock would be expected to go to zero on any market decline.

Most new high-tech stocks have a Beta greater than one, they offer a higher rate of return but they are also very risky. The Beta is a good indicator of how risky a stock is.

The more risky a stock is, the more its Beta moves upward. A low-Beta stock will protect you in a general downturn.

If beta is 1 that menas if index increases 10% your scripts will also increase 10%.


Ticker Date/Time BETA
2NDICB 25/11/2010 -0.01
3RDICB 25/11/2010 0.11
4THICB 25/11/2010 -0.12
5THICB 25/11/2010 -0.32
6THICB 25/11/2010 0.25
7THICB 25/11/2010 0.12
8THICB 25/11/2010 0.54
ABBANK 25/11/2010 0.48
ACI 25/11/2010 0.3
ACIFORMULA 25/11/2010 0.73
ACIZCBOND 25/11/2010 -0.01
ACTIVEFINE 25/11/2010
AFTABAUTO 25/11/2010 2.63
AGNISYSL 25/11/2010 0.64
AGRANINS 25/11/2010 0.71
AIMS1STMF 24/11/2010 0.31
AL-HAJTEX 25/11/2010 0.86
ALAMINCHEM 30/06/2009 0.6
ALARABANK 25/11/2010 0.39
ALLTEX 27/09/2010 1.54
ALPHATOBA 30/09/2010 0.76
AMAMSEAFD 24/02/2009
AMBEEPHA 23/11/2010 0.83
AMCL(PRAN) 25/11/2010 0.74
ANLIMAYARN 27/09/2010 1.59
ANWARGALV 25/11/2010 1.39
APEXADELFT 25/11/2010 0.68
APEXFOODS 25/11/2010 0.2
APEXSPINN 25/11/2010 0.76
APEXTANRY 25/11/2010 0.8
APEXWEAV 19/10/2010 -0.09
ARAMIT 25/11/2010 0.18
ARAMITCEM 25/11/2010 1.13
ASHRAFTEX 30/06/2009 0.12
ASIAINS 25/11/2010 1.58
ASIAPACINS 25/11/2010 -0.4
ATLASBANG 25/11/2010 0.07
AZIZPIPES 23/11/2010 0.37
BANGAS 25/11/2010 1.07
BANGLAPRO 31/03/2010
BANKASIA 25/11/2010 1.02
BATASHOE 25/11/2010 0.83
BATBC 25/11/2010 0.61
BAYLEASING 25/11/2010 0.33
BCIL 30/06/2009 -0.13
BDAUTOCA 23/11/2010 1.82
BDCOM 25/11/2010 0.88
BDDYE 30/06/2009
BDFINANCE 25/11/2010 0.46
BDLAMPS 25/11/2010 1.64
BDLUGGAGE 15/03/2009
BDONLINE 17/08/2009 0.28
BDPLANT 23/09/2010
BDSERVICE 07/01/2010
BDTHAI 25/11/2010 0.93
BDWELDING 25/11/2010 2.97
BDZIPPER 30/06/2009
BEACHHATCH 25/11/2010 -0.19
BEACONPHAR 25/11/2010

BENGALBISC 16/09/2009 0

BERGERPBL 25/11/2010 0.29
BEXIMCO 25/11/2010 0.6
BEXTEX 25/11/2010 1.21
BGIC 25/11/2010 1.9
BIFC 25/11/2010 1.2
BIONICFOOD 23/02/2009
BLTC 30/09/2010 -0.02
BOC 25/11/2010 0.19
BRACBANK 25/11/2010 0.63
BSC 25/11/2010 -0.11
BSRMSTEEL 25/11/2010 1.43
BXFISHERY 29/10/2008
BXPHARMA 25/11/2010 0.35
BXSYNTH 25/11/2010 1.56
CENTRALINS 25/11/2010 1.42
CHICTEX 16/01/2008
CITYBANK 25/11/2010 -0.68
CITYGENINS 25/11/2010 2.77
CMCKAMAL 23/11/2010 2.73
CONFIDCEM 25/11/2010 0.75
CONTININS 25/11/2010 1.63
CTGVEG 25/11/2010 -0.24
DACCADYE 23/11/2010 1.07
DAFODILCOM 25/11/2010 -0.53
DANDYDYE 16/09/2009
DBH 25/11/2010 1.25
DBH1STMF 25/11/2010 0.04
DELTALIFE 25/11/2010 -0.24
DELTASPINN 25/11/2010 2.07
DESCO 25/11/2010 0.71
DHAKABANK 25/11/2010 0.97
DHAKAFISH 19/10/2010 0.9
DHAKAINS 25/11/2010 1.57
DSEGEN 22/01/2009
DSHGARME 23/11/2010 1.9
DULAMIACOT 24/11/2010 1.9
DUTCHBANGL 25/11/2010 0.94


EASTERNINS 25/11/2010 3.2
EASTLAND 25/11/2010 0.92
EASTRNLUB 25/11/2010 1.1
EBL 25/11/2010 0.96
EBL1STMF 25/11/2010 0.18
ECABLES 25/11/2010 1.3
EHL 25/11/2010 6.28
EXCELSHOE 30/06/2009 0.68
EXIMBANK 25/11/2010 0.1
FAREASTLIF 25/11/2010 3.05
FEDERALINS 25/11/2010 2.91
FIDELASSET 25/11/2010 1.51
FINEFOODS 25/11/2010 1.98
FIRSTSBANK 25/11/2010 0.56
FLEASEINT 25/11/2010 1.02
FUWANGCER 25/11/2010 0.82
FUWANGFOOD 25/11/2010 1.3
GACHIHATA 30/06/2009 0.91

GEMINISEA 24/11/2010 0.94
GLAXOSMITH 25/11/2010 0.32
GLOBALINS 25/11/2010 0.7
GOLDENSON 25/11/2010 1.4
GP 25/11/2010 0.83
GQBALLPEN 25/11/2010 0.43
GRAMEEN1 25/11/2010 1.75
GRAMEENS2 25/11/2010 0.81
GREENDELMF 25/11/2010
GREENDELT 25/11/2010 0.61
GULFOODS 27/09/2010 0.85
HAKKANIPUL 25/11/2010 1.48
HEIDELBCEM 25/11/2010 0.67
HILLPLANT 15/03/2010
HRTEX 25/11/2010 2.9
IBBLPBOND 25/11/2010 -0.01
IBNSINA 25/11/2010 0.11
ICB 25/11/2010 0.9
ICB1STNRB 25/11/2010 0.3
ICB2NDNRB 25/11/2010 0.08
ICB3RDNRB 25/11/2010
ICBAMCL1ST 25/11/2010 0.18
ICBAMCL2ND 25/11/2010 0.04
ICBEPMF1S1 25/11/2010 -0.08
ICBIBANK 25/11/2010 2.32
ICBISLAMIC 25/11/2010 -0.02
IDLC 25/11/2010 1.13
IFIC 25/11/2010 0.64
IFIC1STMF 25/11/2010 0.45
IFILISLMF1 25/11/2010
ILFSL 25/11/2010 1.14
IMAMBUTTON 25/11/2010 1.83
INTECH 25/11/2010 0.86
IPDC 25/11/2010 0.85
ISLAMIBANK 25/11/2010 0.6
ISLAMICFIN 25/11/2010 -0.17
ISLAMIINS 25/11/2010 0.51
ISNLTD 25/11/2010 0.39
JAMUNABANK 25/11/2010 1.32
JAMUNAOIL 25/11/2010 0.59
JANATAINS 25/11/2010 1.13
JUTESPINN 25/11/2010 1.25
KARNAPHULI 25/11/2010 1.48
KAY&QUE 25/11/2010 0.61
KEYACOSMET 25/11/2010 3.9
KEYADETERG 25/11/2010 2.34
KOHINOOR 25/11/2010 -0.14
KPCL 25/11/2010 0.69
LAFSURCEML 25/11/2010 1.8
LANKABAFIN 25/11/2010 0.65
LEGACYFOOT 25/11/2010 1.09

LIBRAINFU 25/11/2010 0.85
MAKSONSPIN 25/11/2010 1.52
MALEKSPIN 25/11/2010
MAQENTER 30/06/2009 0.5
MAQPAPER 30/06/2009 -0.15
MARICO 25/11/2010 1.07
MEGCONMILK 25/11/2010 1.1
MEGHNACEM 25/11/2010 1.07
MEGHNALIFE 25/11/2010 2.69
MEGHNAPET 25/11/2010 1.12
MEGHNASHRM 16/09/2009 0.2
MERCANBANK 25/11/2010 0.8
MERCINS 25/11/2010 1.2
METALEXCR 26/05/2009
METROSPIN 25/11/2010 1.25

MIDASFIN 25/11/2010 1.41
MIRACLEIND 23/11/2010 1.59
MITATEX 30/06/2009 0.49
MITHUNKNIT 23/11/2010 1.7
MODERNCEM 30/06/2009 0.03
MODERNDYE 30/09/2010 0.94
MODERNIND 08/07/2010
MONAFOOD 23/02/2009
MONNOCERA 25/11/2010 1.63
MONNOFABR 19/10/2010 -0.99
MONNOJTX 24/11/2010 -0.25
MONNOSTAF 25/11/2010 -0.1

MPETROLEUM 25/11/2010 0.6
MTBL 25/11/2010 0.79
NATLIFEINS 25/11/2010 1.06
NAVANACNG 25/11/2010 0.97
NBL 25/11/2010 0.92
NCCBANK 25/11/2010 0.93
NHFIL 25/11/2010 1.12
NILOYCEM 30/09/2010 1.38
NITOLINS 25/11/2010 1.11
NORTHERN 30/09/2010 -0.14
NORTHRNINS 25/11/2010 0.86
NPOLYMAR 25/11/2010 0.48
NTC 25/11/2010 0.31
NTLTUBES 25/11/2010 0.49
OCL 25/11/2010 0.18
OLYMPIC 24/11/2010 1.1
ONEBANKLTD 25/11/2010 0.82
ORIONINFU 30/09/2010 1.37
PADMACEM 30/09/2010 1.37
PADMAOIL 25/11/2010 1.11
PADMAPRINT 30/06/2009

PARAMOUNT 25/11/2010 0.73
PEOPLESINS 25/11/2010 0.73
PERFUMCHM 15/03/2009

PF1STMF 25/11/2010

PHARMAID 31/10/2010 0.63
PHENIXINS 25/11/2010 1.34
PHOENIXFIN 25/11/2010 0.87
PIONEERINS 25/11/2010 1.37
PLFSL 25/11/2010 1.14
POPULAR1MF 25/11/2010
POPULARLIF 25/11/2010 1.32
POWERGRID 25/11/2010 0.84
PRAGATIINS 25/11/2010 0.85
PRAGATILIF 25/11/2010 1.2
PREMIERBAN 25/11/2010 0.58
PREMIERLEA 25/11/2010 1.27
PRIME1ICBA 25/11/2010 -0.15
PRIMEBANK 25/11/2010 0.77
PRIMEFIN 25/11/2010 0.9
PRIMEINSUR 25/11/2010 1.65
PRIMELIFE 25/11/2010 1.41
PRIMETEX 25/11/2010 1.65
PROGRESLIF 25/11/2010 1.17
PROVATIINS 25/11/2010 0.77
PUBALIBANK 25/11/2010 1.1
PURABIGEN 25/11/2010 1.32
QSMDRYCELL 25/11/2010 1.1
QSMSILK 30/09/2010 0.41
QSMTEX 30/06/2009
RAHIMAFOOD 25/11/2010 1.34
RAHIMTEXT 24/11/2010 0.71
RAHMANCHEM 30/06/2009 0.13
RAKCERAMIC 25/11/2010
RANFOUNDRY 25/11/2010 1.49
RANGAFOOD 30/06/2009 0.05
RASPIT 17/01/2008
RASPITDATA 15/01/2008
RECKITTBEN 25/11/2010 0.61
RELIANCINS 25/11/2010 0.91
RENATA 25/11/2010 0.15
RENWICKJA 30/09/2010 1.89
REPUBLIC 25/11/2010 1.7
RNSPIN 25/11/2010 3.05
ROSEHEAVEN 30/06/2009 0.4
RUPALIBANK 25/11/2010 0.52
RUPALIINS 24/11/2010 1.12
RUPALILIFE 25/11/2010 1.25
SAFKOSPINN 23/11/2010 3.56
SAIHAMTEX 25/11/2010 2.51
SAJIBKNIT 30/06/2009
SALAMCRST 25/11/2010 1.26

SAMATALETH 30/09/2010 1.08
SAMORITA 25/11/2010 0.83
SANDHANINS 25/11/2010 1.79
SAPORTL 25/11/2010 1.02
SAVAREFR 25/11/2010 2.11
SHAHJABANK 25/11/2010 0.91
SHYAMPSUG 30/09/2010 1.17
SIBL 25/11/2010 0.6
SINGERBD 25/11/2010 0.72
SINOBANGLA 25/11/2010 1.03
SOCIALINV 17/08/2009 1.08
SONALIANSH 23/11/2010 1.52
SONALIPAPR 22/06/2009
SONARBAINS 25/11/2010 1.11
SONARGAON 25/11/2010 2.38
SOUTHEASTB 25/11/2010 0.71
SPCERAMICS 25/11/2010 1.09
SQUARETEXT 25/11/2010 2.94
SQURPHARMA 25/11/2010 -0.37
SREEPURTEX 30/06/2009
STANCERAM 23/11/2010 2.33
STANDARINS 25/11/2010 1.51
STANDBANKL 25/11/2010 0.82
STYLECRAFT 23/11/2010 0.34
SUMITPOWER 25/11/2010 0.89
TAKAFULINS 25/11/2010 1.53
TALLUSPIN 23/11/2010 1.62
TAMIJTEX 30/06/2009
TBL 30/09/2010 -0.35
TITASGAS 25/11/2010 0.87
TRIPTI 14/07/2008
TRUSTB1MF 25/11/2010 0.55
TRUSTBANK 25/11/2010 0.93

UCBL 25/11/2010
ULC 25/11/2010 1.58
UNIONCAP 25/11/2010 1.1
UNITEDAIR 23/11/2010
UNITEDINS 25/11/2010 1.78
USMANIAGL 25/11/2010 0.36
UTTARABANK 25/11/2010 0.28
UTTARAFIN 25/11/2010 1.44
WATACHEM 24/06/2009
WONDERTOYS 30/06/2009 0.69
ZEALBANGLA 30/09/2010 0.8

Super Trend for Amibroker (AFL)

Super Trend for Amibroker (AFL)






This is a trend following system which ignores minor swings in the trend ( Up / Down ) – Entry and Exit are based on emergence of consecutive red – green medium body candles with the highest high or lowest low of the previous 2 candle as the stop loss . This indicator can be supported with the standard MACD buy sell signals ( Crossovers) . I have attached @ chart of TataSteel .. Exact buy sell signals are obtained @ peaks and bottoms not falling into the divergence traps of MACD histogram .

Regards .

Arjun

Here is a screenshot of how the indicator looks:
Tatasteel


_SECTION_BEGIN("Movint trand Surrogate");
mtOpen = LinearReg( Open, 20 ); // calculate moving trend from open
mtHigh = LinearReg( High, 20 ); // calculate moving trend from open
mtLow = LinearReg( Low, 20 ); // calculate moving trend from open
mtClose = LinearReg( Close, 20 ); // calculate moving trend from open
// plot surrogate chart
PlotOHLC( mtOpen, mtHigh, mtLow, mtClose, "Surrogate", colorBlack, styleCandle );


_SECTION_END();


My Blog List

Total Pageviews

Search This Blog

Followers