Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Wizard produces code error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.)
    Attached Files

    #2
    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 -

    Code:
     
    /// <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

    Comment


      #3
      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

      Comment


        #4
        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.

        Comment


          #5
          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.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          578 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X