Australian (ASX) Stock Market Forum

Potential swing trades

I look at the downwards legs back through a stock's history and get a feel for how far and how fast it can move from the most recent high pivot. Amibroker does most of this for me, but you can just eyeball it. Plot some pivot points on your chart. I like a stock to be ranging or in a long term uptrend - this ensures the nest swing up will be of decent size.

CCL was a very good candidate for a swing trade over the last few months.


Yeah wasn't bad aye!

So you don't actually use much in the way of software screeners instead just look through charts and until you like what you see?
Where do you start?
 
Two guys that i subscribe to eyeball the charts, hundreds at a time sometimes...

Yup, eyeball....eyeball.PNG

With Amibroker you just keep hitting the down arrow key while on the symbols (watch-lists are good)

You'll be surprised how many patterns you'll pick up.

CanOz
 
Yeah wasn't bad aye!

So you don't actually use much in the way of software screeners instead just look through charts and until you like what you see?
Where do you start?

Any software will allow you to screen for say 20 day ROC, and you just rank them according to biggest losers. Add a condition of daily turnover of say >$1mill. Then set up your screen with either Fib retracements, pivots or zig-zag. I'm in the process of creating an automatic "buy zone" for each stock which is based on likely retracement levels. Then just setting conditional orders for the ones I like.
 
Thanks for the information guys, I should really get Amibroker setup properly. I really like the charting it offers but for some reason I can never get all the data in it. I gave up asking the Ami customer service, they explained it a bit but just went over what they already said and it didn't help much.
I've got all the companies, however I have no price data on each.

I should also probably pay for the full version to get intraday, EOD etc.. the lot.

Any help is appreciated.

Thanks,
Dan
 
Thanks for the information guys, I should really get Amibroker setup properly. I really like the charting it offers but for some reason I can never get all the data in it. I gave up asking the Ami customer service, they explained it a bit but just went over what they already said and it didn't help much.
I've got all the companies, however I have no price data on each.

I should also probably pay for the full version to get intraday, EOD etc.. the lot.

Any help is appreciated.

Thanks,
Dan

The no hassle way to get this done is by subscribing to Premium Data. Its so easy to setup and maintain. I have been a subscriber for years on and off. Their service is great, they're Australian...Simple, easy to follow instruction on how to setup.

No hassle, no headache, just good quality data installed in Amibroker easily.

www.premiumdata.net

CanOz
 
Howard.

I think it important to point out your disclosure here.

The beginning and ending dates are chosen intentionally so that the period has very little net price change. SPY closed at 126.31 on 1/28/1999, and closed at 126.66 on 10/31/2011.

Perfect for displaying the benefit of trading a Mean Reversion System V a Trend Following system when conditions are best suited to a Mean Reversion System and of course Visa Versa.

Unfortunately we dont have the benefit of hindsight selection when trading the future!
Application of the very same system trading forward over a 10 yr period in a screaming bull or bear run in all likely hood wont produce anywhere near the same excellent results for a Mean Reversion system.

Having said that
Your book is in my personal view TIMELY as the likely hood of a ranging market V a long term trending market for the next 5-10 yrs is high on the longer term time scale.
 
Thanks for the information guys, I should really get Amibroker setup properly. I really like the charting it offers but for some reason I can never get all the data in it. I gave up asking the Ami customer service, they explained it a bit but just went over what they already said and it didn't help much.
I've got all the companies, however I have no price data on each.

I should also probably pay for the full version to get intraday, EOD etc.. the lot.

Any help is appreciated.

Thanks,
Dan

G'day Dan, I mentioned Amibroker in the PM I sent you before I spotted your post here. A +1 to what CanOz said regarding PremiumData, everything is there to make the setup as simple as possible. There's an Amibroker FAQ thread on the forum here too with plenty of helpful people around to get you up and running. Happy to take any PM's too if you run into trouble.

Cheers
Steve
 
I should add that I don't use Premium Data personally as I've had a good setup with JustData for many years and have my own scripts I use for sorting their ASCII data but for someone starting out I'd recommend PremiumData as the easy data solution for Amibroker after seeing first hand other people's setups with it.
 
Thanks for the information guys, I should really get Amibroker setup properly. I really like the charting it offers but for some reason I can never get all the data in it. I gave up asking the Ami customer service, they explained it a bit but just went over what they already said and it didn't help much.
I've got all the companies, however I have no price data on each.

I should also probably pay for the full version to get intraday, EOD etc.. the lot.

Any help is appreciated.

Thanks,
Dan

See "How do I..." thread.
 
The no hassle way to get this done is by subscribing to Premium Data. Its so easy to setup and maintain. I have been a subscriber for years on and off. Their service is great, they're Australian...Simple, easy to follow instruction on how to setup.

No hassle, no headache, just good quality data installed in Amibroker easily.

www.premiumdata.net

CanOz

Yeah I might have to give there 3 week trial a crack and see how it goes. What have you paid for on it? A quick look shows you can select different

See "How do I..." thread.

Just about to reply and PM you now.. :xyxthumbs
 
Futures, ASX and US stocks, forex.


CanOz

And that's a monthly fee?


Re: Screening for swing trades, could a price touching the 30 (RSI) and moving up be a potential criteria for a screen? Also, touching the 70 and moving down if you were shorting?

Only problem I though with this was its after the entry and pivot point has happened. Is eyeballing really the best way?
 
And that's a monthly fee?


Re: Screening for swing trades, could a price touching the 30 (RSI) and moving up be a potential criteria for a screen? Also, touching the 70 and moving down if you were shorting?

Only problem I though with this was its after the entry and pivot point has happened. Is eyeballing really the best way?

Actually i paid all up front for 6 months plus i bought the history, originally.

You can use indicators to narrow down the search sure. MACD crosses or Stoc divergence are good screens too. Plenty of free code on the Amibroker forum for these things.

When i traded stocks EOD discretionary for a couple of years i used some of Nick's picks as well as some of my own screening picks. I would narrow them down with the screens and then eyeball them for support/resistance and volume.

Cheers,


CanOZ
 
Actually i paid all up front for 6 months plus i bought the history, originally.

You can use indicators to narrow down the search sure. MACD crosses or Stoc divergence are good screens too. Plenty of free code on the Amibroker forum for these things.

When i traded stocks EOD discretionary for a couple of years i used some of Nick's picks as well as some of my own screening picks. I would narrow them down with the screens and then eyeball them for support/resistance and volume.

Cheers,


CanOZ

Ah nice, I may have to look into it all then and get a good grip with those few criteria.
What sort of criteria were you setting with the MACD cross-overs and Stoc Divergences'?

Thanks mate
 
Ah nice, I may have to look into it all then and get a good grip with those few criteria.
What sort of criteria were you setting with the MACD cross-overs and Stoc Divergences'?

Thanks mate

Here's a triangle scan...i've got heaps of these things.

Code:
// Triangle search Extended

/*This scan/exploration extends the triangle search by Graham Kavanagh
The original scans for triangles using Highest High AND Lowest Low over a 20 bar period,
 then next High over a chosen period after these HHV AND LLV. He requires the order of the 
highs AND lows are to be in alternate order and his test will pick up ascending, descending
 AND equal triangles. His 'variable' d1 (set to 20)is the number of days to lookback and search 
for the last Highest High, AND d2 is the gap after this HH to start searching for the next HH
 after the first. Similarly for the Lowest lows
The variables z? represent the highs, AND w? the lows.

This extended program adds a number of options,as follows:-
a. It automatically searches over different lookback periods between d1max and d1min, set to
60 and 20 (but easily changed) and records all succeses. Because of the nature of triangles,a 
single value for d1 can miss many valid cases.
b. Where the triangle criteria are satisfied on successive days, only the last of these is retained
in order to reduce the amount of output.
c. The user can toggle between searches based on the data H and L, or the highs and lows of the candle body.
d. The lengthy test to yield a "buy" in the original has been broken down into 7 separate conditions, 
allowing the user to easily change the conditions. Thus, Condition 3 tests for the triangle shape. This can
use a more liberal test via the parameter toggle that has been added. Similarly, Cond5 is a volume test which
can now be left in or excluded.
Finally, the user should note that conds 6 and 7 test that the general price trend is up. If interested in
potential downward moves, a user might want to delete these from the "buying" test.
*/

d1max = 60;
d1min = 20;
Buy = 0;


for (d1=d1min;d1<d1max;d1++)
{
d2=4;
Hi = H;
Lo = L;
Body = ParamToggle("Use candle body rather than H & L","No|Yes",  0);
if(Body == 1)
{
Hi = Max(O,C);
Lo = Min(O,C);
}
z1=HHV(Hi,d1);
za1=HHVBars(Hi,d1);
zb1=za1-d2;
z2=HHV(Hi,zb1);
za2=HHVBars(Hi,zb1);
w1=LLV(Lo,d1);
wa1=LLVBars(Lo,d1);
wb1=wa1-d2;
w2=LLV(Lo,wb1);
wa2=LLVBars(Lo,wb1);

aa1=LastValue(Hi);
aa2=LastValue(Lo);

C3 = ParamToggle("Use a more liberal triangle shape test?", "No|Yes",0);
ExVol = ParamToggle("Exclude volume test?","No|Yes",0);

Cond1 = ((z1>=z2 AND w2>w1) OR(z1>z2 AND w2>=w1));//Allows for horizontal top or bottom
Cond2 = za1>za2 AND wa1>wa2;//Automatically satisfied if za1,za2,wa1 and wa2 all exist
//Cond3 ensures triangle shape
Cond3 =((za1>wa1 AND wa1>za2 AND za2>wa2) OR (wa1>za1 AND za1>wa2 AND wa2>za2)) ;//Original
if(C3 == 1)
Cond3 =((za1>wa1 AND wa1>za2) OR (wa1>za1 AND za1>wa2)) ;//a more liberal test

Cond4 = aa1<z2 AND aa2>w2 ;// Triangle shape continues to last Value

Cond5 = Ref(Volume,-za1) > MA(Volume,d2);
if(ExVol == 1) Cond5 =1; 
//Conditions 6 & 7 require close price trend to be up
Cond6 = Ref(MA(Close,d1),-za1) > Ref(MA(Close,d1),-2*za1) ;
Cond7= MA(Close,d1) > Ref(MA(Close,d1),-2*za1); 
Buying = Cond1 AND Cond2 AND Cond3 AND Cond4 AND Cond5 AND Cond6 AND Cond7;
Buy = Buy + Buying;
}
for(i=1;i<BarCount;i++)
if(Buy[i]>=1)
{
Buy[i-1]=0;
Buy[i] = 1;
}
//Retain only the last of consecutive buy signals

Filter=Buy;
/*
NumColumns = 8;

Column0 = z1;
Column1 = z2;
Column2 = w1;
Column3 = w2;
Column4 = za1;
Column5 = za2;
Column6 = wa1;
Column7 = wa2;
*/

NumColumns = 8;
Column0 = Cond1;
Column1 = Cond2;
Column2 = Cond3;
Column3 = Cond4;
Column4 = Cond5;
Column5 = Cond6;
Column6 = Cond7;
Column7 = Buy;

Heres the MACD Stoc Scan...Exploration i believe...

Code:
/* SWING- TRADING*/
global O, H, L, C;
	O1 = Ref(O,-1);O2 = Ref(O,-2);
	H1 = Ref(H,-1);H2 = Ref(H,-2);
	L1 = Ref(L,-1);L2 = Ref(L,-2);
	C1 = Ref(C,-1);C2 = Ref(C,-2);

Cond1 = Cross( MACD( 12, 26 ), Signal( 12, 26, 9 ) ) <=3OR MACD( 12, 26 ) > 0.5 AND ( MACD( 12, 26 )>Signal( 12, 26, 9 ) ) ;
Cond2 =RSIa( Close, 9 ) > 40  ;

Cond3=Cross( StochK( 14, 3 ), StochD( 14, 3, 3 ) ) OR(StochK( 14, 3 ) > ( StochD( 14, 3, 3 ) )) OR ( StochK( 14, 3 )>25) ;
Cond4 = ( Cross( PDI(), MDI() ) ) OR( Cross( PDI(), ADX( 14 ) ) )AND ( PDI()> MDI() ) AND ( PDI()> ADX( 14 )) ; 

Cond5=ROC( Close, 10) > 0.5;
Cond6=  CCIa( Close, 14 ) > 50;
Cond7= ((C>O) AND
((C-O)/(.001+H-L)>.6)) OR
 (C>O AND H==C AND
O==L) OR
 (C>O AND
C==H)OR
 (C>O AND
O==L)  OR ((O1>C1) AND
(C>O) AND (C>= O1) AND (C1>= O) AND ((C-O)>(O1-C1))) OR 
GapUp()OR ((O1>C1) AND (C>O)
AND (C<= O1) AND (C1<= O) AND ((C-O)<(O1-C1)))
OR ((O2>C2)
AND (C1>O1) AND (C1<= O2) AND (C2<= O1) AND ((C1-O1)<(O2-C2)) AND (C>O) AND
(C>C1) AND (O>O1))OR 
 ((C1<O1) AND
(((O1+C1)/2)<C) AND (O<C) AND (O<C1) AND (C<O1) AND
((C-O)/(.001+(H-L))>0.6)) ;



Buy=Cond1 AND Cond2 AND Cond3 AND Cond4 AND Cond5 AND Cond6 AND Cond7;


/*
The MACD crosses below the Signal on or after the previous 3 bars */

Cond10 = ( Cross( Signal( 12, 26, 9 ), MACD( 12, 26 ) ) )OR
   MACD( 12, 26 ) > Ref( Signal( 12, 26, 9 ) * -2, -1 );
Cond11=  Cross( StochD( 14, 3, 3 ), StochK( 14, 3 ) );
/*Cond12=Cross( ADX( 14 ), PDI() )OR  Cross( MDI(), PDI() ) OR Cross( MDI(), ADX( 14 ) )OR( (PDI()>MDI()) OR (PDI()>ADX(14)))OR MDI()<ADX( 14 ) >PDI() ;*/
Cond13 = ROC( Close, 10 ) < 25  AND RSIa( Close, 14 ) < 70 AND  CCIa( Close, 14 ) < 100;

Cond14 =  (O>C AND H==O AND C>L) OR(O>C AND
(O-C)/(.001+H-L)>.6) OR (O>C AND (H==O AND
C==L) OR (O>C AND C==L)OR( C>O AND C==H)OR(((H-L)>4*(O-C)) AND ((H-C)/(.001+H-L)>= 0.75) AND ((H-O)/(.001+H-L))>= 0.75)); 





Sell=Cond10 AND Cond11 AND Cond13/* AND Cond12*/ AND Cond14 ;
 
How the hell do people code those things?

Just copy it into the formula editor?

Yes

I do understand the comment though!
The best way I found to learn code is the write what you want to do in plain
English. Then write the code/variables and operators to match.

When writing---segment your code and test each bit so you can see if its doing what you want it to then join it up.

If anyone has a better idea let me know as I am just about to do the journey from Metastock to Amibroker!
 
Top