Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How are indicators references

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

    How are indicators references

    I am trying to understand how indicators like SMA or EMA are referenced. Do they exist in a certain namespace or DLL or is the ability to access these indicators a result of "ninja editor" wizardry? I am building some projects in Visual Studio and am unable to access the indicator/series like SMA or EMA.

    Also, is there a command like the "go to reference" in Visual Studio for Ninja script editor? I.e so I can right click on an indicator and go to the declarations.

    #2
    Check out the #region section for declarations

    #region Using declarations
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Xml.Serialization;
    using NinjaTrader.Cbi;
    using NinjaTrader.Data;
    using NinjaTrader.Indicator;
    using NinjaTrader.Gui.Chart;
    using NinjaTrader.Strategy;
    #endregion

    Comment


      #3
      Yes but the indicators SMA/EMA etc aren't to be found there. This is some sort of magic.. trickery they are using, I believe.

      They are somehow pulling in all the indicators into the Indicator namespace but they aren't generally accessible...

      I am trying to access these from Visual Studio. Importing those namespaces does not import the indicators. There may be a DLL that I can import. I'm not sure of the soundness of this though.

      I am guessing this DLL gets rebuilt custom for each users machine during the indicator build process.

      Originally posted by sledge View Post
      Check out the #region section for declarations

      #region Using declarations
      using System;
      using System.ComponentModel;
      using System.Diagnostics;
      using System.Drawing;
      using System.Drawing.Drawing2D;
      using System.Xml.Serialization;
      using NinjaTrader.Cbi;
      using NinjaTrader.Data;
      using NinjaTrader.Indicator;
      using NinjaTrader.Gui.Chart;
      using NinjaTrader.Strategy;
      #endregion
      Last edited by light65536; 07-22-2012, 06:17 PM.

      Comment


        #4
        You might search on debugging in Visual Studio...

        This thread, they are building dll's in VS to use in NT.. I don't think they are calling any functions in NT.. but you could check it out




        Originally posted by light65536 View Post
        Yes but the indicators SMA/EMA etc aren't to be found there. This is some sort of magic.. trickery they are using, I believe.

        They are somehow pulling in all the indicators into the Indicator namespace but they aren't generally accessible...

        I am trying to access these from Visual Studio. Importing those namespaces does not import the indicators. There may be a DLL that I can import. I'm not sure of the soundness of this though.

        I am guessing this DLL gets rebuilt custom for each users machine during the indicator build process.

        Comment


          #5
          I found the post




          looks like you can in debug mode,

          Originally posted by light65536 View Post
          Yes but the indicators SMA/EMA etc aren't to be found there. This is some sort of magic.. trickery they are using, I believe.

          They are somehow pulling in all the indicators into the Indicator namespace but they aren't generally accessible...

          I am trying to access these from Visual Studio. Importing those namespaces does not import the indicators. There may be a DLL that I can import. I'm not sure of the soundness of this though.

          I am guessing this DLL gets rebuilt custom for each users machine during the indicator build process.

          Comment


            #6
            Originally posted by light65536 View Post
            Yes but the indicators SMA/EMA etc aren't to be found there. This is some sort of magic.. trickery they are using, I believe.

            They are somehow pulling in all the indicators into the Indicator namespace but they aren't generally accessible...

            I am trying to access these from Visual Studio. Importing those namespaces does not import the indicators. There may be a DLL that I can import. I'm not sure of the soundness of this though.

            I am guessing this DLL gets rebuilt custom for each users machine during the indicator build process.
            You need to add the correct references to the correct dlls.

            ref: http://www.ninjatrader.com/support/f...ad.php?t=18313
            Last edited by koganam; 07-23-2012, 05:57 AM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            158 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Today, 09:29 PM
            0 responses
            6 views
            0 likes
            Last Post Belfortbucks  
            Started by zstheorist, Today, 07:52 PM
            0 responses
            7 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            151 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            6 views
            0 likes
            Last Post mattbsea  
            Working...
            X