View Single Post
 
Old 12-26-2006, 09:47 PM
investor_me investor_me is offline
Senior Member
 
Join Date: May 2006
Posts: 130
investor_me is on a distinguished road
Lightbulb A statistical EA

As a follwo up, here's a statistic EA that does this:

Day by day, calculate the following:

1) number of consecutive ticks in an uptrend
2) number of successive ticks in a downtrend
3) the maximum successive ticks in both direction and the time it was found
4) Assuming I just bought on every uptrend, what's the profit
5) Assuming I sold for every downtrend, what's the profit
6) what's the maximum in both cases and when was that found

It is interesting to use this with multiple currencies. I did it in just over an hour, so it may have errors so please help in finding them.

Such code is just one step to find an answer to this question:

Q: Are there hidden patterns? How/when do they evolve to different currencies at different times?

It is somewhat relevant to my earlier post here:
http://www.forex-tsd.com/manual-trad...all-comes.html

If you noticed, assuming that we had a spread of 2-pips, taking those trades would still be profitable, of course it is not possible due to no-scalping strategy. But it is also an addition for you to use as food for thought. .
Attached Files
File Type: mq4 trend-stats.mq4 (4.6 KB, 106 views)