Hi,
While trading the Simplicity system, I am getting alerts displayed in alphabetical order, while in testing the orders are not being selected in alphabetical order. What would I need to do to select alerts as per the back test results?
Thanks
CODE:
Please log in to see this code.
Size:
Color:
Size:
Color:
Mike,
Two or more limit orders for the same bar in backtest are filled randomly (no priority is given) so each time the strategy is executed you may see different orders filled in the backtest. The backtest is an approximation.
In actual trading the orders that occur earliest in the bar are filled first.
Bottom line for this system is when cash is limited the backtest will likely fill different limit orders than would execute in live trading. I recommend fully exploring this topic to fully appreciate any model developed.
Kevin
Size:
Color:
Thank you Eugene and KGo.
Size:
Color:
kGo,
What would be the best way to select trades? This morning I traded the largest price symbols. Is there a better way or does it matter?
Size:
Color:
Mike,
In general the market not the trader determines which limit orders are filled. This means we either submit all limit orders to broker or monitor throughout the day all orders via WL and then submit just those that are most likely to fill because price has gotten close to the limit.
If 60 of 100 stocks produced limit order alerts last night we must be prepared to fill the order for the first ones that meet the limit. There may be none, or 1 or 60 that will fill today which we don't know in advance. If we wish to fill only 5 orders then we need to stop fills after the first 5.
Trading these limit order systems is more complex than trading a buy at the market open system where trade priority can be set the night before on any criteria like price since all orders fill at the same time.
Kevin
Size:
Color:
Thanks KGo.
Size:
Color:
Size:
Color: