PDA

View Full Version : sending strings from indicator...


jonmoron
02-13-2009, 12:06 AM
Hi everyone.

I would like to return a string from an indicator. For example, I would like to return a string to the Market Analyzer and have the string that is returned displayed on the Market Analyzer once that indicator is selected. How possible is this? A string could be "89765 / 89789" (for my current situation).

thanks!
jon

NinjaTrader_Bertrand
02-13-2009, 04:21 AM
Hi jon, welcome to the NinjaTrader support forums - please check out this reference sample how to expose indicator values that are not plots - http://www.ninjatrader-support2.com/vb/showthread.php?t=4991

jonmoron
02-16-2009, 06:46 PM
NT_Bertrand,

Thanks for replying. I've looked through the SampleBoolSeries example you linked to. I created an object of type StringSeries, and set the string to the desired string I want to make available for this indicator. However, when I add this indicator (and even when I add the SampleBoolSeries indicator) in the Market Analyzer, the column displays the last price. Why is this? Can I display text in any of the columns of the Market Analyzer? And how is the last price being displayed at all for this indicator -- is it the default value to display somehow?

thanks

NinjaTrader_Josh
02-17-2009, 07:52 AM
jonmoron,

The Market Analyzer only displays plot values of the indicator. The StringSeries would just be a series and not a plot and so you cannot display it.

By default you will have close price displayed as you are experiencing.

jonmoron
02-17-2009, 08:00 AM
NT_Josh,

Thanks for the response. I see the instrument column has text (for example GC 04-09). Is there a way to create a custom Market Analyzer column to handle text? Or is this something we can look forward to in the future? TS has something similar. We are using the Market Analyzer for scanning markets and would love to display text from some custom-built indicators.

thanks

NinjaTrader_Josh
02-17-2009, 08:04 AM
jonmoron,

The instrument column is different along with a few other string columns. Thank you for the suggestion. I have forwarded it to development.