feat: add time stop rule for stale positions

Sell position if held for TIME_STOP_HOURS (default 24h) with less than
TIME_STOP_MIN_GAIN_PCT (default +3%) gain. Frees up capital for
fresh momentum opportunities.

Priority: trailing stop (-10%) checked first, then time stop.
Both thresholds configurable via .env.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
joungmin
2026-02-28 10:23:32 +09:00
parent 83bd51117f
commit 0713fb1e11
3 changed files with 78 additions and 23 deletions

View File

@@ -1,2 +1,6 @@
ACCESS_KEY=
SECRET_KEY=
# 타임 스탑: N시간 경과 후 수익률 M% 미만이면 청산
TIME_STOP_HOURS=24
TIME_STOP_MIN_GAIN_PCT=3