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:	238
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 cmoran13, 04-16-2026, 01:02 PM
          0 responses
          43 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          25 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          163 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          98 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          158 views
          2 likes
          Last Post CaptainJack  
          Working...
          X