PDA

View Full Version : DrawText on Indicator Panel


thepcmd
09-01-2008, 04:45 PM
Let me preface this by indicating I have set the DrawOnPricePanel = false;

I have an issue with the DrawText Command - I can get the DrawArrowLine, and DrawDot to plot on the indicator panel. I cannot figure out why the DrawText will not plot on the indicator Panel. I can plot the text on the Panel 1.

To draw the arrow I use:
DrawArrowLine(" " + CurrentBar, false, 0, (PPO(12, 48, 9).Smoothed[0] + .10), 0, (PPO(12, 48, 9).Smoothed[0] + .02), Color.Red, DashStyle.Solid, 4);

To draw the text I am trying to use:
DrawText("tag2" + CurrentBar, "2", 0, (PPO(12, 48, 9).Smoothed[0] + .10), Color.Red);

The following correctly draws the text on panel 1:
DrawText("tag2" + CurrentBar, "2", 0, High[0] + 35 * TickSize, Color.Red);

Thank you for your help

NinjaTrader_Josh
09-02-2008, 12:27 AM
Hmm. You should be able to DrawText on non-price panels. Please try the attached example. See if it works for you.

thepcmd
09-02-2008, 06:09 PM
I imported your indicator and applied it to my charts on panel 2 of a chart. I removed all other indicators. The 'Test Text' was placed on panel 1 not on Panel 2

I am using NT 6.5.1000.5

How else can I test

NinjaTrader_Josh
09-02-2008, 06:15 PM
That is truly odd. Do you have all strategies off too? If you started with an empty chart and adding this indicator still did not yield text in panel 2 then you might have some success reinstalling NinjaTrader.

Uninstall NT
Uninstall .NET 2.0
Clear browser cache
Reinstall .NET 2.0
Reinstall NT

thepcmd
09-02-2008, 07:16 PM
I followed your instructions and removed all the software in the order you indicated. I also rebooted before any installation. I am running Windows XP Pro SP3.

It produced the same results as before. I have closed all windows except the Control Panel and then I opened up a chart without a template. I applied your indicator and the text appears on the price panel.

NinjaTrader_Josh
09-03-2008, 08:26 AM
What instrument and chart type are you testing it on? I am testing on 1min AAPL. See if equities works for you.

thepcmd
09-03-2008, 06:43 PM
I removed all charts except for the aapl you requested. I trade futures w/ zenfire so I used a simulated feed to test your script. I got the same results. the text appeared on the panel 1

NinjaTrader_Josh
09-03-2008, 10:24 PM
Sorry thepcmd. I am not sure what might have caused this. Last thing I can suggest is an absolutely clean install of NT6.5.

Uninstall NT6.5
Go to My Documents\ and delete the NinjaTrader 6.5 folder (PLEASE BE AWARE: YOU WILL LOSE EVERYTHING. ALL INDICATORS/STRATEGIES/DATA/WORKSPACE/ETC. BACK THEM UP BEFORE HAND.)
Reinstall NT6.5