Using Machine Learning to Predict Whether Weekly High Will Beat Median Weekly High
u/Expert_CBCD ·
Reddit — r/algotrading
· 2026년 6월 25일, 05:23
· ⬆ 15 포인트
· 💬 24 개 댓글
| Reddit에서 보기 ↗
AI 요약
=== 요약 ===
- 이 게시물은 롤링 10년/1개월 학습-테스트 분할 및 확률 임계값(>60% 매수, <40% 숏)을 사용하여 주식의 주간 고가가 중간 고가(월요일 시가 대비)를 초과할지를 예측하는 ML 모델을 설명합니다.
- 작성자는 SPY, QQQ, DIA, IWM, GOOG, USO에 대한 백테스트 결과를 제시하며, 승률(68–72%)과 평균 수익률이 기준(~50% 승률) 대비 크게 개선되었음을 보여줍니다. 전략2(월요일 시가 매수, 금요일 종가까지 보유)는 연간 수익률 약 28–33%를 기록했습니다.
- 분석은 잘 연구되었지만 변수 전체 공개는 부족합니다. 작성자는 모델이 ETF 및 일부 주식에 일반화되지만, 다중 티커 접근법은 성과가 낮다고 언급합니다.
=== 시장 심리 ===
강세
=== 투자 아이디어 ===
SPY - 롱 | 신뢰도: 0.75 | 심리: +0.50
발언자: u/Expert_CBCD
논지:
1. 사실: 모델이 확률 >60%일 때 SPY 승률 70.18%, 거래당 평균 수익률 0.55%(연간 28.6%) 대 기준 49.72% 및 0.14%.
2. 연결고리: 모델의 선별성(신호 발생 주 32% 미만)과 70% 이상의 정확도는 월요일 시가에 체계적인 주간 롱 편향을 생성합니다.
3. 결론: 모델 확률이 60% 초과 시 월요일 시가에 SPY 매수, 금요일 종가까지 보유(전략2)하여 우수한 위험/보상 비율.
4. 리스크: 모델이 과거 패턴에 과적합될 수 있음; 금리 상승, 변동성 급등 등 체제 변화 시 중간값 기반 임계값이 무효화될 수 있음.
시간 프레임: 단기
핵심 포인트:
- 70%+ 승률의 주간 롱 신호
- 거래당 평균 수익률 0.55%
- 월요일 시가에 매수하여 금요일 종가에 매도
- 주 중 약 32%만 거래
- SPY 전체 정확도 70.73%
QQQ - 롱 | 신뢰도: 0.70 | 심리: +0.45
발언자: u/Expert_CBCD
논지:
1. 사실: QQQ 모델 승률 69.13%(전략1), 전략2 거래당 평균 수익률 0.68%, 누적 수익 153.68% 대 기준 187.13%.
2. 연결고리: QQQ의 높은 실현 최대 이익 잠재력(2.75%)은 모델이 강한 방향성 주간을 포착함을 시사합니다.
3. 결론: 동일한 주간 신호 로직 적용
점수15
댓글24
추천 %86%
▶ 전체 게시글 텍스트
Hello everyone!
I'd like to share the results of a model I've been working on where we attempt to predict whether a stock will beat its median high, relative to the Monday open. I won't reveal the variables I used (other than it's a handful - less than 10) but I will discuss the parameters I use and the results across numerous ETFs and some equities.
To restate, the target variable was whether this week's high would surpass the median high relative to the Monday open. To avoid any data leakage, the median value used was derived from the training data. The model uses a rolling a 10 year/1 month train-test period (starting 2005) - anecdotally I find the 1 month rolling period to be superior to using something like a 10 yea/1 year period. For accuracy criteria I only look at signals where the probability is greater than 60% or less than 40%.
There's not much more to it than that - but I'm happy to answer any questions should there be any.
For the results, let's start with SPY.
You'll see the results in the table below. Strategy 1 is where we buy at Monday open and sell the moment the median high (or hurdle) is hit. Strategy 2, we still buy at Monday open but hold until the end of the week and sell at Friday close. Baseline here refers to buying every week at Monday open and selling when the hurdle is hit.
|Metric (SPY)|**Strategy 1**|**Strategy 2**|**Baseline**|
|:-|:-|:-|:-|
|**Total Traded Mondays**|171|171|539|
|**Model Win Rate (Hits/Hurdle)**|70.18%|57.89%|49.72%|
|**Average Return/Trade**|0.26%|0.55%|0.14%|
|**Avg Max Profit Potential/Week**|2.15%|2.15%|1.35%|
|**Cumulative Profit**|54.02%|142.50%|109.52%|
|**Average Hurdle Imposed**|0.93%|0.93%|0.96%|
As you can see our model performs quite impressively on SPY. Unsurprisingly, since we are using the median, baseline accuracy is about 50% and we surpass that with an accuracy of 70% of hitting that hurdle. In the buy/hold strategy our win rate is 59.89% with an avg return of 0.55% (28.6% annualized) and a significantly higher maximum potential profit (2.15% vs. 1.35%). It's also fairly selective as well only giving a signal 32% of all active weeks.
When looking to see whether probabilities less than 40% accurately signal that SPY won't hit its median hurdle, we see an impressive 71.34% accuracy there for a **total blended accuracy of 70.73%.**
Perhaps unsurprisingly this genealizes across other ETFs such as QQQ (blended accuracy: 65.27%), DIA (blended accuracy: 66.87%) and even IWM (blended accuracy: 67.09%; results for all three below)
|Metric (QQQ)|**Strategy 1**|**Strategy 2**|**Baseline**|
|:-|:-|:-|:-|
|**Total Traded Mondays**|149|149|539|
|**Model Win Rate (Hits/Hurdle)**|69.13%|57.05%|53.99%|
|**Average Return/Trade**|0.28%|0.68%|0.21%|
|**Avg Max Profit Potential/Week**|2.75%|2.75%|1.80%|
|**Cumulative Profit**|48.05%|153.68%|187.13%|
|**Average Hurdle Imposed**|1.25%|1.25%|1.25%|
|Metric (DIA)|**Strategy 1**|**Strategy 2**|**Baseline**|
|:-|:-|:-|:-|
|**Total Traded Mondays**|142|142|539|
|**Model Win Rate (Hits/Hurdle)**|72.54%|61.97%|52.13%|
|**Average Return/Trade**|0.28%|0.62%|0.16%|
|**Avg Max Profit Potential/Week**|2.18%|2.18%|1.32%|
|**Cumulative Profit**|45.50%|126.68%|122.77%|
|**Average Hurdle Imposed**|0.95%|0.95%|0.96%|
|Metric (IWM)|**Strategy 1**|**Strategy 2**|**Baseline**|
|:-|:-|:-|:-|
|**Total Traded Mondays**|145|145|539|
|**Model Win Rate (Hits/Hurdle)**|68.28%|53.10%|51.76%|
|**Average Return/Trade**|0.28%|0.41%|0.09%|
|**Avg Max Profit Potential/Week**|2.72%|2.72%|1.87%|
|**Cumulative Profit**|46.94%|64.63%|48.44%|
|**Average Hurdle Imposed**|1.33%|1.33%|1.35%|
On non-ETF equities or commodity ETFs it also tends to show relatively good accuracy on the positive side (probability > 60% - not so much on the short side). For example you'll see GOOG and USO below.
|Metric (GOOG)|**Strategy 1**|**Strategy 2**|**Baseline**|
|:-|:-|:-|:-|
|**Total Traded Mondays**|90|90|539|
|**Model Win Rate (Hits/Hurdle)**|67.78%|55.56%|55.47%|
|**Average Return/Trade**|0.39%|0.66%|0.37%|
|**Avg Max Profit Potential/Week**|3.56%|3.56%|2.64%|
|**Cumulative Profit**|36.68%|67.75%|541.97%|
|**Average Hurdle Imposed**|1.77%|1.77%|1.77%|
|Metric (USO)|Strategy 1|Strategy 2|Baseline|
|:-|:-|:-|:-|
|**Total Traded Mondays**|91|91|480|
|**Model Win Rate (Hits/Hurdle)**|69.23%|63.74%|52.50%|
|**Average Return/Trade**|0.83%|0.98%|0.08%|
|**Avg Max Profit Potential/Week**|4.77%|4.77%|3.07%|
|**Cumulative Profit**|107.28%|102.80%|22.46%|
|**Average Hurdle Imposed**|2.10%|2.10%|2.15%|
Well those are my results! i'd love to hear what people think; I'm quite happy with the model, but perhaps it's not as impressive as I think it is. With respect to a trading strategy, I'm still trying to figure that out. I tried a multi-ticker approach using a SP100 universe, but that didn't seem to work particularly well. I'd love to hear thoughts regarding that as well, should there be any.
모델은 확률 >60%일 때 승률 70.18%(SPY), 거래당 평균 수익 0.55%(연율 28.6%)를 기록함(기준치 49.72%, 0.14% 대비). 모델의 선택성(전체 주의 32%만 신호 발생)과 70% 이상의 정확도는 월요일 시가에 체계적인 주간 롱 바이어스를 형성함. 모델 확률 >60%일 때 월요일 시가에 SPY 매수; 금요일 종가까지 보유(전략 2)하여 우수한 위험 대비 수익 달성. 모델이 과거 패턴에 과적합될 수 있음; 체제 변화(예: 금리 상승, 변동성 급증)는 중간값 기반 임계값을 무효화할 수 있음.
QQQ에서 모델 승률 69.13%(전략 1), 전략 2의 거래당 평균 수익 0.68%, 누적 수익 153.68%(기준치 187.13% 대비). QQQ의 높은 실현 최대 수익 잠재력(2.75%)은 모델이 강한 방향성 주간을 포착함을 시사함. 기술주 중심 포트폴리오 노출을 위해 QQQ에 동일한 주간 신호 로직 적용. QQQ의 높은 변동성은 낙폭을 키울 수 있으나, 모델은 거래 빈도를 줄여 위험을 감소시킴.
DIA에서 72.54%의 최고 승률(전략 1), 전략 2 평균 수익 0.62%, 누적 126.68%. 블루칩 지수는 테스트된 ETF 중 가장 강력한 모델 예측 신뢰도를 보여줌. DIA 주간 롱 신호는 중간 고가 도달에 대해 가장 높은 확신도를 제공함. 낮은 평균 허들(0.95%)은 더 작은 목표치를 의미함; 모델은 저변동성 체제에서 효과가 떨어질 수 있음.
IWM 승률 68.28%, 전략 2 평균 수익 0.41%, 누적 64.63%로 기준치(48.44%)를 상회함. 소형주 지수는 절대 수익률 면에서 SPY보다 저조하지만 여전히 모델 신호의 이점을 보여줌. 다각화를 위해 IWM 신호를 사용하되, 거래당 수익은 낮을 것으로 예상할 것. 숏 사이드에서의 승률은 더 낮음(표시되지 않음); 소형주는 체제 변화에 더 취약함.
GOOG 승률 67.78%, 전략2 평균 수익률 0.66%, 누적 67.75%이나 기준 누적 541.97%(복리 효과로 인해 오해의 소지 있음). 단일 종목 모델은 여전히 신호 우위를 보이나, 기준 매수 후 보유가 누적 모델을 크게 앞질렀는데 이는 모델이 90주만 거래한 반면 기준은 539주이기 때문. GOOG 신호를 전술적 주간 롱에 활용하되, 장기 보유가 더 우수했음을 인지할 것. 단일 종목 고유 위험; 거래 횟수 차이로 인한 기준 비교의 한계; 모델이 장기 추세를 포착하지 못할 수 있음.
USO에 대한 모델은 69.23% 승률(전략 1), 거래당 평균 수익 0.98%, 누적 수익 102.80%(기준치 22.46% 대비)를 기록함. 원자재 ETF는 바이앤홀드 허들 전략 대비 압도적인 성과를 보이며 강력한 모델 성능을 입증함. 확률 >60%일 때 USO 주간 롱 신호는 적당한 빈도로 높은 절대 수익을 창출함. 원유 변동성은 극심하며 평균 허들 2.10%는 큰 움직임이 필요함을 의미함; 모델이 추세 기간에 과적합될 수 있음.
This Reddit post, published June 25, 2026,
features u/Expert_CBCD
discussing SPY, QQQ, DIA, IWM, GOOG, USO.
6 trade ideas extracted by AI with direction and confidence scoring.