NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-27-2007, 01:25 PM   #1
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 82
Thanks: 1
Thanked 1 time in 1 post
Post imported post

Hi

I have a simple indicator in which the current daily volume is divided by the n period moving average of the daily volume. It is imperative that this indicator be updated during the intra-day trading periods. This indicator by default has the 'Calculate On Bar Close' flag set to false. However when it is inserted into a Market Analyzer column, the values for this indicator are incorrect. I suspect the daily volume that is used in OnBarUpdate to calculate the indicator is not updated continuosly through out the trading day.

I notice a similar behavior when the indicator is plotted on a daily chart before the market closing hours.

If my suspicion is correct, how can I remedy this situation?

Thanks in advance.

svrz is offline  
Reply With Quote
Old 04-27-2007, 05:18 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

- which provider is this?
- what instrument?

Thanks
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-27-2007, 06:57 PM   #3
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 82
Thanks: 1
Thanked 1 time in 1 post
Post imported post

Hi Dierk

This is for E-Signal and it is for equities such as VDSI, ELOS, FTEk, etc.

On a related note, I take it that a buy or sell scan can't be created from the Market Analyzer list. Correct?

Thanks again for the reply.
svrz is offline  
Reply With Quote
Old 04-27-2007, 10:13 PM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

- I submitted a support request to eSignal and will keep you posted.
- Market analyzer columns are not reflective of bid/ask. You may consider using an indicator in a market analyzer colum which is reflective of bid/ask like "BuySellVolume".
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-28-2007, 04:23 PM   #5
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 82
Thanks: 1
Thanked 1 time in 1 post
Post imported post

Thanks again, Dierk.

In regards to MA, I was wondering if perhaps in the future releases of NT one could use the MA grid as a scan tool for autmoated trading.

Regards
svrz is offline  
Reply With Quote
Old 04-28-2007, 05:25 PM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

Please elaborate on your request. Why can't you use it now for scanning?

Thanks
NinjaTrader_Dierk is offline  
Reply With Quote
Old 04-29-2007, 04:27 AM   #7
svrz
Member
 
Join Date: Apr 2007
Location: , ,
Posts: 82
Thanks: 1
Thanked 1 time in 1 post
Post imported post

Hi Dierk

That would be great but I'm not sure how to do it.

For example, I have the following MA columns:

Indicator (Volume/MA of Volume) on daily
MA of price on 15 minute
Stoch on 15 minute

To the best of my knowledge, these columns are only for display. Their respective values can't be referenced in any script for a system or strategy.

Furthermore, again to the best of knowledge, such mixing of different timeframe indicators is not possible in a strategy. If I'm in error, I apologize.

Regards
svrz is offline  
Reply With Quote
Old 04-29-2007, 06:00 AM   #8
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

Correct, these columns are for display. You can create multi timeframe and instrument strategies.

Please see this section of the Help Guide.

http://www.ninjatrader-support.com/H...struments.html


Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 04-30-2007, 07:27 AM   #9
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Post imported post

Next NT6 update will support updating daily volume for futures. It already works fine for stocks. However, it won't work for currencies, since eSignal does not provide this data.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-05-2007, 05:15 AM   #10
DarrylT
Junior Member
 
Join Date: Jan 2007
Location: Boston
Posts: 29
Thanks: 0
Thanked 0 times in 0 posts
Default Indicator using both daily and intra-day data

I'd like to create an indicator script that shows an EMA of the primary bars (hourly), and also shows an EMA of daily bars from the same symbol (ER2). The EMA value from the daily bars will be the same throughout the day, but needs to update for each new day.

I've tried applying the discussion on multi-time frame strategies, but appearently some of things needed to do this (like BarsInProgress) are not supported for indicators. Is there an example indicator available that shows how to have an indicator plot both intra-day and daily data?

Thanks,
Darryl
DarrylT is offline  
Reply With Quote
Old 07-05-2007, 05:48 AM   #11
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> Is there an example indicator available that shows how to have an indicator plot both intra-day and daily data?
No, since indicators only run on one data series.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-05-2007, 08:02 AM   #12
DarrylT
Junior Member
 
Join Date: Jan 2007
Location: Boston
Posts: 29
Thanks: 0
Thanked 0 times in 0 posts
Default

Right. So, would it be possible for you to post an example of using a strategy to plot both 60 minute (primary) and daily (secondary) moving averages on the same chart? I've run into a few cases where intra-day trading is based on daily bar indicators, and plotting the daily bar indicators for the intra-day strategy would be very helpful.

Thanks,
Darryl
DarrylT is offline  
Reply With Quote
Old 07-05-2007, 08:07 AM   #13
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Quote:
Originally Posted by DarrylT View Post
Right. So, would it be possible for you to post an example of using a strategy to plot both 60 minute (primary) and daily (secondary) moving averages on the same chart? I've run into a few cases where intra-day trading is based on daily bar indicators, and plotting the daily bar indicators for the intra-day strategy would be very helpful.

Thanks,
Darryl
It is not possible to plot MA's of different series on a chart.
NinjaTrader_Ray is offline  
Reply With Quote
Old 02-15-2008, 12:02 PM   #14
meyer99
Member
 
Join Date: Dec 2004
Location: , ,
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
Default

With version 6.5 out, is it still not possible to plot higher time frame indicators on lower time frame charts?
If they cannot be plotted, can the values be shown (i.e., "X=30") somewhere in the small time frame chart?
meyer99 is offline  
Reply With Quote
Old 02-15-2008, 12:26 PM   #15
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is not possible. This is planned for NT7 later this year.
NinjaTrader_Ray 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


All times are GMT -6. The time now is 02:38 AM.