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

    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chris.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fx.practic, 10-15-2013, 12:53 AM
      5 responses
      5,406 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by Shai Samuel, 07-02-2022, 02:46 PM
      4 responses
      98 views
      0 likes
      Last Post Bidder
      by Bidder
       
      Started by DJ888, Yesterday, 10:57 PM
      0 responses
      8 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      160 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      9 views
      0 likes
      Last Post Belfortbucks  
      Working...
      X