Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.HorizontalLine

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

    Draw.HorizontalLine

    Two problems found.
    1. If set in code scale Draw.HorizontaLine(.... scale = true .... ) and after enter in properties of this drawed object, auto scale checkbox will be unchecked.
    2. Eat memory. How to see that: Create 20 HorizontalLines, on each bar, redraw them, delete and add some.

    Please don't ask me code. It's simple.

    #2
    Hello nordseven,

    I am not able to reproduce either behavior.

    Below is a link to a video of the test.
    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    Attached is the script tested.

    Are you able to reproduce using the test script I have created?

    What version of NinjaTrader are you using?
    You can find this in Help -> About.. (for example 8.0.X.X)
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I checked again and found my judgment wrong about unchecked checkbox. The mark in the checkbox was missing due to the superposition of two lines. Checkbox bottom line was really marked.
      Regarding eaten memory i was not careful, it turned out that the memory is consumed when you draw the Draw.HorizontalLine and Draw.Line. For now i can't repeat the error in a separate script. I'm trying to understand.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      62 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      40 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X