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-16-2008, 06:49 AM   #1
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default indicator syntax help

I'm very new to Ninja and am having problems creating an indicator. I have used the indicator wizard along with some copying / pasting from other indicators to create bollinger bands around rsi.

In the "On bar update" section I am getting an error stating that the line is a property, but is being used as a method.

I attached a text file (RelativeRSI.txt) of the code. Anyone who can shed some light on the subject would be greatly appreciated.

Thanks,

Safetrading
Attached Files
File Type: txt RelativeRSI.txt (7.3 KB, 8 views)
safetrading is offline  
Reply With Quote
Old 05-16-2008, 07:01 AM   #2
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

After a quick glance, you likely want to rename the RSI property since this is an internal class name for the RSI indicator.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-16-2008, 07:38 AM   #3
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default

Thanks a bunch! As soon as you mentioned it the light went on! That did the trick for that. Just one other question, probably easier than the last one, but I don't see it yet.

I uploaded the revised code for the indicator. It now displays the upper & middle band, but the lower band displays at the same elevation as the middle band. I preceeded the standard deviation number with a minus sign, but that didn't do the trick. What did I miss?

By the way, thanks for taking the time to respond. You saved me hours of scratching my head.

Safetrading

Quote:
Originally Posted by NinjaTrader_Ray View Post
After a quick glance, you likely want to rename the RSI property since this is an internal class name for the RSI indicator.
Attached Files
File Type: txt RelativeRSI2.txt (7.3 KB, 7 views)
safetrading is offline  
Reply With Quote
Old 05-16-2008, 07:54 AM   #4
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

You will have to debug this one.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-16-2008, 08:00 AM   #5
safetrading
Senior Member
 
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
Default

No problem. Thanks for your earlier assistance and have a great day.

Quote:
Originally Posted by NinjaTrader_Ray View Post
You will have to debug this one.
safetrading 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
MultiTimeframe syntax nico_p General Programming 6 04-29-2008 08:59 AM
syntax Swing indicator nico_p General Programming 1 04-17-2008 07:16 AM
How to write correct syntax nico_p General Programming 2 04-14-2008 08:24 AM
Syntax of BarsArray with LowestBar() method Sidhartha General Programming 7 04-13-2008 09:55 AM
Compiler bug or hidden syntax error sbgtrading General Programming 3 11-22-2007 07:14 AM


All times are GMT -6. The time now is 05:14 PM.