View Full Version : draw on price panel
argito
06-07-2008, 09:42 AM
Hi,
I would like to add 2 indicators on my strategy chart
One need to plot on price panel and the other need to plot on indicator panel.
Please kindly advise how to do. thx !
NinjaTrader_Josh
06-07-2008, 10:26 AM
Please see this tip: http://www.ninjatrader-support.com/vb/showthread.php?t=3228
You want to use .Panel = 0 for the one you want on the price panel.
argito
06-07-2008, 10:30 PM
Hi,
Tried. but seems not working
My indicator : MySMA(10)
I add following to initialize section :
MySMA(10).DrawOnPricePanel=true;
Add(MySMA(10));
OR
MySMA(10).Panel=0;
Add(MySMA(10));
But the indicator still plot on a new indicator panel. Please kindly advise. thx !
NinjaTrader_Josh
06-08-2008, 12:20 AM
The second option should be what you type. It should work as you put it. In your indicator you are using plots correct?
argito
06-08-2008, 05:28 AM
Hi,
I tried again to code in my strategy but NO luck
if I change to syntax as follows
MySMA(10).Panel= x; //where x is integer other than zero
Add(MySMA(10));
It correctly plot. For example, assume x is 2, it correctly plot on 2nd indicator panel.
But it just cannot plot on price panel of my strategy chart !!!
very strange ?! any setting or configuration need to change ?!
NinjaTrader_Josh
06-08-2008, 10:58 AM
Nope. You will need to be more specific as to how your indicator and strategy are constructed. If you post them up then we can see where exactly it is messing up.
argito
06-09-2008, 03:35 AM
Hi,
I change the indicator to ccSMAmultiple
Now, I attached the indicator file (ie ccSMAmultiple.cs)
I put the following lines to my strategy
ccSMAmultiple(1).Panel=0;
Add(ccSMAmultiple(1));
please kindly advice. thx !
NinjaTrader_Dierk
06-09-2008, 06:41 AM
Please see here: http://www.ninjatrader-support.com/HelpGuideV6/Overlay.html
argito
06-09-2008, 10:09 AM
Hi,
thx a lot :)