And here is prior work in this field: https://www.mql5.com/en/articles/1576.
Using the article script you can see something interesting:
2012.02.25 10:25:51 script_Statistics_candles_V2 AUDUSD,H4: Processed - 356 days; 1841 bars, period 240 minutes
2012.02.25 10:25:51 script_Statistics_candles_V2 AUDUSD,H4: For the period there are 297 bars with the time of the opening 0:0 .Bullish- 125.Bearish- 172.Equal - 0
2012.02.25 10:25:51 script_Statistics_candles_V2 AUDUSD,H4: For the bars with the opening time 0:0,average distance between the Open-Close prices - 163.1347 points. Between the High-Low prices - 362.4444 points.
This is over the last year or so using 4H timeframe. You can see if you just blindly went short on AUDUSD at midnight you would have done quite well. There are other timeframes on AUDUSD that are interesting too.
And here is prior work in this field: https://www.mql5.com/en/articles/1576.
Using the article script you can see something interesting:
2012.02.25 10:25:51 script_Statistics_candles_V2 AUDUSD,H4: Processed - 356 days; 1841 bars, period 240 minutes
2012.02.25 10:25:51 script_Statistics_candles_V2 AUDUSD,H4: For the period there are 297 bars with the time of the opening 0:0 .Bullish- 125.Bearish- 172.Equal - 0
2012.02.25 10:25:51 script_Statistics_candles_V2 AUDUSD,H4: For the bars with the opening time 0:0,average distance between the Open-Close prices - 163.1347 points. Between the High-Low prices - 362.4444 points.
This is over the last year or so using 4H timeframe. You can see if you just blindly went short on AUDUSD at midnight you would have done quite well. There are other timeframes on AUDUSD that are interesting too.
Yeah, i have read this article a while ago, but the article and my work are different, the article assumes that candles go in one direction each day, while i assume that if hour(x) is bullisch/bearish, the whole day will close bullish/bearish.
Of course this does not imply that it will behave in the future like this but it seamed to work for the last 10 years. However, this should not be a complete strategy but this could act as a filter, for example i the filter would suggest to short only on days where the 9:00 candle was a short one.
What does the daily shift parameter do?
Using the AUDUSD as with previous example using your code I see on H1 things are pretty much 50% all the way. On H4 there is a 52% at Hour 8 which corresponds roughly with my previous post.
Well, the indicator is designed only for H1 since i wanted to inspect every hour. The shift parameter allows to shift the day forward. It is used to test the prediction potential for the x day after
If all are 50% then there is no edge for us
Well, the indicator is designed only for H1 since i wanted to inspect every hour. The shift parameter allows to shift the day forward. It is used to test the prediction potential for the x day after
If all are 50% then there is no edge for us
All bars
I am not a big fan of all bars and 10 year testing. Markets change and I would rather want to look at a specific snapshot, like this year or last and base my statistics on the changing conditions.
Then modify the code.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello again to the mythbusters channel.
Today we are going to analyze the hourly data in relationship to the daily close price.
We assume that there exists hours which predicts the direction of the ending day.
The indicator we need to collect the data is quite simple:
Nothing fancy in it. I have also added the option to check if todays hourly data predicts the movement of tomorrow but that is another story.
So what are the result on EURUSD?
As you can see there are a few hours which are interesting:
The red one are the two hours with the highest probaillity. So lets trade this ones:
Why the test failed? Even if the prediction ratio is high more than half of the day, and the daily movement has already happend.
Now lets look at the blue marked hours. The have the advantage that big part of the day still happen.
And here are the results:
As you can see the edge can beat at least the spread. Of course this will not make you rich and the demo EA does not use a Stoploss or Takeprofit, but it will close all trades on the end of the day.
Conclusion: Indeed following the trend of the intraday movement seems to be a good idea, especially we like the 9:00 candle with a prediction power of 58%.
Additionally here is the EA i have tested with. Its only a fast writen code,
ONLY FOR STRATEGY TESTER,
ONLY FOR STRATEGY TESTER
ONLY FOR STRATEGY TESTER