Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Script Error

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

    Script Error

    I am using the script from this site and am getting errors, I am using it on Forex, does that matter it won't compile.
    Could someone look at it and see what is wrong, and why it won't work on my
    current version, which is posted here
    Thank you very much
    @AMP-F82F-D583-40B1-AE74-B79F-705D-7712
    Type: SimulationOnly
    Machine ID: BB0603944511CF4B187FE5C8B1708ABE
    .NET Version: 2.0.50727.1434
    Expiration: 01-Dec-2099
    Licensed features: AdvancedStrategyManagement
    VervoortMACrossOver as published in May 08 Stocks and Commodities Magazine

    Exported using NinjaTrader Version 6.5.XXXX.X
    Last edited by lojackd; 05-01-2009, 08:10 PM.

    #2
    What errors are you getting?

    Comment


      #3
      this is the error

      It says it has errors and these must be resolved before compiling
      It says " The following NinjaScript File Have programming errors and must be resolved before compiling
      Error
      the Namespace NinjaTrader strategy already contains a definition for "VervoortMACrossover"



      // This namespace holds all strategies and is required. Do not change it.
      namespace NinjaTrader.Strategy
      {
      /// <summary>
      /// Sylvain Vervoort's minimal lag moving average crossover strategy as outlined in May 2008's issue of Traders' Tips for Stocks & Commodities magazine.
      /// </summary>
      [Description("Sylvain Vervoort's minimal lag moving average crossover strategy as outlined in May 2008's issue of Traders' Tips for Stocks & Commodities magazine.")]
      public class VervoortMACrossOver : Strategy
      {
      #region Variables
      private int period = 55; // Default setting for Period
      #endregion

      /// <summary>
      /// This method is used to configure the strategy and is called once before any strategy method is called.
      /// </summary>
      protected override void Initialize()
      {

      Comment


        #4
        Originally posted by lojackd View Post
        It says it has errors and these must be resolved before compiling
        It says " The following NinjaScript File Have programming errors and must be resolved before compiling
        Error
        the Namespace NinjaTrader strategy already contains a definition for "VervoortMACrossover"



        // This namespace holds all strategies and is required. Do not change it.
        namespace NinjaTrader.Strategy
        {
        /// <summary>
        /// Sylvain Vervoort's minimal lag moving average crossover strategy as outlined in May 2008's issue of Traders' Tips for Stocks & Commodities magazine.
        /// </summary>
        [Description("Sylvain Vervoort's minimal lag moving average crossover strategy as outlined in May 2008's issue of Traders' Tips for Stocks & Commodities magazine.")]
        public class VervoortMACrossOver : Strategy
        {
        #region Variables
        private int period = 55; // Default setting for Period
        #endregion

        /// <summary>
        /// This method is used to configure the strategy and is called once before any strategy method is called.
        /// </summary>
        protected override void Initialize()
        {
        Have you renamed any files in Indicator folder?

        Comment


          #5
          Sounds like you have some naming conflict with something already installed in your NinjaTrader. Please check against your indicators and strategies.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            I have not intentionally done so, but I did down load several indicators, can I delete newly installed by date, how do I determine what was changed ?
            Very Confusing for this new bee.....

            Comment


              #7
              lojackd,

              There is no uninstall by date. If you are not sure what may have changed I suggest you just get a clean reinstall of NinjaTrader.

              1. Uninstall NT6.5
              2. Delete My Documents\NinjaTrader 6.5 (you will lose everything)
              3. Clear web browser cache
              4. Reinstall NT6.5
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Ok guys thanks for all the help
                No more suggestions required as I have uninstalled...
                Again ...Thanks....

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                110 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                59 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                37 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                41 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                78 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X