PureBytes Links
Trading Reference Links
|
I do not know what message number it the below was so just copied it from my
favorites under low level graphics.
Begin:
Patrick,
No, it is not on to-do list.
Low-level graphics uses pixels because it is natural co-ordinate system on
the computer.
You can easily transform from your "values" to pixels using linear
transformation:
MinY = ...your minimum y
MaxY = ...your maximum Y
MinX = ...your minimum X
MaxX = ...your maximum X
function GetPixelY( value )
{
global MinY;
global MaxY;
return Status("pxheight") * ( value - MinY ) / (MaxY - MinY); }
function GetPixelX( value )
{
global MinX;
global MaxX;
return Status("pxwidth") * ( value - MinX ) / (MaxX - MinX); }
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "vlanschot" <vlanschot@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, October 07, 2007 12:55 PM
Subject: [amibroker] Re: Looking for Gfx XY Charting template
> Herman, sorry that this won't help you, but I think many people, like
> myself who've experimented with the custom charting functions, are
> waiting for TJ to upgrade this functionality to chart along specified
> values of the variables, instead of (currently the non-intuitive)
> screen pixels. My guess is that this is why you see so few Gfx
> examples, whereas potentially it's such a great tool. Fortunately,
> unless I'm misinformed, this is on TJ's "to-do" list (along with
> 15000000000000 other enhancements ;-)).
>
> PS
>
End:
Jerry Gress
Stockton, Ca.
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Herman
Sent: Saturday, March 01, 2008 10:51 AM
To: AmiBroker User Group
Subject: [amibroker] convert Prices coordinates to Pixel coordinates
Hello,
I remember seeing an example to convert Prices coordinates to Pixel
coordinates, but i can't find it.
Would anyone remember how to do it?
Many thanks!
herman
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|