|
Anthony -- After comparing your attached results with my running of your code, I have a few observations to make. 1. At first, I was thrown off by the entry and exit dates being the same in backtesting. However, now I understand and accept that. 2. You must have checked, "Allow same bar exit" in settings. 3. MOST IMPORTANT, your code produces very accurate trades, MOST of the time. However, I noticed what appear to be arithmetic errors on BOTH your attachment and my backtesting. From the first 10 trades, 8/1/07 - 8/13/07, three trades dated, 8/9/07, 8/13/07, and 8/14/07 are problematic. The tables below show the problems. The labels 'Anthony', 'Adj', 'Keith', and 'UnAdj' refer to, respectively, your test results, Yahoo adjusted prices, my test results, and Yahoo unadjusted prices. My QP3 data base has prices identical to Yahoo unadjusted, at least for the tables below. Previous 8/9/07 Close Open High Low Close Anthony 19.6375 19.208 Adjust 19.71 19.21* 19.64* 18.46* 18.84 Keith 19.70 19.27 UnAdj 19.77 19.27 19.70 18.52 18.90 8/13/07 Anthony 18.8119 18.9216 Adjust 18.79 18.92* 19.82* 18.81* 19.43 Keith 18.87 18.98 UnAdj 18.85 18.98 19.89 18.87 19.49 8/14/07 Anthony 19.418 19.3482 Adjust 19.43 19.35* 19.42* 18.61* 18.66 Keith 19.47 19.40 UnAdj 19.49 19.40 19.47 18.66 18.71 * indicates calculated adjusted values, using simple subtraction. underlined Prev. Closes should each match the values immediately below. instead they match values underlined in other columns. I did not check any values after the first ten trades. 4. I also tried the following code below: SetTradeDelays(0,0,0,0);
It also produces weird results. However the mismatches are in the Open column rather than in the Prev. Close column. -- Keith Anthony Faragasso wrote:
|
- [amibroker] Help me plz. dralialadin
- Re: [amibroker] Help me plz. NW Trader
- [amibroker] Simple Buy on Close, Sell on Open n... Keith McCombs
- Re: [amibroker] Simple Buy on Close, Sell o... Keith McCombs
- Re: [amibroker] Simple Buy on Close, Sell o... Anthony Faragasso
- Re: [amibroker] Simple Buy on Close, Se... Keith McCombs
- Re: [amibroker] Simple Buy on Clos... Anthony Faragasso
- Re: [amibroker] Simple Buy on ... Keith McCombs
- Re: [amibroker] Simple Buy on Clos... Aron
- Re: [amibroker] Simple Buy on Clos... Anthony Faragasso
- Re: [amibroker] Help me plz. Keith McCombs

