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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      19 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      14 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      182 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      335 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      259 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X