Tema — "Automated BTC Investment" (TEMA/LSMA + ATR trail) long-only backtest
Port Pine v5 strategie "Automated Bitcoin (BTC) Investment Strategy"
nad našimi OHLC daty (underlying_hourly_ohlc).
Dvě trendové linie (default TEMA(25) & LSMA(100)),
custom ATR trailing stop (3.5 × ATR(8), max(50)) a klasické
TP1 +15 % / 20 % qty, TP2 +30 % / 20 % qty, SL −5 %.
Vstup = crossover(trend1, trend2) AND Trailhigh < close.
Výstup zbytku = close < Trailhigh OR crossunder OR SL.
Vstup/výstup fillne na open následující svíčky po signálu (Pine default);
TP1/TP2 jako limit ordery intrabar.