Z-Order Issues |
Top Previous Next |
Text objects (e.g., any object created using the drawText series of functions) will always overlay lines drawn using the drawLine functions as well as lines plotted by eSignal via the return function.
Example:
drawTextRelative( -20, 96.0, "TEXT", Color.purple, null, Text.BOLD | Text.VCENTER, null, 12, -9 ); drawLineRelative( -50, 96.0, 0, 96.0, PS_SOLID, 2, Color.blue, -10 );
return( 96.0 );
In the example above, we are printing the word "TEXT" at the 96.0 price level, drawing a line at the 96.0 price level and returning 96.0 as a value to be plotted. In this case the word "TEXT" will overlay both the drawn line and the plotted line and the drawn line will overlay the plotted line.
Line objects (e.g., objects created using the drawLine series of functions) will always overlay lines plotted by eSignal via the return function. Within Line objects, the most recently drawn Line object will overlay previously drawn Line objects.
Example:
drawLineRelative( -50, 96.0, 0, 96.0, PS_SOLID, 2, Color.blue, -10 ); drawLineRelative( -50, 96.0, 0, 96.0, PS_SOLID, 2, Color.red, -11 );
return( 96.0 );
In the example above, two lines are drawn at the 96.0 price level and we are returning 96.0 as a value to be plotted. The second line drawn (e.g, the red line) will always overlay the first line drawn (e.g., the blue line) and both drawn lines will overlay the plotted line.
Within plotted lines, the z-order will be determined by the order the values are returned, with the later values having precedence over the earlier values.
Example:
return new Array( Plot1, Plot2, Plot3 );
Assuming that Plot1, Plot2 and Plot3 all meet at the same price level, Plot3 will be drawn over Plot2 and Plot2 will be drawn over Plot1. |