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

RE: [amibroker] Re: scan for trading ranges?



PureBytes Links

Trading Reference Links

I never use them in the traditional sense... so i am not familiar with them
but given two levels it would be very easy to list the stock witin the
range. I suspect you may find that the definition f support and resistance
is subject to debate....below some code by Graham (from afl Library). If you
can determine which lines you want to use it will be easy to write your
exploration.

herman

//Support and resistance levels using RSI.
//graham Kavanagh May 2003
//Load into Indicator Builder
//Sensitivity of the levels can be changed with the variables
//Can test different numbers live with the Param function ctrl-R with open
pane
RSIperiod	= Param("RSI p",3,14,30,1);
Percent 		= Param("ZIG %",8,9,15,1);
EMAperiod 	= Param("EMA p",4,5,10,1);
HHVperiod 	= Param("HHV p",3,5,10,1);
NumLine 		= Param("Num Lines",3,1,20,1);

Base = DEMA(RSI(RSIperiod),EMAperiod);

GraphXSpace=0.5;
Plot(C,"",colorBlack,styleCandle);

for( i = 1; i <= numline; i++ )
{
ResBase = LastValue(Peak(Base,Percent,i));
SupBase = LastValue(Trough(Base,Percent,i));
Plot(ValueWhen( ResBase==Base, HHV(H,HHVperiod) ), "Resist Level", colorRed,
styleLine);
Plot(ValueWhen( supbase==Base, LLV(L,HHVperiod) ), "Support Level",
colorGreen, styleLine);
}
Title = Name() + "; " + Date() + ": Support & Resistance Levels using RSI: "
+
EncodeColor(colorGreen)+ "Support Levels are Green; "+EncodeColor(colorRed)+
"Resistance Levels are Red: "+EncodeColor(colorBlack)+
"Num lines ="+WriteVal(numline,1) ;





-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
Behalf Of carlacash26
Sent: December 28, 2006 7:07 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: scan for trading ranges?


I would define a trading range like when price has bounced between a
support and a resistance line X number of times over a X period of
time. How would you define it?

Is there any code available for anything like this?

--- In amibroker@xxxxxxxxxxxxxxx, "Herman" <psytek@xxx> wrote:
>
> It would depend on your definition of a "trading range"...almost
anything
> precisely defined can be coded.
>
> herman
>
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
> Behalf Of carlacash26
> Sent: December 28, 2006 6:09 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] scan for trading ranges?
>
>
> Is it possible to scan a large number of stocks to get a list of
those
> who are currently in a trading range? Or is this very hard to
> accomplish? Are there any code available of such?
>
>
>
>
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

Yahoo! Groups Links





Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.28/605 - Release Date: 12/27/2006 12:21 PM