Made $ 258 663.50 from $3000 using Problematic Backtesting by just buying at open (Fractal ZigZag)
You got the results because the simulated tickchart,which was generated from higher timeframes. The orders were opened and closed on the same bar all the time, since the ticks are generated according to a pattern that is not realistic (on a simulated bar price can go up and down between high and low more than once, filling tight stops on the same bar, getting profits a lot lot lot more often than it would happen on a real tick chart.)
I agree with waht you say - but there is strategies that work on open, close, high and low of a bar (without super sampling). I feel that the tester should allow for this.
I feel that the same price should be used to open and then take profit or stop loss - from where does this profit come from? (the spread should be lost per trade).
An M1 bar is just compressed Tickchart, with two concrete points: open and close, and two relative: high and low.
I made a quick scheme:
http://img206.imageshack.us/img206/5029/barsjt3.jpg
The first drawing is an M1 bar, that can be built infinite ways. You can guess, the results won't be the same, for the three ways that I drew. In my opinion the first one is the more realistic, but I saw bars built by tester like the third last drawing.
So you only know two sure points per minute, and two relative from a M1 bar, not more. (You can generate with sophisticated algorithms, but the two sure points remain two sure points) Well, if you ever saw a US market open, with announcements, you know that a lot more happening than what can be desribed with these points.
The only problem with OHLC is, that you don't know the sequence.
An M1 bar is just compressed Tickchart, with two concrete points: open and close, and two relative: high and low.
I made a quick scheme:
http://img206.imageshack.us/img206/5029/barsjt3.jpg
The first drawing is an M1 bar, that can be built infinite ways. You can guess, the results won't be the same, for the three ways that I drew. In my opinion the first one is the more realistic, but I saw bars built by tester like the third last drawing.
So you only know two sure points per minute, and two relative from a M1 bar, not more. (You can generate with sophisticated algorithms, but the two sure points remain two sure points) Well, if you ever saw a US market open, with announcements, you know that a lot more happening than what can be desribed with these points.
It seems like you know a lot about backtesting - do you know why I cannot get the same results as in the championship when I backtest their code?
Thanks
You could get very close with tick data.
Craig: try Google and Ebay.
in realistic trade, those price can not get at same time,
and those price only can be get after that time, and then trade take place at next time(bar).
so test allow you can judge and trade at same time (or in other word, same bar),
but realistic trade not !!!
The backtester generates tick data from the least timeframe available (I guess everyone has M1) with the so called 'fractal interpolation', which is not far from random data. But every tick has a price and a time, as in a real account, only not the same, because these are just simulated. Only two points will have the same price and time: open and close of a bar. It is natural that something produces different results (output) with different input, isn't it?
The only problem with OHLC is, that you don't know the sequence.
An M1 bar is just compressed Tickchart, with two concrete points: open and close, and two relative: high and low.
I made a quick scheme:
http://img206.imageshack.us/img206/5029/barsjt3.jpg
The first drawing is an M1 bar, that can be built infinite ways. You can guess, the results won't be the same, for the three ways that I drew. In my opinion the first one is the more realistic, but I saw bars built by tester like the third last drawing.
So you only know two sure points per minute, and two relative from a M1 bar, not more. (You can generate with sophisticated algorithms, but the two sure points remain two sure points) Well, if you ever saw a US market open, with announcements, you know that a lot more happening than what can be desribed with these points.
It seems like you know a lot about backtesting - do you know why I cannot get the same results as in the championship when I backtest their code?
Thanks
problem is in 4H period, Open is 0 second, close is at 4 H, but get H and L maybe at 1 H or 1.5 H but only get at 4H.
in other words, HLC data only can be used at next bar.
for ZagZig indicator, if Zagzig give a signal at 9:00 ad you decided to buy or sell, but when tive arrived to 11:00, new data maybe change that signal at 9:00, can you back to 9:00 to change your buy or sell ? you can not back on the timeline!
from your graph, those positions close at prices not exist !
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I used the following settings:
GPBUSD daily
Open prices only
TakeProfit = 25;
Lots = 1;
TrailingStop = 10;
InitialStop = 20;
slip = 3;
It was tested from 1999-07-01
If you look at the chart there is lots of trades that close in the air?
If this is not proof that something is not right then I do not know. Can more people please check this please.
MetaQuotes: If I buy or sell on the bar what price do you use? It looks like the PC is dreaming out a number?
Thanks
Schalk