• 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

Accessing Indicator Data from DrawingTool?

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

    Accessing Indicator Data from DrawingTool?

    I'm building a custom DrawingTool and need to access some indicator data from within.

    For example, when siting the control initially, I'd like to access the current ATR of the chart on which the tool is being rendered.

    However, calling an indicator directly doesn't work.

    For example:

    Code:
    public override void OnMouseDown(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, ChartAnchor dataPoint)
    {
         .... various code ....
    
        // THIS DOES NOT WORK
        double dblATR = ATR(14)[0];
    
    
         .... more various code ....
    }
    Is there a way I can access indicator (or bar OCHLV) data from within a DrawingTool?

    #2
    Hello MarkWise,

    I'm not aware of any way to call an indicator from a drawing tool.

    I have submitted a feature request on your behalf for the NinjaTrader Development to consider adding this functionality to a future version of NinjaTrader.

    Once I have a tracking ID for this request, I will post this in this thread for future reference.

    In the meantime, you would need to add the calculations done in the indicator directly to the drawing tool.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi MarkWise,

      I've received a tracking ID for your feature request. For future request, your request to allow indicators to be called from a Drawing object script is being tracked with ID #SFT-1883.

      Please note, it is up to the NinjaTrader Development to decide if and when a request will be implemented.

      We appreciate the suggestion. Please let me know of any other requests or suggestions you may have for the NinjaTrader platform.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Awesome.

        Thanks!

        In the meantime, I'm calculating my ATR data manually.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by quantera, Today, 05:38 PM
        0 responses
        3 views
        0 likes
        Last Post quantera  
        Started by ciro1963, Today, 03:58 PM
        0 responses
        2 views
        0 likes
        Last Post ciro1963  
        Started by swcooke, Today, 02:48 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by SOFI777, Today, 01:03 PM
        5 responses
        30 views
        0 likes
        Last Post SOFI777
        by SOFI777
         
        Started by Gerard111, 09-23-2015, 07:25 AM
        2 responses
        1,207 views
        0 likes
        Last Post NinjaTrader_ChristopherD  
        Working...
        X