• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Lines drawn from an indicator vanish

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

    Lines drawn from an indicator vanish

    When I draw a line from an indicator, the line does not always appear, depending on the size of the window or the time of the bar at the left border or the scaling of the chart. When I change the horizontal scale using ctrl-left arrow or ctrl-right arrow the line can disappear and reappear on the next zoom step.

    The blue line in the attached images has been drawn manually, it does not show that behavior.

    What are the correct parameters for the DrawLine function?


    The attached indicator has been simplified to just show the problem.

    Version 7.0.1000.25
    Attached Files

    #2
    mithnadril, there are known limitations in the rendering engine for objects with 2 or more anchor points, which would include the line. Are you sure you using the exact same anchors for your comparison testing?

    Enhancements in this area are planned for our next major platform update.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you for the quick response.

      The anchor points were not the same, I just wanted to try if this is correlated with the visibility of the anchor points.

      So I will modify the code to use a custom plot function.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Sannyttaffaw, Today, 04:14 AM
      0 responses
      3 views
      0 likes
      Last Post Sannyttaffaw  
      Started by canuck, Yesterday, 07:52 PM
      0 responses
      6 views
      0 likes
      Last Post canuck
      by canuck
       
      Started by itrader46, 10-21-2019, 11:12 PM
      2 responses
      20 views
      0 likes
      Last Post koganam
      by koganam
       
      Started by walter739, Yesterday, 06:04 PM
      0 responses
      5 views
      0 likes
      Last Post walter739  
      Started by MarkWise, Yesterday, 03:04 PM
      2 responses
      9 views
      0 likes
      Last Post MarkWise  
      Working...
      X