NinjaTrader Support Forum  

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 05-05-2008, 05:07 AM   #1
kosmipt
Member
 
Join Date: Apr 2008
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
Default Moving average over a Volume

Hi,
is there a way to plot moving average over a Volume (VOL)?
kosmipt is offline  
Reply With Quote
Old 05-05-2008, 07:09 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

See the VolMA indicator, this does exactly what you are looking for.
NinjaTrader_Ray is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Ray for this post:
Old 05-05-2008, 07:33 AM   #3
kosmipt
Member
 
Join Date: Apr 2008
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks a lot!
kosmipt is offline  
Reply With Quote
Old 10-20-2010, 12:06 PM   #4
fosch
Member
 
Join Date: Feb 2010
Posts: 74
Thanks: 1
Thanked 2 times in 2 posts
Default VolMA

Quote:
Originally Posted by NinjaTrader_Ray View Post
See the VolMA indicator, this does exactly what you are looking for.
Is there a way to access this in NinjaScript coding?

In my customer indicator, I'm trying to access the average volume of an instrument over the past 10 bars.

Thanks.

Joe
fosch is offline  
Reply With Quote
Old 10-20-2010, 12:20 PM   #5
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thank you for your forum post.

Yes this is possible. You would just use VOLMA(10)[0];

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

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 10-20-2010, 12:24 PM   #6
fosch
Member
 
Join Date: Feb 2010
Posts: 74
Thanks: 1
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by NinjaTrader_Brett View Post
Hello,

Thank you for your forum post.

Yes this is possible. You would just use VOLMA(10)[0];

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

Let me know if I can be of further assistance.
Thanks Brett.

Would you believe I had VolMA(10)[0] and I could not figure out why the error. :-(
Case senstiive. Thx.
fosch is offline  
Reply With Quote
Old 10-20-2010, 12:36 PM   #7
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Ah, yes NinjaScript and c# are case sensitive. Good catch!

Let me know if I can be of further assistance.
NinjaTrader_Brett 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
Moving Average calculation Shiva Swinger General Programming 6 11-26-2008 10:36 AM
Centered moving average Don44 Indicator Development 8 10-13-2008 03:01 PM
moving average of a moving average zq655 Indicator Development 2 04-25-2008 12:47 AM
Jurik Moving Average dgregor5 Strategy Development 2 12-29-2007 04:55 PM
Moving Average Envelope fetus Charting 1 09-24-2007 03:58 PM


All times are GMT -6. The time now is 12:49 AM.