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 04-07-2009, 06:52 PM   #1
blarouche
Senior Member
 
Join Date: Apr 2009
Posts: 198
Thanks: 0
Thanked 0 times in 0 posts
Default Newbie question

I need to underdstand something

I have created an Indicator with Ninja editor and I also created a UserDefinedMethod (GetRefVolume). My method created on the UserDefinedMethod returns Volume[0]. Here is how I plot my indicator :

Plot0.Set(GetRefVolume());

I don't get any results.
The class in the UserDefinedMethod is partialclass Indicator
Do I have to create an object so that I can access the GetRefVolume method ? If so what would be the code ?


Thanks
blarouche is offline  
Reply With Quote
Old 04-08-2009, 04:43 AM   #2
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

Hi blarouche, please check this sample and make sure your method is 'public' in the UserDefinedMethods - http://www.ninjatrader-support.com/H...6/Sample1.html
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
newbie question j4068 Miscellaneous Support 1 03-08-2009 07:04 PM
newbie question machiavelly Charting 5 01-02-2009 06:10 AM
probably a newbie question cornelius Strategy Development 4 11-14-2008 11:02 AM
Silly newbie question snaphook General Programming 8 04-29-2008 01:42 AM
Newbie Question mwbokc Miscellaneous Support 1 02-15-2005 02:29 AM


All times are GMT -6. The time now is 12:19 PM.