• 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 morrnel, Yesterday, 11:35 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by lju45, Today, 07:38 AM
          0 responses
          3 views
          0 likes
          Last Post lju45
          by lju45
           
          Started by evanp90, Today, 06:30 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by sandman, Today, 07:13 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by GLFX005, Today, 03:54 AM
          2 responses
          10 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Working...
          X