Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access an indicator text output in a script

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

    Access an indicator text output in a script

    I'm using an indicator that I didn't write. I have written a Ninja Strategy script that accesses and uses the levels that are plotted on the chart by the indicator. I figured out the variable names to use in the script by looking at the indicator properties box. The indicator also plots a number above each bar that I would like to use as well in my script. I can't figure out how to get the value of that number and use it in my script. When I right click on the number and click properties, it opens the Text Properties box and shows the number. When I click the Data Tab, I get a Tag, Time and Y position. Surely I can reference the Tag somehow in my script but how?
    Thanks,
    Len

    #2
    Hi Len,

    You can access indicator plots from your strategy without requiring additional code within the indicator.

    For any other value, you will need to be able to open the source code for the indicator and make small modifications according to this sample:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hi Ryan,

      I have a query about retrieving the plotted values from a market profile chart

      Is there any way I can access VAL , POC of any custom Market profile indicator once they are added to the chart without having access to the source code of indicator?
      In other words , if I want to get all the Market Profile indicator values or order profile indicator values plotted in a given chart irrespective of whether indicator source code is locked?
      I want to write all the above values into a text file once they are captured from the chart.

      Please let me know a solution.

      Comment


        #4
        Hello mrbestk,

        Thanks for your note.

        Order Flow Volume Profile is not exposed for NinjaScript access.

        You can find a description of how you may calculate the Value Area and POC yourself in the following link: https://ninjatrader.com/support/foru...79#post1112679

        Once you calculate these values, you could use a StreamWriter to write those values to a file.
        SampleStreamWriter: https://ninjatrader.com/support/help...o_write_to.htm

        Let us know if we may assist further.
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by popecapllc, 08-09-2023, 07:42 PM
        11 responses
        1,873 views
        0 likes
        Last Post tradgrad  
        Started by morrnel, 05-12-2024, 06:07 PM
        7 responses
        106 views
        1 like
        Last Post tradgrad  
        Started by mmike, Yesterday, 10:33 PM
        0 responses
        4 views
        0 likes
        Last Post mmike
        by mmike
         
        Started by Pole123, Yesterday, 06:02 PM
        0 responses
        9 views
        0 likes
        Last Post Pole123
        by Pole123
         
        Started by samish18, Yesterday, 05:27 PM
        0 responses
        5 views
        0 likes
        Last Post samish18  
        Working...
        X