Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing Z-Order when object not selectable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing Z-Order when object not selectable

    Hello, wondering if anyone can help here. I have 2 indicators battling for Z-Order position but neither can be selected by clicking and shift-scrolling. Pic below.

    One of these is KISS Order Flow and the other is SupDemZones. I have tried to just remove them and add them back in the order I want as well to no avail. As you can see the Supply/Demand zones are covering up the bar profile but I was able to bring the actual bar to the front in the normal way.

    KISS is not open source but SupDemZones is so looking through the code I see:

    indicatorVersion = "1.2 | Dec. 2016";
    }
    else if(State == State.Configure)
    {
    if(useMTF)
    {
    barIndex = 1;
    AddDataSeries((BarsPeriodType)barType, barPeriod);
    }

    ZOrder = ChartBars.ZOrder - 7;

    if(!initOne)
    {
    menuSepa = new Separator();
    menuItem = new MenuItem { Header = "Zones" };
    menuItemActive = new MenuItem { Header = (hideActiveZones) ? "Show Active Zones" : "Hide Active Zones" };
    menuItemBroken = new MenuItem { Header = (hideBrokenZones) ? "Show Broken Zones" : "Hide Broken Zones" };




    I have tried playing with that ZOrder setting but no luck. Any other ideas?

    Thanks!​





    Click image for larger version

Name:	image.png
Views:	229
Size:	17.0 KB
ID:	1241234


    #2
    Hello, thanks for writing in. The highest z order will be the top most object/series/plot on the chart. The only way to change this is through the indicator ZOrder = ChartBars.ZOrder - 7; is setting the Zorder for this indicator 7 layers below the chart bars on start up. Set this up to place it further up on the z axis. See also SetZOrder()

    Comment


      #3
      Thank you for the response Chris. Unfortunately after setting that parameter to 20, it still did not send it to the back. Not sure where to go next.

      Comment


        #4
        Hi, thanks for the follow up. The help guide says not to set the ZOrder property directly. Does it work if you comment out this line: ZOrder = ChartBars.ZOrder - 7; and use SetZOrder(ChartBars.ZOrder +1);

        Comment


          #5
          Yes it does! Thanks! I set the number to 20 and it moved to the back..

          Thanks again for the help

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X