PureBytes Links
Trading Reference Links
|
Al,
I did not understand the log base 2, you speak as if it is directly
available.
If you want a log-shape graph, use in IB settings the
Grid Lines->Logarithmic, it will change your arrays to log10-shape.
Example:
In one pane plot the
Plot(100*Cum(1),"",1,1);
Plot(1000,"",1,1);
Plot(10000,"",1,1);
Plot(100000,"",1,1);
and select Logarithmic
and, in another pane, plot the
Plot(log10(100*Cum(1)),"",1,1);
Plot(log10(1000),"",1,1);
Plot(log10(10000),"",1,1);
Plot(log10(100000),"",1,1);
The shapes of the lines will be the same.
Now, if you want to change the log base [although I do not see the
purpose], if k is the new base, use the
function logk(array,k)
{
y=log10(array)/log10(k);
return y;
}
Dimitris Tsokakis
> -----Original Message-----
> From: Al Venosa [mailto:advenosa@x...]
> Sent: Sunday December 21, 2003 3:25 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Help with Log Scale Plot
>
>
> William or Ken:
>
> This is not directly related to your question, but a couple of
weeks ago, I posted a question and did not get any response. I'd like
to know how to get a log base 10 plot rather than a log base 2.
Anyone know how to do this?
>
> TIA.
>
> Al Venosa
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/
|