Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ordering chart elements

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

    ordering chart elements

    Hello #Zachary,
    #OP I hope this does not hijack your thread but jumped in because it is something I’ve experienced, fiddled with and parked so nudged me. If you’re not Solved, extending/expanding discussion may benefit us both.
    ’I used to be able to click….’ me too.
    I haven’t changed properties/allow select drag drop.
    I have added an indicator which fills background (Range High/Low - so, if screen view is inside the range, the entire panel is inside the background fill).
    The consequence is that clicking anywhere on the screen is inside the fill so always results in Selecting the indicator - similar to #OP’s problem. If there is ‘naked panel’ visible outside the Range indicator boundaries, clicking on it will unselect the Range indicator and then can select another Object if it resides outside the Range.
    This indicator has z-order coded in to it. I looked in to it, didn’t properly understand the Ninjascript Help, the coding used is the stuff to make the indicator either highest or lowest z-order, I re-coded it using the ‘opposite’ and it didn’t seem to do anything different.

    In layman/practical terms, I have a Range fill which in many circumstances the panel area will entirely be inside that range fill. Clicking always selects the indicator, so I can’t select any others.

    But not quite….
    Relationship to position of mouse pointer relative to Object wanting to click.
    To the practical example - I draw an arrow inside the background-filled range. Then I want to modify it. If I click ‘arbitrarily’ inside the Range, the Range indicator gets selected (per #OP). But if I ‘fiddle around’ clicking near the arrow, sometimes I will be able to get it to select. Seems to depend on where I am hovering relative to the object’s anchor points. So my gut tells me there is something going on to do with more than z-order.
    What this means in practice is I’ll invariably select the Range indicator if click inside the range. But it is *possible* that the arrow line may be selected and it is something to do with proximity of click, possibly to object’s anchor point (although I don’t know which one).
    Which is very frustrating in practice, clicking & getting range indie invariably, right click to unclick, hover mouse over arrow line and try to get lucky, not knowing why you do when you do.

    And finally, how is the default z-order of the arrow line determined? If that were always the top-most level (on top of the range background fill) then it would be the first that should get selected. But again proximity will always come in to play. If I am inside the range indicator, every pixel is ‘live’ to be selected nearest. So how is this handled (nearest object, proximity?).

    Seems to me, that I want the range indicator always to be at the back because I never want to modify it or it’s outputs and will most often times want to select objects inside its range. I would have thought that would be what the hard coding in the indicator was for but doesn’t work like that, and when I ‘reversed’ the code it didn’t change.
    I always want a manually drawn arrow line to be selectable to manually adjust it, sometimes I am able to select it after several attempts but don’t know what I’m doing differently when I grab it successfully.

    KR

    edit. I didn’t have my platform up earlier - can confirm my ‘allow select…’ option is checked & saves unlike #OP.
    hence #Zachary if you feel these are likely unrelated kindly/feel free to move to a new thread. At your discretion.

    KR

    edit - not sure if background fill has anything to do with it or is simply if clicking inside the indicator’s range (point being, same as #OP, symptom is I can’t avoid it being selected by default, mainly, & when I can don’t know why (like playing pin the tail on the donkey with a moving donkey)
    Last edited by brucerobinson; 06-21-2022, 08:08 AM.

    #2
    Hello Bruce,

    Thanks for your reply.

    We did decide to move your query to a separate thread, as it does seem to be distinct from the other user's issue.

    I definitely think that this primarily has something to do with the way the Range indicator that you mentioned is programmed or how it renders the background fill. Drawing objects will always be attached to the top most layer of the z-order when they are created, but even when they aren't, they are normally selectable regardless of order. For example, if you draw a rectangle and then place an arrow line within the filled area of the rectangle then move the arrow line to bottom of the z-order, you are still able to select either one regardless of the order that they are in. The only time that I would expect an issue is if the anchor of the 2 objects are basically on top of one another. It sounds like the anchors of the Range indicator are 'overlapping' the anchors of the line and making it difficult to select unless you click in precisely the right area.

    Do you ever experience this issue when you are not using the indicator?

    Is this indicator something that you created yourself or was provided by a third party?

    If possible, are you able to create and share a brief video to demonstrate the problem so that I can make sure I'm correctly understanding what you are describing and get a better idea of what your specific chart looks like?

    I look forward to your reply and to further assisting you.

    Comment


      #3
      Hello Zachary and thanks.

      Please see attached screenrecording
      It shows me clicking inside the range (a clarification - the Opening Range is used as and Overnight Range (prre-Session range) and Day Session Range lest it be confusing that you're not seeing a 5min or 30min OR as you might be expecting you would see, long story but it isn't relevant to the zorder issue) placing a Line object and an arrowhead line entirely inside the Range. I cannot select the Line, am able to select the arrowhead once, and then not again. I try at various points on the lines such as end and middle anchor points. I then add a line that crosses the Range boundary to blank screen. I can select it outside the Range4 , inside once (IIRC) and not.
      I change timeframe because I have found there seems to be different behaviour - having said that it is all so random I have not been able to deduce anything meaningful from what happens, having given up on 20 clicks to get lucky once in a while but no discernible reason why
      I workaround by drawing lines and extending them outside the range, but this is inconvenient and often not a viable option
      I show the indicator which is being selected, and its' settings. I highlight that I use Fill. However that is not to say this is relevant - it may just be because it iswwithin the boundaries of the plot, irrespective of fill.

      "Do you ever experience this issue when you are not using the indicator?" - I don't know because all my charts use the same template with this indicator. However I believe I didn't experience this before using this indicator (I used the recommended added hidden data series and trading hours templates/OHL indicators but it was unsuccessful - see earlier - 'long story')


      "Is this indicator something that you created yourself or was provided by a third party?" it is the amaOpeningRange indicator by Harry Fat Tails Lizard Indicators, with whom I expect you are familiar.by reputation
      The script contains the code

      this.ZOrder = -5;

      As I mentioned earlier, I did do some investigation, script help files etc. and attempted some modifications to implement making the indicator always at the back, or -20 or -50, but to no avail. A bit above my pay grade. And having used a few of Harry's indicators in 7 & 8 it wouldn't be the first place I'd expect to find a problem

      Kind regards

      Edit - I would say it is easier to select a box than it is a line - if I place the cursor inside a corner close to the corner. Subjective, opinion.
      Likewise Horizontal Line - relatively easy to select. Free-form with or without arrow very problematic.comparatively

      I should say I am on v 26.0. Due to the issues reported with .1, and that I am not experiencing any (new) ones with .0 I have held off on .1

      I see vendor =Edge= (like Harry Fat Tails, an extrtemely experienced developer know for his quality products) has posted again about new Region-related issues, as hove others

      I see from Release notes there were a plethora of related fixes in 26.0

      Hmmm
      Last edited by brucerobinson; 06-22-2022, 07:26 AM.

      Comment


        #4
        Hello Brucerobinson,

        Thank you for the follow-up message.

        I would like to do a test to see if you still have trouble clicking on the Drawing Objects when the Chart doesn't have this 3rd party NinjaScript Add-on.
        • Go to the Control Center > Workspaces > Hover over the workspace with a green icon next to it > Click save as > Call it "For Testing"
        • You will now be on a copy of the original workspace so you can remove things for testing
        • Now, remove the amaOpeningRange indicator from one of the charts
        • Try Clicking on the Drawing Objects
          • Is it easier to click on them now?
          • If not, try removing more things and see if removing anything, in particular, makes it easier to click on the specific Drawing Object
        • When you're done testing, you can go back to the Workspaces and go to the Original workspace and make changes as needed.
        If it is easier to click on the Drawing Objects after removing the amaOpeningRange indicator, you can either:
        • Remove the NinjaScript Add-on from your charts and stop using it
        • Or, reach out to Lizard Indicators Directly and ask them why their indicator is making it so hard to click on the Drawing objects and how the NinjaScript could be modified to make it easier to use.
          • Since NinjaTrader did not create this Indicator, we do not have any further documentation or information on what it does, how it works, how it is set up, or what needs to be done to make it work in a different way.

        If you are still having trouble clicking the Drawing Objects, please use a screen capture software or the video camera on your cell phone to record a short video to demonstrate this behavior so we can attempt to replicate it on our computer.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        55 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        37 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        17 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        19 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        49 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X