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

[amibroker] Al's Challenge



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Al, below is a graph of the ratio of the 245-day average volume 
compared to the 245-day average volume in 1985   It's a sliding, 
one-year average.
<FONT face=Arial color=#0000ff 
size=2> 
Here 
is the code that I used... without loops.  Unfortunately, the dates don't 
show.
<FONT face=Arial color=#0000ff 
size=2> 
My 
estimate that today's average volume is about ten times the average volume in 
1985 wasn't too far off.
<FONT face=Arial color=#0000ff 
size=2> 
So... 
back to your challenge... I need one line of code to normalise the number I get 
in my calculation (1-13) to be between 100,000 and 500,000 (or 
similar).
<FONT face=Arial color=#0000ff 
size=2> 
Your 
turn.
<FONT 
color=#0000ff> 

LB =<FONT 
color=#0000ff>BarIndex()-245<FONT 
face=Arial>;
SPXVol = <FONT 
color=#0000ff>Foreign(".SPX", <FONT 
color=#ff00ff>"Volume", fixup=1);
CurrentRUTVolAvg = MA(<SPAN 
class=840200604-20062003>SPXVol,<FONT 
color=#ff00ff>245);
BaseRUTVolAvg = Ref(<FONT 
color=#0000ff>MA(SPXVol,<FONT 
color=#ff00ff>245),-LB);
Graph0=Current<SPAN 
class=840200604-20062003>SPXVolAvg/Base<SPAN 
class=840200604-20062003>SPXVolAvg;
<FONT face=Arial color=#0000ff 
size=2> 
<IMG 
src="bmp00007.bmp">






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.


Attachment: Description: ""