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

RE: [amibroker] AFL Help



PureBytes Links

Trading Reference Links




Brian, do you want 
to find the values of the differences, or number of times they 
happen?
This should give you the 
count of the number of times they occur and find the 
difference
 
newh = Cross(C, 
ref(HHV,250),-1));

newl = Cross( 
ref(LLV,250),-1),C);
 
newhyr = 
cum(newh);
newlyr = 
cum(newl);
 
newtotalyr = newhyr - 
newlyr;
 
Plot(newtotalyr, "", 
4,4);
 
 
 
Cheers,Graham<A 
href="">http://groups.msn.com/ASXShareTrading<A 
href="">http://groups.msn.com/FMSAustralia 


  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: Brian Elijah 
  [mailto:cadvantag@xxxxxxxxxxxxxx] Sent: Wednesday, 5 November 2003 
  6:31 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  AFL Help
  I am trying to write a scan that uses the total 
  new highs minus the total new lows and use it as a indicator.
   
  I tried this but it doesnt give the total of new 
  highs or total of new lows. How do I get totals?
   
  
  newhyr = Ref<FONT 
  size=1>(HHV<FONT 
  size=1>(Close, 250<FONT 
  size=1>), -1);
  newl = Ref<FONT 
  size=1>(LLV<FONT 
  size=1>(Close, 2<FONT color=#ff00ff 
  size=1>50),-<FONT color=#ff00ff 
  size=1>1);
  newhightotal = newhyr - newl;
  Plot( <FONT 
  face="Courier New" size=1>newhightotal, <FONT 
  color=#ff00ff size=1>"New 
  High-New Low", 
  4<FONT 
  size=1>,4<FONT 
  size=1>);
   
  Thanks,
  BrianSend 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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