Hi darkod
There are several reasons why trades are not accepted. Probably the most common cause of trade failure stems from coding that creates an entry signal on one bar but doesn’t attempt to execute until the following bar (usually the OPEN of the following bar). Using EST generated delays rather than coded delays is not a good way to go when 100% of capital is committed to each trade. Why? Because the EST calculates the number of shares it can afford to buy on the signal bar, not the execution bar. When these trade stages are not on the same bar, any upward price movement tends to create a situation where the EST cannot afford to buy the previously calculated number of shares. This results in the trade being abandoned.
Check out the various reports that the EST creates and you’ll surely find a bunch of them that are considered but not executed. As I’ve already suggested, one solution is to insert any required trade delay into the code and remove the strategic or bar delay from the EST. Another solution is to double the trading capital but allocate only 50% to each trade. What happens then is that the EST uses 50% of available capital to calculate the number of shares to purchase, but if the price to pay on the execution bar is higher it essentially still has 50% of additional capital to call on.
Don’t give up on the EST – it’s still a useful tool. However, to get the best from it you need to understand how it works and what its frailties are. I like to set the EST up such that it mimics my Trade Equity test tool. Not only do I then end up with some more useful portfolio results, but I can also check that the EST and TE results are in the same ballpark. When gross results are within a few cents of each other I can be pretty sure that both test methods are executing the same trades at the same time and generating the same results from individual securities.
Regards
Roy
www.metastocktips.co.nz