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

RE: [amibroker] Math transform?



PureBytes Links

Trading Reference Links


<SPAN 
class=198484903-10102002>Steve,
you 
would need to calculate the high value for each stock then divide your current 
reading into that number to find your current percentage of the 
whole.
<SPAN 
class=198484903-10102002> 
lets 
say you want to look at 250 bars of data. 
<SPAN 
class=198484903-10102002> 
<SPAN 
class=198484903-10102002>x=hhv(trix(9),250);      <A 
href="">\\this gives you the highest value of the 9 day trix 
over the last 250 days.
<SPAN 
class=198484903-10102002>y=(trix(9)/x)*100;     <A 
href="">\\this gives you the percentage the current reading as 
it relates to the high then multiplies that number by 100 to give you a 
percentage reading.
<SPAN 
class=198484903-10102002> 
while 
trix will vary from stock to stock you will be able to see which stocks are 
nearer their historical highs.....
 
Jayson 

<FONT face=Tahoma 
size=2>-----Original Message-----From: Steve Davis 
[mailto:_sdavis@xxxx]Sent: Wednesday, October 09, 2002 9:39 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Math 
transform?
Here is aquestion 
for the mathematically inclined.
<FONT face=Arial 
size=2> 
Suppose Ihave an 
indicator, for example TRIX, that has a different range of values for different 
stocks.
<FONT face=Arial 
size=2> 
How can it be 
mathematically transformed to force it into the same range, say 0-100, for all 
stocks?
<FONT face=Arial 
size=2> 
Thanks in 
advance,
<FONT face=Arial 
size=2>-StevePost 
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.