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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      174 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      328 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      355 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      181 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X