![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
After a quick glance, you likely want to rename the RSI property since this is an internal class name for the RSI indicator.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
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 |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
You will have to debug this one.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: May 2008
Posts: 221
Thanks: 12
Thanked 2 times in 2 posts
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |