This is just scaling (converting price and date x,y to pixels)
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "pierre8rou" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, October 04, 2007 7:06 PM
Subject: [amibroker] Try to understand Exemple 4 from "Using low-level graphics
functions".
> Hi,
>
> Try to understand Exemple 4 from "Using low-level graphics functions".
> And more specially this code :
>
> for( i = 0; i < TotalBars AND i < ( BarCount - fvb ); i++ )
> {
> x = 5 + i * (pxwidth - axisarea - 10) / ( TotalBars + 1 );
> y = 5 + ( C[ i + fvb ] - Miny ) * ( pxheight - 10 )/ ( Maxy - Miny );
> GfxRectangle( x - 1, pxheight - y - 1, x + 2, pxheight - y + 2);
> }
>
> Thanks,
>
> Pierre
>
>
>
> 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
>
>
>
>
>