[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Exploration for Relative Strength Setups



PureBytes Links

Trading Reference Links

Tim,
This is close to what I am currently working with.
I did a couple of modifications, but the coding is yours!

Notice I placed the QQQ as the relative strength measurement
for both the RelStrength("") and the Foreign functions -
my
explore stopped when there is no base security in the database 
for a stock.

I added several filters that help catch the turning point of a 
relative strength move - see below.

I also grouped all of the ROC next to each other in the explore, as
are the Relative Strength numbers.  This makes it easier for 
me
to compare numbers.  Headings were renamed to be able to see
all
columns. RR is relative ROC, and RS is relative strength.

My database of about 800 stocks produced only about 8 that pass the
filter.  This narrows down what to research quite well!  To
further
narrow down the results, filter for all ROC's and RS's being
positive.

Be advised that the short term scan used for these filters might
lead to whipsaw!  But it does seem to catch what is close to
"V"
bottoms.  I also use a seperate scan that measures
accumulation/
distribution to aid is stock selection.


// Relative Strength Setups - Tim Gadd

T =
46;
RS =
RelStrength("QQQ");

Filter =
(ROC(C,T)
>=
ROC(Foreign("QQQ","Close"),T)
OR

(((ROC(RS,1)/MA(abs(ROC(RS,1)),T))
>
1.5 
OR
(ROC(RS,2)
/
MA(abs(ROC(RS,2)),T))
>
1.5
OR
(ROC(RS,3)
/
MA(abs(ROC(RS,3)),T))
>
1.5
OR
(ROC(RS,4)
/
MA(abs(ROC(RS,4)),T))
>
1.5)

OR

((ROC(C,1)/MA(abs(ROC(C,1)),T))
>
1.5 
OR
(ROC(C,2)
/
MA(abs(ROC(C,2)),T))
>
1.5
OR
(ROC(C,3)
/
MA(abs(ROC(C,3)),T))
>
1.5
OR
(ROC(C,4)
/
MA(abs(ROC(C,4)),T))
>
1.5)))

AND
ROC(C,1)
/
MA(abs(ROC(C,1)),T)>=
ROC(C,2)
/
MA(abs(ROC(C,2)),T)
AND
ROC(C,2)
/
MA(abs(ROC(C,2)),T)>=
ROC(C,3)
/
MA(abs(ROC(C,3)),T)
AND
ROC(C,3)
/
MA(abs(ROC(C,3)),T)>=
ROC(C,4)
/
MA(abs(ROC(C,4)),T)
AND
ROC(RS,1)
/
MA(abs(ROC(RS,1)),T)>=ROC(RS,2)
/
MA(abs(ROC(RS,2)),T)
AND
ROC(RS,2)
/
MA(abs(ROC(RS,2)),T)>=ROC(RS,3)
/
MA(abs(ROC(RS,3)),T)
AND
ROC(RS,3)
/
MA(abs(ROC(RS,3)),T)>=ROC(RS,4)
/
MA(abs(ROC(RS,4)),T);

NumColumns =
9;

Column0 =
ROC(C,T);
Column0Name =
"ROC";

Column1 =
ROC(C,1)
/
MA(abs(ROC(C,1)),T);
Column1Name =
"RR1";
Column5 =
ROC(RS,1)
/
MA(abs(ROC(RS,1)),T);
Column5Name =
"RS1";

Column2 =
ROC(C,2)
/
MA(abs(ROC(C,2)),T);
Column2Name =
"RR2";
Column6 =
ROC(RS,2)
/
MA(abs(ROC(RS,2)),T);
Column6Name =
"RS2";

Column3 =
ROC(C,3)
/
MA(abs(ROC(C,3)),T);
Column3Name =
"RR3";
Column7 =
ROC(RS,3)
/
MA(abs(ROC(RS,3)),T);
Column7Name =
"RS3";

Column4 =
ROC(C,4)
/
MA(abs(ROC(C,4)),T);
Column4Name =
"RR4";
Column8 =
ROC(RS,4)
/
MA(abs(ROC(RS,4)),T);
Column8Name =
"RS4";

At 04:06 PM 11/27/01 +0000, you wrote:
>For those Amibroker users who use Relative Strength chart analysis,

>here's an exploration I use to identify issues that are making 
>anomolous relative strength moves. These are not buy/sell signals,

>but entry setups. Once identified, I then look at the price and 

>relative strength comparative charts for the actual entry decisions

>using good old chart analysis. The object is to identify new market

>leaders when they begin to make their move.
>
>The first part of the filter identifies those issues that are 
>outperforming a broad market index over the period (T). I select a

>period based on trend characteristics of the index.
>
>The second part of the filter identifies when the relative strength

>comparative line has made a 1, 2, 3, or 4 day change that is one and

>one-half times greater than the average of the absolute values of the

>1, 2, 3, or 4 day relative strength changes over the period (T). Note

>that the relative strength comparative line does not necessarily use

>the same broad market index as used in the first part of the
filter.
>
>The third part of the filter identifies when the 1, 2, 3, or 4 day

>price rate of change is one and one-half times greater than the 

>average of the absolute values of the 1, 2, 3, or 4 day price ROC
over 
>the period (T).
>
>I'd love to hear how others are using Amibroker for relative strength

>analysis.
>
>Tim Gadd
>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>// Relative Strength Setups - Tim Gadd
>
>T = 46;
>RS = RelStrength("");
>
>Filter = ROC(C,T) >=
ROC(Foreign("^VAY","Close"),T) OR
>
>(((ROC(RS,1)/MA(abs(ROC(RS,1)),T)) > 1.5  OR
>(ROC(RS,2) / MA(abs(ROC(RS,2)),T)) > 1.5 OR
>(ROC(RS,3) / MA(abs(ROC(RS,3)),T)) > 1.5 OR
>(ROC(RS,4) / MA(abs(ROC(RS,4)),T)) > 1.5)
>
>OR
>
>((ROC(C,1)/MA(abs(ROC(C,1)),T)) > 1.5  OR
>(ROC(C,2) / MA(abs(ROC(C,2)),T)) > 1.5 OR
>(ROC(C,3) / MA(abs(ROC(C,3)),T)) > 1.5 OR
>(ROC(C,4) / MA(abs(ROC(C,4)),T)) > 1.5));
>
>NumColumns = 9;
>
>Column0 = ROC(C,T);
>Column0Name = "ROC(T)";
>
>Column1 = ROC(C,1) / MA(abs(ROC(C,1)),T);
>Column1Name = "RelROC(1/T)";
>Column2 = ROC(RS,1) / MA(abs(ROC(RS,1)),T);
>Column2Name = "RelRS(1/T)";
>
>
>Column3 = ROC(C,2) / MA(abs(ROC(C,2)),T);
>Column3Name = "RelROC(2/T)";
>Column4 = ROC(RS,2) / MA(abs(ROC(RS,2)),T);
>Column4Name = "RelRS(2/T)";
>
>Column5 = ROC(C,3) / MA(abs(ROC(C,3)),T);
>Column5Name = "RelROC(3/T)";
>Column6 = ROC(RS,3) / MA(abs(ROC(RS,3)),T);
>Column6Name = "RelRS(3/T)";
>
>Column7 = ROC(C,4) / MA(abs(ROC(C,4)),T);
>Column7Name = "RelROC(4/T)";
>Column8 = ROC(RS,4) / MA(abs(ROC(RS,4)),T);
>Column8Name = "RelRS(4/T)";
>
>
>------------------------ Yahoo! Groups Sponsor
---------------------~-->
>E-mail viral marketing - with FastTree
>Email to 50. You might reach 500.
>Unlimited use and tracking, $20/mo.
>http://www.fasttree.com/s/11.htm
>http://us.click.yahoo.com/UGVLpD/MJRDAA/yigFAA/dkFolB/TM
>---------------------------------------------------------------------~->
>
> 
>
>Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

>