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

Reading anchor points for manually drawn Drawing Tool in a script

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

    Reading anchor points for manually drawn Drawing Tool in a script

    Hi, I'd like to draw a bunch of "Path" drawing tools on a chart and then read the price+time values of those anchor points in a script.
    Is there a way to achieve this ? Any pointers re: this would be greatly appreciated.
    thx

    #2
    HI buylosellhi,

    Thanks for your post.

    See the DrawObjects collection here. The example in the header titled "Looping through the collection to find specific draw objects" is what you would be looking for.

    Also see this example that finds all Horizontal lines on a chart and labels them with a price, a good demonstration of accessing a drawing tools anchors:

    This indicator will read the horizontal lines that you have applied to a chart and display the price at which that line sits.


    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Please let me know if I can assist further.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    7 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X