Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 stafe, 04-15-2024, 08:34 PM
          7 responses
          31 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by adeelshahzad, Today, 03:54 AM
          4 responses
          29 views
          0 likes
          Last Post adeelshahzad  
          Started by merzo, 06-25-2023, 02:19 AM
          10 responses
          823 views
          1 like
          Last Post NinjaTrader_ChristopherJ  
          Started by frankthearm, Today, 09:08 AM
          5 responses
          17 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          43 views
          0 likes
          Last Post jeronymite  
          Working...
          X