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 Mindset, Today, 06:46 AM
      0 responses
      8 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, Yesterday, 05:21 PM
      0 responses
      12 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      14 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      81 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      47 views
      0 likes
      Last Post PaulMohn  
      Working...
      X