Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Please, help with strategy

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

    Please, help with strategy

    I Tryed to make a new strategy using the "SampleMACrorssOver" modified for EMA. The was a problem I can not identify. So I decided delete the strategy, but appeared a message "EMACrossingEMA.cs' can not be deleted. This file is likely referenced by other NinjaScript file and these dependencies need to be removed first".
    Can someone help me, please?
    The EMACrossingEMA code (part, to use 10.000#) is below:

    #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

    // This namespace holds all strategies and is required. Do not change it.
    namespace NinjaTrader.Strategy
    {
    /// <summary>
    /// EMA crossing EMA
    /// </summary>
    [Description("EMA crossing EMA")]
    public class EMACrossingEMA : Strategy
    {
    #region Variables
    // Wizard generated variables
    private int eMAPeriod = 3; // Default setting for EMAPeriod
    private int eMA2Period = 13; // Default setting for EMA2Period
    // User defined variables (add any user defined variables below)
    #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()
    {
    Add(EMA(Close, 3));
    Add(EMA(Close, 13));
    Add(EMA(Close, 3));
    Add(EMA(Close, 13));
    Last edited by barrosco; 02-19-2009, 02:35 PM. Reason: not necessary to all strategy

    #2
    Hi, you wil need to check which of your other files is calling the EMACrossingEMA cs and delete the 'mother' file first. Then you can go ahead and delete the EMACrossingEMA itself...

    Comment


      #3
      No solution

      Dear Bertrand,
      I tryed to make this strategy 3 times and I tryed to delet all, but with no results.
      Thans for your help.

      Comment


        #4
        barrosco,

        If you have been naming them similarly throughout your several attempts you will need to remove prior instances first. Any references to EMAcrossEMA need to be removed first.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi

          Dear Bertrand,
          I got no results. Do you beleive if a reinstall the Ninja 6.5 can fix the problem?

          Comment


            #6
            Have you followed Josh's tip below?

            If this is to cumbersome, you can for sure try a clean install of NinjaTrader to clean this up. Uninstall it first and then go to MyDocuments and delete the NinjaTrader 6.5 folder.

            Then reinstall freshly from this link - http://www.ninjatrader.com/webnew/do...rent_users.htm

            Comment


              #7
              Hi

              Hi Bertrand,
              Could you tell me click by click (step/step) the way to delete these strategys. Maybe I am doing the wrong way.

              Comment


                #8
                Hi barrosco, please see this tip and follow the steps to resolve this error - http://www.ninjatrader-support2.com/...ead.php?t=4678

                Comment


                  #9
                  Hi

                  Hi Bertrand,
                  I did all things, but now with the new Ninja Trader 6.5, I tryed to open (I choose the correct instrumente 6E 03-09) a chart, but it still "white". Could help me, please?
                  I choose 3 instruments, choose 1 minute and after 15 ticks, so the bars started to appear. Is this the best way to do this?
                  Last edited by barrosco; 02-19-2009, 02:37 PM. Reason: add information

                  Comment


                    #10
                    barrosco,

                    Let us take a step back. Are you able to get chart data at all? Just open a regular chart. If not, are you connected to your data provider. Which provider are you using?
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Hi Josh

                      Hi Josh,
                      I opened the chart and the only way I gol data was choose 15 ticks.
                      My data provider is Interactive Brokers (IB).
                      Thanks for your help.
                      PS: I deleted all my old "Cache" because a Ninja instrouction told it
                      Last edited by barrosco; 02-19-2009, 03:22 PM. Reason: Add more information

                      Comment


                        #12
                        With the chart with data, now run your strategy. Remember IB does not provide historical tick data.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Want to have full charts

                          Hi Josh,
                          I forgot about strategies. My problem now is to get 2min., 10min., 60min. and daily charts. I only could get ticks charts up to now.
                          Thanks.
                          Last edited by barrosco; 02-19-2009, 03:28 PM. Reason: correction

                          Comment


                            #14
                            Originally posted by barrosco View Post
                            Hi Josh,
                            I forgot about strategies. My problem now is to get 2min., 10min., 60min. and daily charts. I only could get ticks charts up to now.
                            Thanks.
                            Hi Barrosco,

                            1.) What happens when you change to a minute time frame?
                            -Are there any errors in your log tab?

                            2.) Try other instruments and let me know if it works for any instrument.

                            3.) Try opening a NEW chart, does that work?
                            Ray S.NinjaTrader Customer Service

                            Comment


                              #15
                              Hi Josh

                              HI Josh, I restarted the NInja and now it is working ok. Thank you very much for your attention and pacience. Truly.


                              Hi Barrosco,

                              1.) What happens when you change to a minute time frame?
                              -Are there any errors in your log tab?

                              2.) Try other instruments and let me know if it works for any instrument.

                              3.) Try opening a NEW chart, does that work?


                              Hi Barrosco,

                              1.) What happens when you change to a minute time frame?
                              When I try 1 min. time frame the screen became "white"
                              -Are there any errors in your log tab?
                              There is no information about errors.

                              2.) Try other instruments and let me know if it works for any instrument.
                              I tryed more them 6 instruments, including GE (daily), but the screen still "white"

                              3.) Try opening a NEW chart, does that work?
                              Do not work

                              It appears like beeing loading data, but after the screen still "white"

                              HI Josh, I restarted the NInja and now it is working ok. Thank very much for your attention and pacience. Truly.

                              What do you think if I install the Ninja again over this one?
                              Last edited by barrosco; 02-20-2009, 09:25 AM. Reason: add information

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by NullPointStrategies, Yesterday, 05:17 AM
                              0 responses
                              56 views
                              0 likes
                              Last Post NullPointStrategies  
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              133 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              73 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              45 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              49 views
                              0 likes
                              Last Post TheRealMorford  
                              Working...
                              X