Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting Position

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

    Plotting Position

    Hello,


    I have a problem with Drawing Objects. I tried different possibilities from help guide.
    The problem still is that eg the DrawDot is not in a certain distance always from High or Low. I have in the code eg if()

    {DrawDot("ba1" + CurrentBar, true, 1, High[1] + 3*TickSize, Color.LightCoral);}

    DrawDot("ba2" + CurrentBar, true, 1, High[1] + 3*TickSize, Color.Gray);}

    and as you can see in the attached screenshot the distance from the high is not the same. It also occurs frequently that the dot is plotted at the high and one can not read the numbers at high.
    When I add more x*TickSize then its often far away from the High.


    Isnt it possible to have always the same distance as coded?


    Thank you!
    Tony
    Attached Files

    #2
    Hello tonynt,

    In this case, I would expect this if the scales are at all different. The dot will be positioned 3 ticks above the high which will be a variable distance depending on the scale you currently have set.

    If you scale in, the distance will become farther away from the bar and if you scale out, you may see the dot on top/behind the bar.

    If you are trying to keep a constant distance you would need to use the Plot override and render a dot instead of using the object. This would be similar to the grid that is being drawn in your image. Drawing objects by nature account for the scaling of the chart when you use them.

    I look forward to being of further assistance.

    Comment


      #3
      Tony,
      I may be wrong but it appears you are trying to access the High of a non-primary data series i.e. [1]. If that's the case, then what I learned is that you must use Highs[1] or Lows[1], i.e. the plural.

      Alternatively, if you did mean to address the primary data series, you may want to change the [1] to a [0] so as to refer to the current bar.

      sandman
      Last edited by sandman; 10-01-2018, 08:39 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 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
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X