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

Re: [amibroker] Re: How to set TC2000 as 'Data Source'



PureBytes Links

Trading Reference Links


Jayson, thanks for sharing your sector work.  this is fantasticJayson <jcasavant@xxxxxxxxxxx> wrote:


We can also find some interesting trends in our composite indexes by exploring them. The Sector indexes we created in the previous post all begin with ~i      Collect these new index tickers (there should be 13) and save them in a Watch list (I creatively name mine "Sector Index's")
 
Add this code to AA , select n=1 and the new watch list and explore. When complete click on the today heading to sort. Those sectors above the Index ticker are outperforming the group as a whole, these below the ticker are lagging. The colors make it easy to see the trend. The numbers in the cross column indicate when the sector crossed the index. By clicking on a previous day columns you can quickly see how the position of a given sector is moving. You can adjust the look back by adjusting the number in the RSC line. The possibilities are endless but hopefully this example can help some of you create ideas of your own....
Regards,Jayson 
Filter=C>0;
x=RelStrength("~index");
RSC=LinRegSlope(x,7);
AddColumn(IIf(rsc>0,BarsSince(rsc<=0),BarsSince(rsc>=0)),"Cross",1.0);
AddColumn(RSC,"Today RSC",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(rsc>Ref(rsc,-1),colorGreen,colorRed)));
AddColumn(Ref(RSC,-1),"Yesterday RSC",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-1)>=Ref(rsc,-2),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(RSC,-2),"2 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-2)>=Ref(rsc,-3),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-3),"3 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-3)>=Ref(rsc,-4),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-4),"4 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-4)>=Ref(rsc,-5),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-5),"5 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-5)>=Ref(rsc,-6),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-6),"6 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-6)>=Ref(rsc,-7),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-7),"7 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-7)>=Ref(rsc,-8),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-8),"8 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-8)>=Ref(rsc,-9),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-9),"9 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-9)>=Ref(rsc,-10),colorGreen,<FONT
 size=2>colorRed)));
AddColumn(Ref(rsc,-10),"10 days",1.2,colorDefault,IIf(RSC==0,colorBlue,IIf(Ref(rsc,-10)>=Ref(rsc,-11),colorGreen,<FONT
 size=2>colorRed)));Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 
		Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢


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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.