New drawing instructions: anchoring in pixels
Forums › ProRealTime English forum › ProBuilder support › New drawing instructions: anchoring in pixels
- This topic has 11 replies, 6 voices, and was last updated 11 months ago by Ringo.
-
-
03/17/2022 at 3:31 PM #190094
Let’s discover together a new way to position the graphic objects on a price chart, with the coordinates in pixels!
This is a much-awaited feature as it will allow to fix graphic objects (including texts) at precise places of the chart, without it moving according to the barindex or the price as it is currently the case.
It will of course still be possible to choose whether the object uses BARINDEX/PRICE coordinates or only PIXELS/PIXELS or even a mix of the 2!Below is a list of the new instructions:
So we have the possibility to set an anchor point like this :
1drawtext ("test", 50 ,30) anchor(bottomleft)The new keywords are :
- Xshift : defines an abscissa coordinate in pixel offset from the anchor point
- Yshift : defines an ordinate coordinate in vertical pixel offset from the anchor point
- Index : Defines an abscissa coordinate in barindex (classic way)
- Value : Set an ordinate coordinate in price/value (classic way)
- bottomright : bottom-right corner of the chart, the offset values will always be negative to shift left (X axis) and positive to shift up (Y axis).
- bottomleft : bottom-left corner of the graph
the offset values will always be positive in order to shift to the right (X axis) and up (Y axis). - topright : top-right corner of the graph
the offset values will always be negative in order to shift to the left (X axis) and down (Y axis). - topleft : top-left corner of the graph
the offset values will always be positive in order to shift to the right (X axis) and negative in order to shift down (Y axis). - right : middle-right point of the graph
the shift values will always be negative to shift to the left (X axis) and can be positive or negative to shift up(+)/down(-) (Y axis) - left : middle-left point of the graph
the shift values will always be positive to shift to the right (X axis) and can be positive or negative to shift up(+)/down(-) (Y axis) - top : middle-top point of the graph
the shift values can be positive or negative for shift right(+)/left(-) (X axis) and will always be negative to shift down (Y axis) - bottom : middle-low point of the graph
the shift values can be positive or negative for shift to the right(+)/left(-) (X-Axis) and will always be positive in order to shift up (Y-Axis) - middle: middle point of the graph
the shift values can be positive or negative for shift to the right(+)/left(-) (X-Axis) and can be positive or negative for shift up(+)/down(-) (Y-Axis)
I will post few examples in the below posts.
Total of 11 users thanked author for this post. Here are last 10 listed.
03/17/2022 at 3:33 PM #190103Some more examples:
Write the word “test” on the current barindex and at the value of the current close:1drawtext ("test", barindex ,close)Write the word “test” 50 pixels to the right and 30 pixels higher than the bottom-left corner of the graph.
1drawtext ("test", 50 ,30) anchor(bottomleft)Write the word “test” on the current barindex 30 pixel higher than the bottom of the graphic.
1drawtext ("test", barindex ,30) anchor(bottom,index,yshift)Write the word “test” in the middle of the chart at the height of the candlestick high.
1drawtext ("test", 0 ,high) anchor(middle,xshift,value)1 user thanked author for this post.
03/21/2022 at 12:28 PM #19026303/23/2022 at 10:43 AM #190352These new instructions are available since yesterday for PRT soft account (https://www.prorealtime.com)
It is a matter of few weeks to get them on all other versions available (IB, IG, ..).
03/24/2022 at 9:06 AM #19038403/24/2022 at 9:07 AM #19038505/24/2022 at 4:40 PM #19379705/25/2022 at 8:25 AM #193823Hi Nicolas,
Is there a way to get a list (file as pdf, excel sheet…) to be downloaded of the current instructions, new ones since V10, under test but usable…) ?
If we miss this forum threads, we miss very powerful and interresting instruction such as BarsSince, Achor ….
Thanks
05/25/2022 at 9:01 AM #193825All keywords (except those above) are available in our online documentation here: https://www.prorealcode.com/prorealtime-documentation/
1 user thanked author for this post.
01/08/2024 at 7:08 PM #22611001/08/2024 at 7:55 PM #22611601/08/2024 at 9:20 PM #226120 -
AuthorPosts
Find exclusive trading pro-tools on