본문으로 건너뛰기
geonulab
← All patterns

Pattern spec · trend-accel

Trend01
Reference impl

Acceleration trend follow

Slope + acceleration edge on regime filter

추세 구간에서 slope·acceleration edge가 flip할 때 진입. HTF regime과 정렬된 구간만 허용.

Inputs

price · atr · htf_state

System concern

Build · Execute

Failure modes

  • Whipsaw in range
  • Stale entry after gap

Pseudocode · excerpt

long_ready  = htf_aligned AND accel_up_confirmed
long_entry  = long_ready AND NOT long_ready[-1]
sl          = entry - sl_atr_mult * atr
tp1         = partial at tp1_atr · trail remainder

Parity: Sub-bar SL/TP order matters · edge on ready flip only

§ Full spec sections

Reference impl

Starter Repo의 HMA strategy가 reference implementation. slope + acceleration edge on HTF regime filter.

accel_up_confirmed = LOWEST(acceleration, entry_confirm_n) > 0
long_ready = long_regime AND accel_up_confirmed
long_entry = long_ready AND NOT long_ready[t-1]