• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 3:29am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 3:29am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Time Frame Vs Personality, Which to choose as Main Time Frame? Who Are You? 10 replies

Multiple Time Frame Trading: In a divergence, which frame dictates? 6 replies

optimum indicators 2 replies

Time frame and Enter/Exit, Time frame and S/L, T/P relationships. 91 replies

Question on Lower Time Frame Indicators Vs. Longer Time Frame 7 replies

  • Trading Discussion
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: The Optimum Time Frame for Trading
Exit Attachments

The Optimum Time Frame for Trading

  • Post #1
  • Quote
  • First Post: Jan 14, 2012 12:23pm Jan 14, 2012 12:23pm
  •  Old_Dog
  • Joined Sep 2010 | Status: Snake Oil sniffer dog | 188 Posts
Hello all,

If I may, I would like to offer the forum the results of over six months work I have just finished to try to answer a question I have long had, on what is the optimum timeframe to trade.

I appreciate that there is no definitive answer to this, but here is my analysis...

I have had this in mind for a while but could never gain access to sufficient data until recently, when I acquired some very high quality institutional tick-data going back decades (to Deutsche Marks etc!!) from a "friend of a friend...".

I could tell it was going to be a long job when a box turned up containing a considerable number of 1Tb hard discs, LOL!!

Well.... I did over 40 Matlab worksheets and produced dozens of charts... but to cut a long story short to save boring everyone with the gory details, my results can in some respects be summarised in the attached chart.

This shows the mutual information for different MT4 timeframes. This is a rigorous mathematical measure of the amount of information you can obtain about the value of one variable knowing another.

To save you looking it up, Wikipedia has the following:

---------

Definition of mutual information

Formally, the mutual information of two discrete random variables X and Y can be defined as:

http://upload.wikimedia.org/wikipedi...932a5cd4ff.png

where p(x,y) is the joint probability distribution function of X and Y, and p(x) and p(y) are the marginal probability distribution functions of X and Y respectively.


In the case of continuous random variables, the summation is matched with a definite double integral:

http://upload.wikimedia.org/wikipedi...f3bc596994.png

where p(x,y) is now the joint probability density function of X and Y, and p(x) and p(y) are the marginal probability density functions of X and Y respectively.

These definitions are ambiguous because the base of the log function is not specified. To disambiguate, the function I could be parameterized as I(X,Y,b) where b is the base. Alternatively, since the most common unit of measurement of mutual information is the bit, a base of 2 could be specified.

Intuitively, mutual information measures the information that X and Y share: it measures how much knowing one of these variables reduces uncertainty about the other. For example, if X and Y are independent, then knowing X does not give any information about Y and vice versa, so their mutual information is zero. At the other extreme, if X and Y are identical then all information conveyed by X is shared with Y: knowing X determines the value of Y and vice versa. As a result, in the case of identity the mutual information is the same as the uncertainty contained in Y (or X) alone, namely the entropy of Y (or X: clearly if X and Y are identical they have equal entropy).

Mutual information quantifies the dependence between the joint distribution of X and Y and what the joint distribution would be if X and Y were independent. Mutual information is a measure of dependence in the following sense: I(X; Y) = 0 if and only if X and Y are independent random variables. This is easy to see in one direction: if X and Y are independent, then p(x,y) = p(x) p(y), and therefore:

http://upload.wikimedia.org/wikipedi...86e86dc85e.png

Moreover, mutual information is nonnegative (i.e. I(X;Y) ≥ 0; see below) and symmetric (i.e. I(X;Y) = I(Y;X)).

Mutual information can be equivalently expressed as

http://upload.wikimedia.org/wikipedi...caffb4df40.png

where H(X) and H(Y) are the marginal entropies, H(X|Y) and H(Y|X) are the conditional entropies, and H(X,Y) is the joint entropy of X and Y. Since H(X) ≥ H(X|Y), this characterization is consistent with the nonnegativity property stated above.

Intuitively, if entropy H(X) is regarded as a measure of uncertainty about a random variable, then H(X|Y) is a measure of what Y does not say about X.

This is "the amount of uncertainty remaining about X after Y is known", and thus the right side of the first of these equalities can be read as "the amount of uncertainty in X, minus the amount of uncertainty in X which remains after Y is known", which is equivalent to "the amount of uncertainty in X which is removed by knowing Y". This corroborates the intuitive meaning of mutual information as the amount of information (that is, reduction in uncertainty) that knowing either variable provides about the other.

---------

In our case, we want an estimate of how much useful information is contained in the current chart concerning possible future price moves. This is particularly important for folk who use indicators, as these are calculated off the current chart data. So it is very useful to know how much information they might actually contain about possible future moves.

It may come as no surprise that the lowest timeframes have the lowest values. The graph reaches a peak at H4, then tails off.

The reason for the poor performance at short timeframes is well known -- the signal-to-noise ratio is poor.

At higher timframes (Daily and above), I speculate that the reason may well be uncertainty degrading the performance. That is, over a timescale of weeks or months, it is quite possible for wars etc to start, whereas it is unlikely a war or something will start in the next few hours if we haven't heard anything ominous at the current time.

So the short timeframes are degraded by noise and the very long ones by uncertainty.

Of course, this doesn't mean scalpers can't make money. It just means you need to be more skilled and experienced to do so.

Every professional trader I have ever spoken to recommends newbies to start trading on the Daily TF until you acquire the experience to tackle the faster ones.

Now perhaps we can see why....

I hope this is helpful and, as ever, I welcome sensible feedback from experienced traders who may have something to add...

Kind regards,

Old Dog

.
Attached Image
  • Post #2
  • Quote
  • Jan 14, 2012 3:06pm Jan 14, 2012 3:06pm
  •  N11
  • | Additional Username | Joined Dec 2011 | 49 Posts
Very interesting. I was wondering the same question and it seemed to me that most strategies when backtested worked best on H4.

Thx for all the info and reasearch. Good job!
 
 
  • Post #3
  • Quote
  • Jan 14, 2012 3:21pm Jan 14, 2012 3:21pm
  •  numbnuts
  • Joined Jan 2010 | Status: overcaffeinated.... | 1,539 Posts
Remember that price has no timeframe - it moves continuously from monday morning until friday afternoon. On any timeframe less than weekly, all the "opens" and "closes" you put on a chart are imaginary.
si hoc legere scis nimium eruditionis habes
 
 
  • Post #4
  • Quote
  • Edited at 4:02pm Jan 14, 2012 3:29pm | Edited at 4:02pm
  •  jzw
  • | Joined Jun 2009 | Status: Member | 147 Posts
Interesting.

For your figures for sub-H1 timeframes did you use 24hour data or restrict yourself to a subset of the data. Its pretty clear that most of the volatility on EUR occurs during European hours (roughly 7 GMT to 17 GMT) so using 24H data would include 14 hours of mostly noise.

We all know that markets go through periods of positive feedback (trending) and negative feedback (rangebound/choppy). How is this related to Mutual Information?
 
 
  • Post #5
  • Quote
  • Jan 14, 2012 6:37pm Jan 14, 2012 6:37pm
  •  fluiDynamic
  • | Joined Sep 2010 | Status: Formless and Shapeless | 91 Posts
Very well done,


Considering that it took you quite some time to come up with that conclusion , your efforts are much appreciated.
 
 
  • Post #6
  • Quote
  • Jan 14, 2012 7:12pm Jan 14, 2012 7:12pm
  •  the redlion
  • Joined Jan 2011 | Status: Member | 2,680 Posts
I agree that there are no time frames it is a continuous flow of transactions but "time frames" are a measure of the movement of the quotes over a specific time.

It is well done and well thought out research, I appreciate the hard work.

so in fact, the way we could Use this research is that by using the Four hour chart we could actually estimate the force of supply and demand in the markets, and time our entrances better as far as reducing "noise" and "uncertainty"
AVT INVENIAM VIAM AVT FACIAM
 
 
  • Post #7
  • Quote
  • Jan 14, 2012 7:42pm Jan 14, 2012 7:42pm
  •  spzd
  • Joined Dec 2010 | Status: Going to do the prop thing. | 1,406 Posts
Quoting numbnuts
Disliked
Remember that price has no timeframe - it moves continuously from monday morning until friday afternoon. On any timeframe less than weekly, all the "opens" and "closes" you put on a chart are imaginary.
Ignored
That's not necessarily true. The daily does have an open and close, albeit arbitrary. This time comes at 1700 ET (New York) when the daily interest swap is conducted. To my knowledge every major broker and bank (other than Oanda and their reasoning for doing it the way they do is lacking IMO) abides by this time.
Mark ... Nearly all the "experts" tell you are LIES
 
 
  • Post #8
  • Quote
  • Jan 15, 2012 9:05pm Jan 15, 2012 9:05pm
  •  verglas
  • | Joined Mar 2010 | Status: Member | 32 Posts
I myself found that the H4 timeframe gives the best trend while the risk is relatively acceptable. Also H4 can prevent you from over-trading.
 
 
  • Post #9
  • Quote
  • Jan 15, 2012 10:34pm Jan 15, 2012 10:34pm
  •  Erebus
  • Joined Jul 2011 | Status: Member | 6,776 Posts
Quoting Old_Dog
Disliked
Hello all,

Every professional trader I have ever spoken to recommends newbies to start trading on the Daily TF until you acquire the experience to tackle the faster ones.

Now perhaps we can see why....

I hope this is helpful and, as ever, I welcome sensible feedback from experienced traders who may have something to add...

Kind regards,

Old Dog

.
Ignored
I know some professional traders - they use and recommend 12 hours charts, example below.

I like them due to opportunity to check for trades twice daily at convenient times; too late to put 12 hours into your research I suppose?
Attached Image (click to enlarge)
Click to Enlarge

Name: 12_hour.png
Size: 117 KB
Don't trade your heart, trade your chart!
4 Daily Signals All Time Return: 16.9%
 
1
  • Post #10
  • Quote
  • Jan 15, 2012 10:38pm Jan 15, 2012 10:38pm
  •  mima
  • | Membership Revoked | Joined May 2008 | 3,395 Posts
useless question and useless work...
The Market pays you to be disciplined
 
 
  • Post #11
  • Quote
  • Jan 15, 2012 10:39pm Jan 15, 2012 10:39pm
  •  enochben
  • Joined Dec 2007 | Status: a.k.a. the speculator | 961 Posts
take time out of the equation completely - use range bars!
 
 
  • Post #12
  • Quote
  • Jan 16, 2012 12:40am Jan 16, 2012 12:40am
  •  Binyamin
  • Joined Jun 2011 | Status: Consistency With Discipline | 1,036 Posts
What you say makes complete sense logically. However I don't know if I can totally agree because I know of a trader that predominantly trades M1, M5, M15 and H1 that have turned Euro 400 into Euro 200000 with barely any drawdown in less than a year.

I appreciate the thought and research that you put into this though.
Riding the order flow
 
1
  • Post #13
  • Quote
  • Jan 16, 2012 12:52am Jan 16, 2012 12:52am
  •  stulic
  • Joined May 2011 | Status: grizzly long gone | 2,427 Posts
Wassup Sheldon?
Don't get mad, get even!
 
 
  • Post #14
  • Quote
  • Jan 16, 2012 8:22am Jan 16, 2012 8:22am
  •  olsen-yersen
  • | Joined May 2011 | Status: Member | 222 Posts
I have been wandering in vain about how to find the optimal time frame with Hurst exponent ,very interesting findings indeed.

Old Dog , do you have any idea how to apply mutual information to find the ''optimum'' signal/signals in a trading system? This is the only thing I have found in the web so far ,I am still searching for new ideas: A New Classification Algorithm Using Mutual Nearest Neighbors http://ieeexplore.ieee.org/xpl/freea...number=5662527
 
 
  • Post #15
  • Quote
  • Jan 23, 2012 4:24am Jan 23, 2012 4:24am
  •  Old_Dog
  • Joined Sep 2010 | Status: Snake Oil sniffer dog | 188 Posts
Hi All

Thanks for the feedback and kind words.

In response to some specific queries:

jzw - I used 24 hour data for the tests. Athough EU and such like are more active during London and NY than Asian, Yen pairs etc can be the other way around. So I rather hoped it would all come out in the wash!!! I agree that the lower timeframes may be better than the curve suggests at liquid times of day.

Erebus - The curve is monotonic up and down, so I would be quite happy to interpolate it. This would put H12 very close to H4 in terms of MI. So it should be a great TF to trade, as well as being very convenient for busy lifestyles!

olsen - Very interesting question!! At the end of the day, I guess this is the whole point of the research -- OK, we know the "best" timeframe -- now how do we best trade it!! I am thinking about this.....

Kind regards,

Old Dog
 
 
  • Post #16
  • Quote
  • Last Post: Jul 5, 2012 7:48am Jul 5, 2012 7:48am
  •  olsen-yersen
  • | Joined May 2011 | Status: Member | 222 Posts
Old Dog,

FYI ,Codebreaker has some experiment with measuring the optimum time frame with false nearest neighbours other than the mutual information : http://www.forexfactory.com/showthre...07#post2534707
 
 
  • Trading Discussion
  • /
  • The Optimum Time Frame for Trading
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022