Are there factors that influence the direction of the market
Executive summary
We found 2 factors that significantly influence the direction of the S&P futures market: time of the day and downtrends.
The baseline win rate for the S&P futures is 51.6%, but we found time periods that have an average win rate of 55.4%, and some as low as 47% average win rate. We also found that the market has a mean-reversion tendency: when a 30-minute candle went down, the next candle has a 53% chance of being winning vs 50% for other circumstances.
We used these two factors to build a 54% win rate system compared to the baseline. The system is also more robust to downturns.
Detailed summary
Model Building Methodology
Definitions
Dependent variable
Independant variables
I came up with a few variables that could help predict the direction that I hadn't really tested systematically yet.
- Quantile size of the previous time period: the size of the candle
- Calculation: the absolute value of (High - Low)/Open.
- Top 1% of biggest candle, top 2%, top 3% etc.
- We don't care if the candle is winning or losing, we only care about the size of the candle.
- Quantile profit of previous time period: the size of the profit in %, without concern for the direction
- Calculation : absolute value of (Close - Open)/Open
- Top 1%, Top 2 % of biggest profit percent in absolute.
- We don't care if the candle is winning or losing, we only care about the size of the profit.
- The Hausdorff / Fractal Dimension: explained in the previous article
- Weekday: Monday, Tuesday, etc
- Time of the day: 9:30, 10:30, 11:00 etc
- Quantile size of the previous time period
- Quantile profit of previous time period
- The Haussdorf / Fractal Dimension
- Weekday
- Time of the day
- Position difference
- Position direction
- Position category
New Variable Definition: Candle Position
Markets are very chaotic and are difficult to analyze using traditional analytics methods. To solve this problem, we came up with a candle classification method to simplify the data.
With this method, any candle is divided into four equal parts, starting from below to top. Two numbers are given, the first one corresponding to the part of the candle where the Open was, the second for the Close. For instance, in the candle below, the Open was in part 4, and the Close was also in part 4. Therefore, we call this candle '4-4'.
Below are a few other examples. It is very important to note that this refers only to the shape of the candle.
Below are a few other examples. It is very important to note that this refers only to the shape of the candle.
- Candles 1-4 and 4-1 have a position difference of 3
- 4-2, 3-1, 1-3, 2-4 have a difference of 2
- 1-2, 2-3, 3-4, 4-3, 3-2, 2-1 have a difference of 1
- 1-1, 2-2, 3-3, 4-4 have a difference of 0.
We also added candle direction. For those that have position difference "equal", we call them "equal", those that go up "up" and down "down. Very original...
- "Equal" : 1-1, 2-2, 3-3, 4-4
- "Up : 1-2, 1-3, 1-4,2-3, 2-4, 3-4
- "Down" : 4-1, 4-3, 4-2, 3-2, 3-1, 2-1
Statistical Analysis
Testing the data
Conclusion
Appendix - Non-Significant Results
Profit Data Distribution
The method we tried to use to assess market direction was the correlation between two consecutive candles. More specifically: is there any correlation between the price movement of a candle and the following one. For instance, if at 9:30 we have a big, will this impact the chances of having a winning candle at 10:00? Or if a candle is winning, does that impact the winning chances of the following one? The quick answer is: no, We couldn't find any significant correlation between previous candle profit and following candle profit, at any time scale: 1,2,3,5, 10, 15, 30 mins, 1hr, 1 day, etc.
Below is a scatterplot for 30 mins candles that shows visually that there are absolutely no correlations whatsoever between these 2 variables. This doesn't come as a surprise: if it were that easy, anybody could make money on the stock market. Moreover, this is also the data, even in an upward market, the price action keeps going up and down.
Comments
Post a Comment