I have a strategy I have been running for a while successfully and I decided to try and optimize it with the Strategy Analyzer Optimizer.
I can successfully back test and optimize the strategy using Minute data series.
The problem occurs when I try to optimize the strategy using type Volume.
Here is a small sample:
protected override void OnBarUpdate()
{
if (Close[0] > (EMA(EMA1)[0]))
{
EnterLongLimit(quantity,EMA(EMA1)[0] + TickSize,"My Strategy");
}
if (Close[0] < (EMA(EMA1)[0]))
{
EnterShortLimit(quantity,EMA(EMA1)[0] - TickSize,"My Strategy");
}
}
The error is:
An Enter() method to submit an entry order at '4/8/2009 2:50:40 PM' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation.
Is there an issue using Volume charts?
It is very unusual since this works on backtesting as well as optimize as long as I stay with Minute charts.
It only has issues with Volume charts.
I have tried to output data to see what is causing it to break but I do not get any bad data.
I have also read through the Internal Order Handling section to no avail.
I took out the multi time frame code and have the same exact issue.
Suggestions?
Comment