Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-26-2006, 09:47 PM
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 12-28-2006, 06:01 PM
Senior Member
 
Join Date: May 2006
Posts: 130
investor_me is on a distinguished road
A modification

I realized the profit was miscalculated based on ticks rather than minutes.

A few bugs are also corrected here.

Here's a version that calculates the values for any timeframe desirable.

You can use it to measure the volatility and trend of any currency in any day. I think I will use it as a basis for an upcoming EA.
Attached Files
File Type: mq4 trend-stats-v1.mq4 (5.3 KB, 139 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
25-min Statistical High/Low Scalping System... forextrades Metatrader 4 14 02-08-2008 07:53 AM
Big Maths program with Financial / Neural / Statistical Functions...... De Vinci Tools and utilities 3 10-12-2007 07:28 AM


All times are GMT. The time now is 11:48 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.