PureBytes Links
Trading Reference Links
|
Hello Jayson,
I am trying to modify your code for sectors and industries in QP-see
the afl below.
Can you assist me. I am trying to change your days 6-10 into the
following 10 days, 22 days, 44 days, 125 days and 250 days. My
results appear to be off can you tell me what I did wrong.
Also, does this exploration also work on stocks?
Thanks,
Brian
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,colorRed)));
AddColumn(Ref(RSC,-2),"2 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-2)>=Ref(rsc,-
3),colorGreen,colorRed)));
AddColumn(Ref(rsc,-3),"3 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-3)>=Ref(rsc,-
4),colorGreen,colorRed)));
AddColumn(Ref(rsc,-4),"4 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-4)>=Ref(rsc,-
5),colorGreen,colorRed)));
AddColumn(Ref(rsc,-5),"5 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-5)>=Ref(rsc,-
6),colorGreen,colorRed)));
AddColumn(Ref(rsc,-10),"10 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-10)>=Ref(rsc,-
11),colorGreen,colorRed)));
AddColumn(Ref(rsc,-22),"22 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-22)>=Ref(rsc,-
23),colorGreen,colorRed)));
AddColumn(Ref(rsc,-44),"44 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-44)>=Ref(rsc,-
45),colorGreen,colorRed)));
AddColumn(Ref(rsc,-125),"125 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-125)>=Ref(rsc,-
126),colorGreen,colorRed)));
AddColumn(Ref(rsc,-250),"250 days",1.2,colorDefault,IIf
(RSC==0,colorBlue,IIf(Ref(rsc,-250)>=Ref(rsc,-
251),colorGreen,colorRed)));
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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
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:
http://docs.yahoo.com/info/terms/
|