• 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

Draw line in DrawingTools

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

    Draw line in DrawingTools

    Hi,

    Is it possible to draw a line into DrawingTools using "Draw.Line"?

    Finally I could draw a line using the "RenderTarget.DrawLine", but I would like to do it with Draw.Line, using coordinates referred to the bars....

    thanks!

    #2
    Hello artson,
    Thanks for your post.

    Please clarify, do you want to use Draw.Line inside of a custom drawing tool?

    Why not use an indicator? What is your objective?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      Yes, I want to use Draw.Line inside a custom drawing tool.
      I think it will be easier to draw elements taking into account directly the bars and its prices, rather than through the position on the screen.

      I want to draw things between two points that I select with the mouse (anchor), similar to OrderFlowVolumeProfile....

      Thx

      Comment


        #4
        artson,

        I want to use Draw.Line inside a custom drawing tool
        That will not be possible. The Draw methods will only be available in an Indicator or a Strategy. I would consider DrawingTools to be an advanced topic and you would need to use the methods and properties available to drawing tools: https://ninjatrader.com/support/help...wing_tools.htm

        If you want to use any of the line logic built into the NT Drawing Tools you can open the "Lines" script (under the DrawingTools folder in the NS Editor) and navigate to the desired portion of code. Each section of code will be labeled with what line it is pertaining to. However, the Order Flow Volume Profile code will not be available.



        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Ok, thanks

          Yes, I learnt to draw lines inside DrawingTools

          It will be more complicated but I'll try to do it.

          Thanks anyway!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mebjan, Today, 08:52 PM
          1 response
          12 views
          0 likes
          Last Post bltdavid  
          Started by authenticx, Today, 10:07 PM
          0 responses
          8 views
          0 likes
          Last Post authenticx  
          Started by Hurrikane, Today, 09:18 PM
          0 responses
          5 views
          0 likes
          Last Post Hurrikane  
          Started by Fness2020, Today, 08:29 PM
          0 responses
          15 views
          0 likes
          Last Post Fness2020  
          Started by andrewtrades, Today, 08:24 PM
          0 responses
          10 views
          0 likes
          Last Post andrewtrades  
          Working...
          X