• 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 ballboy11, Today, 05:22 PM
        0 responses
        3 views
        0 likes
        Last Post ballboy11  
        Started by ballboy11, Today, 04:33 PM
        2 responses
        4 views
        0 likes
        Last Post ballboy11  
        Started by dedouglas, Today, 03:16 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by TradeMyth, Today, 02:45 PM
        3 responses
        26 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Ticnician, Today, 01:46 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jim  
        Working...
        X