Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ignored Order with the Strategy Analyzer - Optimizer

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

    Ignored Order with the Strategy Analyzer - Optimizer

    I have a weird scenario you may be able to help me with.

    I have a strategy I have been running for a while successfully and I decided to try and optimize it with the Strategy Analyzer Optimizer.

    I can successfully back test and optimize the strategy using Minute data series.

    The problem occurs when I try to optimize the strategy using type Volume.

    Here is a small sample:

    protected override void OnBarUpdate()
    {

    if (Close[0] > (EMA(EMA1)[0]))
    {
    EnterLongLimit(quantity,EMA(EMA1)[
    0] + TickSize,"My Strategy");
    }
    if (Close[0] < (EMA(EMA1)[0]))
    {
    EnterShortLimit(quantity,EMA(EMA1)[
    0] - TickSize,"My Strategy");
    }
    }

    The error is:
    An Enter() method to submit an entry order at '4/8/2009 2:50:40 PM' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.

    Is there an issue using Volume charts?

    It is very unusual since this works on backtesting as well as optimize as long as I stay with Minute charts.
    It only has issues with Volume charts.

    I have tried to output data to see what is causing it to break but I do not get any bad data.

    I have also read through the Internal Order Handling section to no avail.

    I took out the multi time frame code and have the same exact issue.

    Suggestions?


    #2
    gyoung,

    The rules mean you cannot place simultaneous working orders in opposite directions of the market. You will need to use TraceOrders = true to figure out when this occurs.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Will try to rewrite the code to limit it to one order at a time.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by geddyisodin, Yesterday, 05:20 AM
      8 responses
      49 views
      0 likes
      Last Post geddyisodin  
      Started by DayTradingDEMON, Today, 09:28 AM
      3 responses
      19 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Stanfillirenfro, Today, 07:23 AM
      9 responses
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by George21, Today, 10:07 AM
      0 responses
      8 views
      0 likes
      Last Post George21  
      Started by navyguy06, Today, 09:28 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X