stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Can iCustom change ZOrder?
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5114
Page 1 of 1
Author:  zyx [ Sat Mar 11, 2017 8:27 pm ]
Post subject:  Can iCustom change ZOrder?

Hey guys

I have a set of indicators that overlap each other (I only have the ex4 for both of them). Does anyone know if there is a way to change the z order using iCustom? I need a certain one on top of the other but they aren't stacking in the correct order.

I couldn't find an answer to my question on the mql5 site.
Author:  renexxxx [ Sat Mar 11, 2017 8:56 pm ]
Post subject:  Can iCustom change ZOrder?

zyx ยป Sun Mar 12, 2017 6:27 am wrote:Hey guys

I have a set of indicators that overlap each other (I only have the ex4 for both of them). Does anyone know if there is a way to change the z order using iCustom? I need a certain one on top of the other but they aren't stacking in the correct order.

I couldn't find an answer to my question on the mql5 site.
No.

iCustom() is a function to allow the calling program (eg. an EA or another Custom Indicator), to load your Custom Indicator in memory, refresh its buffers and retrieve one or more values from these buffers. There is no visual component to this: no screen objects are created.

If your indicators create screen objects (using the ObjectCreate() function), you can programmatically set the OBJPROP_BACK and OBJPROP_ZORDER of these screen objects, to force them to appear in a certain z-order. However, if you don't have the mq4 source code for these indicators, you are out of luck. :cry:
Author:  zyx [ Sat Mar 11, 2017 9:07 pm ]
Post subject:  Can iCustom change ZOrder?

Bummer.


Thanks Rene
All times are UTC Page 1 of 1