Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get values from drawing object

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

    Get values from drawing object

    Hi,
    Is it possible to get return values from a drawing object in a strategy script?
    For example:
    1. My strategy draws a Fibonacci Retracement on my chart
    2. Can I read / get the values of the fib levels from this object?

    Alternatively is it possible to get the code that draws the Fib and integrate it into my script?

    thank you
    Ivan

    #2
    Hello Ivan,

    Thank you for your inquiry and welcome to the NinjaTrader Support Forum!

    It is possible to loop through the DrawObjects (http://ninjatrader.com/support/helpG...rawobjects.htm) collection and obtain the StartY and EndY values of an IFibonacciRetracements (http://ninjatrader.com/support/helpG...tracements.htm) object, but, unfortunately, it is not possible to directly obtain the price level values. You would have to manually calculate the price levels based on the StartY and EndY values.

    The DrawObjects page in the NinjaTrader help guide (linked above) provides an example of how to loop through the DrawObjects collection.

    If you would like to programmatically draw a Fibonacci retracement in code, here is a link for more information about the DrawFibonacciRetracements() method call: http://ninjatrader.com/support/helpG...tracements.htm

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Thank you. I will review the links and see if they help.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      597 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      555 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X