Analysis of time and day of week bias
Forums › ProRealTime English forum › General trading discussions › Analysis of time and day of week bias
- This topic has 12 replies, 2 voices, and was last updated 5 years ago by othello.
-
-
09/11/2019 at 1:43 PM #107193
Hi guys,
I’m trying to learn this part of the analysis of the characteristics of a market and I wanted to know if this is the right section for a comparison with other traders, especially with those who are ahead of me in the path.
In particular, I would like to propose a ProBacktest code that I designed and used to identify time and day bias on Crude Oil (CL – Us Crude 1 euro). With results that I think are interesting.
Can I use this section of the forum?Thanks.
09/11/2019 at 1:57 PM #10719409/11/2019 at 2:02 PM #107195In reality it is something not so easily classifiable. It is an automatic strategy even if, in my humble opinion, it is not possible to apply it as a proposal. And, at the same time, the thread could face one of the questions concerning the construction of a trading system: the possible presence of hourly and / or daily biases in a market (such as, for example, oil).
09/11/2019 at 2:25 PM #10720009/11/2019 at 4:16 PM #107210In the last few days I asked myself the following question: considering the oil market, is there a day of the week when it is preferable to go short? And, similarly, is there a day of the week when it is preferable to go long?
And then, within each of these two days, is there a particular time in which to open the position and, consequently, a time in which to close it?
I then wrote the code indicated and, after the optimization operation, I could see that the best day of the week in which it is preferable to assume a sales position is Monday. And, as regards the purchase position, it is preferable that this is taken on Wednesday.
The optimization operation also took place for the times shown to be those indicated in the code itself.123456789101112131415161718192021222324252627282930313233343536//Vende il lunedì e compra il mercoledì//11.09.2019//OthelloDefparam cumulateorders = falseOVL=120000 // ora di vendita del lunedìOAL=210000 // ora di ricopertura del lunedìOAM=140000 // ora di acquisto del mercoledìOVM=200000 // ora di vendita del mercoledì// Se è lunedì vendo in chiusura della candela oraria OVLif dayofweek=1 thenIF TIME = OVL THENsellshort at marketendifendif// Alle ore OA del giorno successivo mi ricoproIF TIME = OAL THENexitshort at marketendif// Se è mercoledì compro in chiusura della candela oraria OVMif dayofweek=3 thenIF TIME = OAM THENbuy at marketendifendif// Alle ore OA del giorno successivo mi ricoproIF TIME = OVM THENsell at marketendifThe code is applied to the CL chart (US Crude 1 €) with a timeframe of one hour.
09/11/2019 at 4:26 PM #107215Here I enclose the detailed report and the equity line.
The imposed spread is three points.
The number of transactions, 176, seems to me to be statistically significant.
Of course I’m not saying that this could be a system to put on the market (maybe tomorrow morning).
I believe, however, that it can be a reasonable filter to be integrated into a trading system that trades oil where inputs and outputs could be based on indicators or models of two or more candles.
Opinions on this?09/11/2019 at 5:14 PM #107221Please don’t take this the wrong way but as soon as somebody says something like ‘if you buy on Mondays at 3pm’ and sell on Thursdays at 7pm’ or anything similar then data mining alarm bells start to go off in my head. Seasonality whether it is monthly, weekly, daily, hourly or minutely can create some fantastic equity curves but you have to have some pretty sound reasoning such as the time being the market open or market close or even lunchtime when a lot of traders are not paying attention otherwise it is really just data mining.
I still find myself playing with seasonality even though I decided ages ago that not much good came from it. Even just recently I was testing to see if holiday season was a good time to be out of the market and I persuaded myself in the end that I was trying to see something that just was not there even if some of the equity curves were fantastic.
I notice that you are only showing results on 10k bars – have you done the same analysis on 100k bars or even 200k if you have it?
09/11/2019 at 5:23 PM #10722209/11/2019 at 6:38 PM #107242I thank you for your contribution. Mine was just a way to discuss the “bias” topic.
Thank you also for sharing your experience on this topic and the fact that your studies, at least until now, have not led to anything particularly interesting.🙂
09/11/2019 at 6:44 PM #10724609/11/2019 at 6:47 PM #10725009/11/2019 at 6:53 PM #10725109/11/2019 at 7:29 PM #107257I checked and took the image of the window where the backtesting parameters are shown, including the spread which, as you see, is 3 points. On the other hand, in the transition from 10,000 units to 100,000 units I had not touched anything. -
AuthorPosts
Find exclusive trading pro-tools on