View Full Version : Indicator Wizard produces code error
Using the NinjaScript Indicator wizard only, as soon as I click "finish," I get code that includes an error. Although I could correct the error, this concerns me that there is something wrong with the wizard or my NinjaScript editor.
Suggestions?
(The indicator I am creating is almost identical to that in Tutorial #5 in Creating Indicators in the manual.)
NinjaTrader_Bertrand
10-05-2009, 05:34 AM
LG, thanks for the post - tried reproducing this here, but it worked well for me - did you do all changes to the 'Description' field of this indicator in the indicator wizard?
Code snippet below should work well -
/// <summary>
///
/// EMA line colored depending on value of WCCI line. Orange for neutral. Green for long if WCCI = or more then +50. Red = short if WCCI = or more than + 50
/// </summary>
[Description("EMA line colored depending on value of WCCI line. Orange for neutral. Green for long if WCCI = or more then +50. Red = short if WCCI = or more than + 50")]
public class LDJSYSTEMINDICATOR4 : Indicator
NinjaTrader_Bertrand
10-05-2009, 08:43 AM
LG, thanks for reporting this one - reproducing was possible with adding a newline to the description text, this will be fixed with NinjaTrader 7 - thanks
So are you saying that this is an error in NinjaTrader, or that it is my error?
Is there any way I can fix this so it will work for me right now?
And yes, my results were solely a result of work in the
Wizard.
NinjaTrader_Bertrand
10-05-2009, 09:59 AM
Correct, this was identified as a bug in NinjaTrader - you adding a new line break for example by pressing Ctrl and Return threw off the compiler unfortunately, but this was fixed.
If you still work in the wizard and did not unlock the code, please go back to the General screen and reenter your description without any line breaks for now.
http://www.ninjatrader-support.com/HelpGuideV6/WizardScreens.html