Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 07:05 PM.



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