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

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 Gerik, Today, 09:40 AM
        2 responses
        7 views
        0 likes
        Last Post Gerik
        by Gerik
         
        Started by RookieTrader, Today, 09:37 AM
        2 responses
        11 views
        0 likes
        Last Post RookieTrader  
        Started by alifarahani, Today, 09:40 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by KennyK, 05-29-2017, 02:02 AM
        3 responses
        1,285 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by AttiM, 02-14-2024, 05:20 PM
        11 responses
        186 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X