![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
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.
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2007
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#6 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Josh
so just curious but are you guys going to maybe make it available in your next release |
|
|
|
|
|
#8 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Arsch,
NT7 will provide many charting improvements and we hope you will be pleased when it is released.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Josh
Any hint as to when NT 7 will be released? |
|
|
|
|
|
#10 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
NinjaTrader 7 is scheduled for the second quarter of 2009.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |