Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Time Period wrong

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

    Strategy Time Period wrong

    When I load a strategy through a chart, lets say a 150tick chart for example. My strategy is not referencing the chart it is loaded on (150tick), it is instead referencing a 60 min chart. Is there something I am doing wrong? I just want to be able to load a strategy into the chart, and have it reference that chart period, not a 60min. Is the 60 min period maybe programmed in the script? Any help would be great!

    Respectfully,

    #2
    Hello Corbett,

    Thank you for your post.

    It is likely that the script has a 60 Minute series added. Is this your own custom strategy or a third parties? Can you attach the strategy to your response?
    You can find the strategy under (My) Documents\NinjaTrader 7\bin\Custom\Strategy on your PC.

    Comment


      #3
      Yes, It is a strategy that I am building. I would rather not post it though. Is there anywhere I can look to see if that is what is causing it?

      Comment


        #4
        Hello Corbett,

        Thank you for your response.

        Go to Tools > Edit NinjaScript > Strategy > select your strategy > OK > look in the Initialize() method for calls to Add() for other period types.
        Information on multiple series scripts can be found at the following link: http://www.ninjatrader.com/support/h...nstruments.htm

        Comment


          #5
          OK, i will take a look at that. but i was just thumbing through my strategies. and they all are referencing 60min time frame. I didn't have this problem yesterday. so I don't think it is any one single strategy that is causing this problem. Any thoughts?

          Comment


            #6
            #region Initialize
            protected override void Initialize()
            {
            //TraceOrders = true;
            CalculateOnBarClose = false;
            logbufer = new List<string>();
            SetProfitTarget(CalculationMode.Ticks, take);
            SetStopLoss(CalculationMode.Ticks, stop);
            timerFlatten = new Timer();
            timerFlatten.Elapsed += new ElapsedEventHandler(OnTimerElapsedFl);
            timerFlatten.Interval = timerIntervalFl;
            }
            #endregion

            Comment


              #7
              Hello Corbett,

              Thank you for your response.

              Please send me your log and trace files for today so that I may look into what occurred.

              You can do this by going to the Control Center-> Help-> Mail to Platform Support.

              Please reference this thread in the body of the e-mail: "http://www.ninjatrader.com/support/forum/showthread.php?t=73135"

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by llanqui, Today, 03:53 AM
              0 responses
              6 views
              0 likes
              Last Post llanqui
              by llanqui
               
              Started by burtoninlondon, Today, 12:38 AM
              0 responses
              10 views
              0 likes
              Last Post burtoninlondon  
              Started by AaronKoRn, Yesterday, 09:49 PM
              0 responses
              15 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Yesterday, 08:42 PM
              0 responses
              11 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Yesterday, 07:51 PM
              0 responses
              14 views
              0 likes
              Last Post strategist007  
              Working...
              X