Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EntiresPerDirection being ignored?

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

    EntiresPerDirection being ignored?

    EntriesPerDirection is defined but is apparently being ignored. I am probably missing something but i don't know what

    protected override void Initialize()
    {

    EntriesPerDirection = 4;
    EntryHandling = EntryHandling.UniqueEntries;
    CalculateOnBarClose = false;
    TraceOrders = true;

    }

    protected override void OnBarUpdate()
    {

    if (Low[0] == xyz)
    {
    EnterLong((int)Psize, "a1"); /*Psize defined and calculated earlier*/
    EnterLong((int)Psize, "a2");
    EnterLong((int)Psize, "a3");
    }
    }
    4/9/2009 11:58:01 AM Entered internal PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a1' FromEntrySignal=''
    4/9/2009 11:58:01 AM Entered internal PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a2' FromEntrySignal=''
    4/9/2009 11:58:01 AM Ignored PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a2' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    4/9/2009 11:58:01 AM Entered internal PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a3' FromEntrySignal=''
    4/9/2009 11:58:01 AM Ignored PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a3' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'


    http://www.ninjatrader-support2.com/...ead.php?t=3751 is easy to follow and as far as i know i have everything from there in here etc.

    edit: i cranked EntriesPerDirection = 4; to EntriesPerDirection = 4000; and recompiled and got the same error.
    Last edited by tortexal; 04-10-2009, 05:27 PM.

    #2
    Just because you recompiled your code still means you need to reload the strategy. Please ensure you restarted your strategy after making changes.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ha thought i did that, looks like i in fact wasnt removing -> apply -> reload thanks a bunch works perfect, Happy Easter

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X