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

[amibroker] Re: Relative Strength analysis vs an Industry



PureBytes Links

Trading Reference Links

Go to http://www.spdrindex.com/.  There are 9 actively traded 
sector ETFs.  Each ETF has a csv file that contains all sector 
constituents and constituent tickers.  Download the csv file and 
edit leaving just symbols, one per line.  Save and import this list 
into a new amibroker watch list.

Paste this code into a new formula editor window: 

SectorETF = ParamStr("Sector ETF ticker", "XLE" );
RS = RelStrength(SectorETF);
Plot( RS, "RS vs Sector ETF",colorBlue, styleLine );
Periods = Param("Periods", 65, 2, 200, 1 );
Plot( MA( RS, Periods ), "MA",colorRed, styleLine); 
Buy=Cross(RS,MA( RS, Periods ));
Sell=Cross(MA( RS, Periods ),RS);

Apply formula to chart and/or send to automatic analysis for scaning 
and back testing on the relevant watch list.  The default sector 
ticker is energy.



--- In amibroker@xxxxxxxxxxxxxxx, "matrix10014" <allansn@xxx> wrote:
>
> Hi,
> Could someone direct me to where I could read on creating a stock 
> database linked to its respective industry.I would like to create 
> signals based on a stocks industry relative strength crossing its 
> moving average...I havent a clue how to set it up
> 
> 
> Thanks in advance
> allan
>




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.11/542 - Release Date: 11/20/2006