Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help Needed Please

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

    Help Needed Please


    Hello,

    What does '(' expected, mean when shown in as compile errors when relating to each of the following lines of code and how do i fix it?


    region Using declarations
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Xml.Serialization;
    using NinjaTrader.Cbi;
    using NinjaTrader.Gui;
    using NinjaTrader.Gui.Chart;
    using NinjaTrader.Gui.SuperDom;
    using NinjaTrader.Gui.Tools;
    using NinjaTrader.Data;
    using NinjaTrader.NinjaScript;
    using NinjaTrader.Core.FloatingPoint;


    ​and what does class member declaration expected mean when related to:

    the first line of this code:
    //This namespace holds Indicators in this folder and is required. Do not change it.
    namespace NinjaTrader.NinjaScript.Indicators
    then this line:
    }
    then the middle line of these three lines of code this:
    ​#region NinjaScript generated code. Neither change nor remove.

    namespace NinjaTrader.NinjaScript.Indicators

    Thanks for your answers in advance. ​

    #2
    Hello, thanks for writing in.

    There are compile errors in your script due to missing parentheses. There is a missing parenthesis in your script somewhere. You can double-click the compile error to see the exact line that is causing the issue. These are fundamental C# syntax requirements that you will find in all C# scripts/programs. If you have not practiced the fundamental syntax of C# I would recommend writing a few beginners scripts using visual studio tutorials so you know where and how to place the parentheses and brackets in a C# program.

    This publicly available site is a great resource for learning the fundamentals:
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    Kind regards,

    -ChrisL

    Comment


      #3
      Thank you Chris.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      574 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X