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.
Comment