[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Plot() and z-order



PureBytes Links

Trading Reference Links

Tomasz,

Thanks for all the layers.  I have already added them to my charts  
(which removed a bunch of spaghetti code) and have generically used up  
all 11 already!

Having plot Z-layers makes my AFL much more modular and the includes  
are more complete.

I just want to confirm that Gfx drawings plot above Z-layer 5 and  
below Z-layer -5.  This effectively adds one more Z-layers -- since  
you can't mix Gfx overlay modes in the same chart.

It appears that shapes plot to Z-layer 0 of the specified layer (like  
intraday layer).  Plotting text seems to got to Z-layer 0, as well as  
drawing text studies.  Calling two different things "Layers" may cause  
confusion, so we all should stick with Z-order or Z-layer to make it  
clear.

For those who might wonder what to use all the Z-layers can be used  
for, here is an example of how I apportioned them on my charts for now  
--all are used (and I could even use a few more):

-6 Gfx mode 1 (I do not use)
-5 Bg fill area 1 (used for multiple overlapping bands layer settable  
in each indicator)
-4 Bg fill area 2
-3 Bg fill area 3
-2 Bg fill area 4
-1 Ovals/Rectangles manual chart highlighting (default setting)
0 Study lines (default setting), PlotText(), PlotShapes()
+1 Upper chart Volume bars, Middle chart Volume bars, Trade equity  
histograms & lines
+2 Under price bar shadow areas
+3 Price bars/lines, -- stops & limits (plot under)
+4 Signal Ribbon displays at bottom of chart
+5 Lower overlapped Volume bars and Volume indicators, Volume and  
signal Ribbon grid lines
+6 Gfx mode 0 (8 pseudo "Z-layers" of Gfx button arrays)

The beauty of Z-layers is that the calculation order is decoupled from  
the plot order.

The Gfx drawings do not have Z-order.  It would be nice to have them,  
but since my Gfx buttons can all be drawn at the end of the AFL, it is  
inconvenient, but not too difficult to arrange for the fact that the  
detection order and the drawing order are reversed.  It just means  
that it is not completely modular with includes, and a bit error prone  
from manual editing.  I can live with it though.

This is a major milestone for my charts.

Best regards,
Dennis

On Feb 15, 2009, at 4:12 AM, Tomasz Janeczko wrote:

> Hello,
>
> With regard to 5.21.0 BETA new functionality
> "Plot, PlotForeign and PlotOHLC now have new parameter zorder which  
> defines the Z-axis position of given plot. (FC#257)"
>
> It works correctly for PlotOHLC and PlotForeign.
> For Plot() function, the XShift parameter is incorrectly used as z- 
> order.
> This will be fixed in 5.22.
>
> So if you need z-ordering for Plot(), please use PlotOHLC instead  
> until 5.22 comes up.
>
> Thanks to Dennis for reporting this.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com



------------------------------------

**** 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/

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/