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 Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    30 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    943 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    9 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    7 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Working...
    X