NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 01-18-2009, 09:17 PM   #1
bwarner
Junior Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default specifying panel for indicators

Hi. I have two questions.
1) is it possible to have ninjascript strategies run properly without having the indicators used in the script shown on the chart? from my own experience the answer is no, but i am wondering if there some way to make that work.

2) I was curious as to whether or not there is a code snippet or some way to allow specific indicators used in a ninjascript strategy to placed in certain panels. i realized that they basically show up on the chart according to their order in the script, but i wanted to know if you could have certain incidators show up in a particular panel. I was asking in the event that there is no way to have the strategy run properly without indicators on the chart.
bwarner is offline  
Reply With Quote
Old 01-19-2009, 12:02 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

1) is it possible to have ninjascript strategies run properly without having the indicators used in the script shown on the chart? from my own experience the answer is no, but i am wondering if there some way to make that work.
>>Yes, just don't Add() them in the initialization block.

2) I was curious as to whether or not there is a code snippet or some way to allow specific indicators used in a ninjascript strategy to placed in certain panels. i realized that they basically show up on the chart according to their order in the script, but i wanted to know if you could have certain incidators show up in a particular panel. I was asking in the event that there is no way to have the strategy run properly without indicators on the chart.
>>It is only the order you Add() them as you mention.
NinjaTrader_Ben is offline  
Reply With Quote
Old 01-19-2009, 06:52 AM   #3
bwarner
Junior Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

that is what i thought. However, when i don't add them in that block the strategy does not work as it should. it does not work when do not include all the indicators in the initialization block, but it does work only when i include all of them. what am i doing wrong?
bwarner is offline  
Reply With Quote
Old 01-19-2009, 07:32 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

bwarner,

What do you mean by "doesn't work"? What is the behavior you are experiencing? You do not need to have Add() of the indicator to use the indicator. Create yourself a blank strategy and just add Print(SMA(10)[0].ToString()) in the OnBarUpdate() and you will see you can access the SMA values.

As for #2, you want to check this link out: http://www.ninjatrader-support2.com/...ead.php?t=3228
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-13-2009, 11:05 AM   #5
Arsch
Junior Member
 
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

hey
i think im in the right thread if not send me somewhere else
i'm currently trying to get my DS to sit in the same panel in as my candle stick chart but every time i do it the candles turn into tiny little dots, if you guys understood any of that any advice would be great.
Cheers
Arsch is offline  
Reply With Quote
Old 02-13-2009, 11:08 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Arsch,

Currently you cannot overlay indicators if they have a different scale than the price axis scale. The reason the price becomes a squished line when you add the indicator to the same panel is because you are still using the price axis scale. Values of 0-1 would be much lower than a stock priced up at $90-100 and as such to display both in one panel means they will both be very squished in order to show a 0-100 range.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-13-2009, 12:25 PM   #7
Arsch
Junior Member
 
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Josh
so just curious but are you guys going to maybe make it available in your next release
Arsch is offline  
Reply With Quote
Old 02-13-2009, 12:37 PM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Arsch,

NT7 will provide many charting improvements and we hope you will be pleased when it is released.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-13-2009, 08:32 PM   #9
Arsch
Junior Member
 
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Josh
Any hint as to when NT 7 will be released?
Arsch is offline  
Reply With Quote
Old 02-14-2009, 12:47 AM   #10
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

NinjaTrader 7 is scheduled for the second quarter of 2009.
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 indicators in one panel. how is it done? panamaorange Indicator Development 1 12-06-2008 06:46 PM
Displaying two indicators in the same panel swandro Strategy Development 3 06-07-2008 10:34 AM
Overlaying indicators in same panel with different scales ThePatientOne Charting 11 02-18-2008 08:26 AM
Deleting an indicator from panel moves other indicators dfogg Historical NinjaTrader 6.5 Beta Threads 3 01-31-2008 06:48 AM
Overlaying 2 indicators in same panel IanBeveridge Charting 4 12-10-2007 11:03 AM


All times are GMT -6. The time now is 07:51 AM.