View Full Version : indicator syntax help
safetrading
05-16-2008, 06:49 AM
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
NinjaTrader_Ray
05-16-2008, 07:01 AM
After a quick glance, you likely want to rename the RSI property since this is an internal class name for the RSI indicator.
safetrading
05-16-2008, 07:38 AM
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
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
05-16-2008, 07:54 AM
You will have to debug this one.
safetrading
05-16-2008, 08:00 AM
No problem. Thanks for your earlier assistance and have a great day.:)
You will have to debug this one.