Alerts are displayed in alphabetical order but orders are not
Author: mikesblack
Creation Date: 4/30/2018 10:06 AM
profile picture

mikesblack

#1
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.
profile picture

Eugene

#2
Mike,

Here we go again. I knew I had already answered this question before, so finding it with Google's full text search for "site:wealth-lab.com/forum/posts/" prepended by your username was hands down:

Priority value in signal name column in Alerts/Trades is not ordering from low to high

Is this what you're asking?
profile picture

KGo

#3
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
profile picture

mikesblack

#4
Thank you Eugene and KGo.
profile picture

mikesblack

#5
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?
profile picture

KGo

#6
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
profile picture

mikesblack

#7
Thanks KGo.
profile picture

Cone

#8
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).