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

[amibroker] Re: AFL Syntax Question #2



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Brian,
what 
part seems off to you?
<FONT face=Arial color=#0000ff 
size=2> 
I 
suppose you could use it on stocks....I have not. I use it as a means to find 
gathering strength or weakness in a given sector then look for chart  
patterns with in the sector to make my entry.
 
Regards,Jayson 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Brian 
  [mailto:cadvantag@xxxxxxxxxxxxxx]Sent: Sunday, May 02, 2004 10:47 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  Jayson: QuestionHello 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,BrianFilter=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)));Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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 the Yahoo! Terms of Service.