PureBytes Links
Trading Reference Links
|
I
believe I copied this from a message here a while back. Do not know who to give
the credit to.
<FONT face=Arial color=#0000ff
size=2>
Would
the author of this ID please?
<FONT face=Arial color=#0000ff
size=2>
//Support and resistance levels.<FONT
color=#008000 size=1>
//using RSI
//Load into Indicator Builder<FONT
color=#008000 size=1>
//Sensitivity of the levels can be changed with the variables<FONT
size=1>
//Can test different numbers live with the Param function ctrl-R with open
pane
RSIperiod = Param<FONT
size=1>("RSI p"<FONT
size=1>,14,<FONT
color=#ff00ff size=1>3,<FONT color=#ff00ff
size=1>30,1<FONT
size=1>);
EMAperiod = Param<FONT
size=1>("EMA p"<FONT
size=1>,5,<FONT
color=#ff00ff size=1>3,<FONT color=#ff00ff
size=1>10,1<FONT
size=1>);
Percent = Param<FONT
size=1>("ZIG %"<FONT
size=1>,9,<FONT
color=#ff00ff size=1>5,<FONT color=#ff00ff
size=1>15,1<FONT
size=1>);
HHVperiod = Param<FONT
size=1>("HHV p"<FONT
size=1>,6,<FONT
color=#ff00ff size=1>3,<FONT color=#ff00ff
size=1>10,1<FONT
size=1>);
NumLine = Param<FONT
size=1>("Num Lines"<FONT
size=1>,8,<FONT
color=#ff00ff size=1>1,<FONT color=#ff00ff
size=1>20,1<FONT
size=1>);
//Base = RSI(RSIperiod);
Base = EMA(<FONT
color=#0000ff size=1>RSI(RSIperiod),EMAperiod);
GraphXSpace=0.5<FONT
size=1>;
Plot(C,<FONT color=#ff00ff
size=1>"",colorBlack,styleCandle);
for( i = <FONT color=#ff00ff
size=1>1; i <= numline; i++ )
{
ResBase = LastValue<FONT
size=1>(Peak<FONT
size=1>(Base,Percent,i));
SupBase = LastValue<FONT
size=1>(Trough<FONT
size=1>(Base,Percent,i));
Plot(<FONT color=#0000ff
size=1>ValueWhen( ResBase==Base, <FONT color=#0000ff
size=1>HHV(H,HHVperiod) ), <FONT color=#ff00ff
size=1>"Resist Level", colorRed,
styleLine);
Plot(<FONT color=#0000ff
size=1>ValueWhen( supbase==Base, <FONT color=#0000ff
size=1>LLV(L,HHVperiod) ), <FONT color=#ff00ff
size=1>"Support Level", colorGreen,
styleLine);
}
Title = Name() +
"; " + <FONT
color=#0000ff size=1>Date() + <FONT color=#ff00ff
size=1>": Support & Resistance Levels using RSI: " +
EncodeColor<FONT
size=1>(colorGreen)+ "Support Levels
are Green; "+<FONT color=#0000ff
size=1>EncodeColor(colorRed)+ <FONT
color=#ff00ff size=1>"Resistance Levels are Red: "<FONT
size=1>+EncodeColor<FONT
size=1>(colorBlack)+"Number of lines of
each ="+<FONT color=#0000ff
size=1>WriteVal(numline,<FONT color=#ff00ff
size=1>1) ;
Rik RasmussenStock Analyzer mailing list moderator<A
href=""
target=_blank>http://groups.yahoo.com/group/stockanalyzer/
<BLOCKQUOTE
>
<FONT face=Tahoma
size=2>-----Original Message-----From: mrdavis9
[mailto:mrdavis9@xxxxxxxxxx]Sent: Thursday, May 22, 2003 9:21
PMTo: amibroker@xxxxxxxxxxxxxxxCc: jeff
davisSubject: Re: [amibroker] image problem
fixed
Rik, I would like to have the complete code for
the support and resistance levels on your QQQ chart. Finding the code
for them was next on my list of projects. Thanks, Ron D
<BLOCKQUOTE
><FONT
face=Arial color=#0000ff
size=2>
Yahoo! Groups Sponsor
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|