MQL4 - automated forex trading   /  

Forum

need improvements in tester simulation

Back to topics list To post a new topic, please log in or register

avatar
597
irusoh1 2006.10.20 21:18 



this an example of tester jumping like crazy on 1M chart. There were only 22 ticks on that bar with spread of about 30 pips.

Its incomperehensible how it could go up and down like that on such a light volume.



This is the same running on the demo account. It doesn't have 2 etxra trades resulting in about $3000 extra profit.



Finally same tester run after the following was inserted into the code:

datetime samebartime;
 
int start()
  if(IsTesting())
  {
      if(iTime(NULL,PERIOD_M1,0)==samebartime)
        return(0);
   }
 
 
.....
 
 
ordersend(....
samebartime=iTime(NULL,PERIOD_M1,0);


I don't know how ticks are generated within a 1M bar, but it seems they should go more or less successively from open to close. That's how it work in real life most of the time.

Fallacies, Part 2. Statistics Is a Pseudo-Science, or a Chronicle of Nosediving Bread And Butter

Fallacies, Part 2. Statistics Is a Pseudo-Science, or a Chronicle of Nosediving Bread And Butter

Numerous attempts to apply statistical methods to the objective reality, i.e. to financial series, crash when met with the nonstationarity of processes, "fat tails" of accompanying probability distributions, and insufficient volume of financial data. In this publication I will try to refer not to the financial series as such, but to their subjective presentation - in this case, to the way a trader tries to halter the series, i.e. to the trading system. The eduction of statistical regularities of the trading results process is a rather enthralling task. In some cases quite true conclusions about the model of this process can be made, and these can be applied to the trading system.


avatar
125
Zap 2006.10.21 02:32 
There's been lots of topics about the same problem recently, where I wrote my thoughts on this. I've been working on this issue for the last months..
Generated ticks are not better than random on the smallest timeframe. You cannot simulate better though in my opinion, since you don't have enough data.
Otherwise write out the generated ticks to a file, and you will see why I am talking about it being random.
Strategy tester is a very good basis though, and it is capable of importing real data.
Back to topics list  

To add comments, please log in or register