PDA

View Full Version : Good way to have both non and overlay plot


Edward Kunafi
12-14-2009, 07:36 AM
Hello Support team,

I am developing my own indicator, which currently has six plots on its own panel and draw regions and arrows on the price panel. Now I need to take it to next level in which in would churn out plots in relation to price level, so it can be used building strategies. But setting overlay to true means the whole plots appear at the price panel. I would need at least two plots on the price panel.
What is the best way to do this?

Thanks.

Best Regards.
Edward Kunafi

NinjaTrader_Josh
12-14-2009, 08:01 AM
Edward,

It is an all or nothing setting. You will likely need to break up your indicator into two to add one as overlay and one in its own panel.

mike82
12-15-2009, 09:18 PM
you can then use both indicators in a dummy strategy. So that by launching the strategy you will plot both indicators (you have to tell the strategy to plot them of course)

aviat72
12-23-2009, 10:04 PM
If your calculations are computationally expensive then duplicating them in two different indicators *could* become an issue if the indicators are tick based on a fast moving instrument like CL.

One workaround is to create a base indicator which does most of the calculations and then use that indicator and the exported values in two new plotting indicators which do the plotting. NT caches indicators with the same signature (instrument and input parameters) so there will be only one instance of the calculation indicator active.

You will have to make sure that the Update() function is called on the base indicator before you use a value in the two plotting indicators.

Edward Kunafi
01-05-2010, 10:40 AM
Thank you all for the recommendation.

Regards.

Edward K

PS: Happy New Year, Cheers!