Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using ISeries

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

    Using ISeries

    ## What I expect

    When adding `NinjaTrader.Custom.dll` to references and using `NinjaScript` like so
    Code:
    using NinjaTrader.NinjaScript;
    I expected to be able to use `ISeries` because when I mouse over `ISeries` in NinjaTrader it shows `NinjaTrader.NinjaScript.ISeries<double>`


    ## What actually happens

    Visual Study underlines ISeries and said it "could not be found". The code is as follows. With `ISeries<double>` underlined in read.
    Code:
    using NinjaTrader.NinjaScript;
    
    namespace ISeriesBuilder {
        public class ISeriesBuilder {
            private ISeries<double> myDoubleSeries;
        }
    }
    Any ideas? I know imports are probably pretty basic but I'm new to `.Net`.

    #2
    Welcome to the forums Zeero!

    Compiling NinjaScripts in the NinjaScript Editor or through Visual Studio will build NinjaTrader.Custom.dll. It would not be necessary to add a reference for this dll.

    When I test your snippet, I do not see an issue compiling a script in the NinjaScript Editor or Visual Studio that includes
    Code:
     
     using NinjaTrader.NinjaScript;
    and adds the snippet you have provided:
    Code:
     
     using NinjaTrader.NinjaScript;  namespace ISeriesBuilder {     public class ISeriesBuilder {         private ISeries<double> myDoubleSeries;     } }
    If you set up a clean environment, set up a test script and compile the snippet above, do you see any issues when compiling in the NinjaScript Editor? After taking this test, please use the Visual Studio button in the NinjaScript Editor to open Visual Studio, and then use Ctrl + Shift + B to compile the solution.

    Clean environment test:

    Creating a clean environment can be done by following the steps below:
    1. Close NinjaTrader 8, and rename the "NinjaTrader 8" folder in My Documents to something like: "NinjaTrader 8 OLD"
    2. Uninstall NinjaTrader from the Windows Control Panel and reinstall using the installer from http://ninjatrader.com/PlatformDirect
    3. Test building the script in the NinjaScript Editor and then from Visual Studio as directed above.
    If you ever need to switch back to your original platform, you may do so by closing NinjaTrader and swapping the platform folder names.

    For example, Close NinjaTrader and rename the new "NinjaTrader 8" folder to "NinjaTrader 8 NEW" and the "NinjaTrader 8 OLD" folder to "NinjaTrader 8." Then restart the platform. Simply put: NinjaTrader 8 will always load the "NinjaTrader 8" folder in My Documents.

    I look forward to being of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thank you so much NinjaTrader_Jim! This solved my issues.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by zacharydw00, Today, 05:14 PM
      0 responses
      6 views
      0 likes
      Last Post zacharydw00  
      Started by shahabjet1, Today, 04:47 PM
      0 responses
      12 views
      0 likes
      Last Post shahabjet1  
      Started by aligator, Today, 04:32 PM
      0 responses
      10 views
      0 likes
      Last Post aligator  
      Started by timko, Today, 04:02 PM
      0 responses
      9 views
      0 likes
      Last Post timko
      by timko
       
      Started by asmmbillah, Today, 03:37 PM
      2 responses
      18 views
      0 likes
      Last Post asmmbillah  
      Working...
      X