whipsaw
02-16-2010, 03:31 AM
I'm looking for a way to implement a rather simple (pattern based) EOD strategy for backtesting. The strategy should EnterShort ONLY IF the open is above the previous day's high,if (Open[0]>High[1])
EnterShort(..)
If implemented like this, the order can obviously only be fulfilled the next day but not on the very day when the condition is fulfilled.
If I understand correctly, an order is always submitted before OnBarUpdate/after the end of the previous bar. So how can an order be linked with an open condition?
I did a cursory search in the forum but didn't find anything suitable. Any help would be highly appreciated.
EnterShort(..)
If implemented like this, the order can obviously only be fulfilled the next day but not on the very day when the condition is fulfilled.
If I understand correctly, an order is always submitted before OnBarUpdate/after the end of the previous bar. So how can an order be linked with an open condition?
I did a cursory search in the forum but didn't find anything suitable. Any help would be highly appreciated.