PDA

View Full Version : EntiresPerDirection being ignored?


tortexal
04-10-2009, 04:42 PM
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/vb/showthread.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.

NinjaTrader_Josh
04-11-2009, 01:14 AM
Just because you recompiled your code still means you need to reload the strategy. Please ensure you restarted your strategy after making changes.

tortexal
04-11-2009, 06:29 AM
ha thought i did that, looks like i in fact wasnt removing -> apply -> reload thanks a bunch works perfect, Happy Easter