• 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?
    JoshNinjaTrader 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.



        JoshNinjaTrader 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 erichuff, Today, 04:53 AM
          1 response
          19 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by stevenev1, Today, 01:43 PM
          0 responses
          8 views
          0 likes
          Last Post stevenev1  
          Started by shinuvu, Today, 11:05 AM
          3 responses
          14 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by Hagar, Yesterday, 07:12 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by PBreen, Today, 11:59 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Working...
          X