I would like to have my indicator be able to post text in a cell on the marketanalyzer column. I figure I can use a plot text, where I can dynamically populate the content of the text field based on the logic of my indicator.
Question 1: Is the above a correct way of doing it?
Also, I would like the indicator to know if its been placed on a chart or on a market analyzer window. That is because, I would have to dynamically "hide or show" the plot text depending on where the indicator is placed, that is , show the plot text if the indicator is placed on a market analyzer window, and hide it if its placed on a chart.
Question 2: how do i determine in ninjascript if the indicator is placed on a chart or marketanalyer such that i can put logic in the code to dynamically hide or not hide the contents of the plot text field.
Question 3: Is what I am writing above the best way to achieve my goal? That is , to have a ninjascript logic dynamically create a text field that will present information that can be shown in the market analyzer.
Thank you in advance for your help.
Comment