[amibroker] Re: GFX: how to calculate the position of the last bar in X-pixels?

 

Hello Herman,

You can mix the default sceen pixel mode - GfxSetCoordsMode(0) and GfxSetCoordsMode(1) (where X is expressed in bar index and Y is expressed in price) even several times in one code.

I quote:

GfxSetCoordsMode( mode )
The function can be called to switch back and forth from pixel -> bar/price mode and vice versa a number of times allowing to mix different modes in the same chart. When co-ordinate mode 1 is selected (bar/price), co-ordinates can be fractional. For example if x is 2.5 it means half way between bar 2 and 3.

http://www.amibroker.com/guide/afl/gfxsetcoordsmode.html


Regards

Miłosz

__._,_.___

Posted by: milosz.mazurkiewicz@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon