KBJ
04-28-2007, 12:22 PM
From reading the help, it seems like setting EntryHandling and EntriesPerDirection should affect the operation of a strategy.
My testing shows that changing these values...
protected override void Initialize()
{
EntriesPerDirection = 1;
EntryHandling = EntryHandling.AllEntries;
}
...does not affect the operation of the program, as they are instead overridden by the values specified as backtest parameters (see attachment).http://us.mg1.mail.yahoo.com/ya/download?fid=Inbox&mid=1_1988748_AH1Fv9EAAIoDRjPWu AcwGQiZ%2BEo&pid=2&tnef=&YY=1177802416332&newid=1& clean=0&inline=1
I used the following code to verify this...
if ((EntryHandling != EntryHandling.AllEntries) // Correct settings?
|| (EntriesPerDirection != 1))
{ // No...
Print( "**** Error - Entry handling is not set to AllEntries 1" );
return; // Exit, effectively killing strategy.
}
Although I haven't tested this during live operations, I suspect it may work the same, as the same "Order Handling" properties exist in the "New Strategy" parameter selection screen.
KBJ
My testing shows that changing these values...
protected override void Initialize()
{
EntriesPerDirection = 1;
EntryHandling = EntryHandling.AllEntries;
}
...does not affect the operation of the program, as they are instead overridden by the values specified as backtest parameters (see attachment).http://us.mg1.mail.yahoo.com/ya/download?fid=Inbox&mid=1_1988748_AH1Fv9EAAIoDRjPWu AcwGQiZ%2BEo&pid=2&tnef=&YY=1177802416332&newid=1& clean=0&inline=1
I used the following code to verify this...
if ((EntryHandling != EntryHandling.AllEntries) // Correct settings?
|| (EntriesPerDirection != 1))
{ // No...
Print( "**** Error - Entry handling is not set to AllEntries 1" );
return; // Exit, effectively killing strategy.
}
Although I haven't tested this during live operations, I suspect it may work the same, as the same "Order Handling" properties exist in the "New Strategy" parameter selection screen.
KBJ