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.
    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


    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 alifarahani, Today, 09:40 AM
      6 responses
      38 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      15 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X