PureBytes Links
Trading Reference Links
|
Daniel, check out the built in relative strength indicator. If
that's not what you're looking for try this:
Adjust the tickers to what you need
/* Relative Performance charts
** AFL implementation by Tomasz Janeczko
**
** Use Automatic scaling, Grid: Percent, Limits, Middle
**
** This example plots 4 lines
** bold red - currently selected ticker
** blue - DJIA
** black - IBM
** green - MSFT
** you can of course change the tickers as you wish
*/
MaxGraph = 4; // as many as you wish to use
startpoint = 10; // the start point of comparision will be 10th bar
price = Close;
Graph0 = 100 * ( price/ValueWhen( Cum(1) == startpoint, price ) -
1 );
Graph0Style = 4;
// you can change the ticker below
price = Foreign("^DJI", "C");
Graph1 = 100 * ( price/ValueWhen( Cum(1) == startpoint, price ) -
1 );
Graph1Style = 1;
// you can change the ticker below
price = Foreign("^GSPC", "C");
Graph2 = 100 * ( price/ValueWhen( Cum(1) == startpoint, price ) -
1 );
Graph2Style = 1;
// you can change the ticker below
price = Foreign("^NDX", "C");
Graph3 = 100 * ( price/ValueWhen( Cum(1) == startpoint, price ) -
1 );
Graph3Style = 1;
Graph3Color = 6;
--- In amibroker@xxxxxxxxxxxxxxx, "traderix2003" <d.adam@xxxx> wrote:
> IŽd like to compare a future with another future or an index.
> The Comparative Relative Strength Indicator (not the RSI)is the
> ratio between two securities (dividing one future price by the
> second price)
>
> Has somebody the formula?
>
> Thxs a lot.
> Daniel
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy 1, Get 1 FREE
Control Cravings & Hunger EZ! Fast Acting Natural Oral Spray - $19.97
http://www.challengerone.com/t/l.asp?cid=2866&lp=ezappetite3.html
http://us.click.yahoo.com/rJIe0D/99VGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|