DinexSpace | BTC — Hold only when price is above the 120-day average
Technical name: BTC Trend120 D1
Summary
Hold BTC when the daily close is above the 120-day moving average; stay out in USDT when it is below.
- Product: BINANCE:BTCUSDT Spot, D1 timeframe, no leverage.
Protocol rules
- SMA120 = average Close of 120 D1 candles (including the candle that just closed).
- MUA (BUY): D1 Close > SMA120 → 100% BTC.
- BÁN (SELL): D1 Close ≤ SMA120 → 0% BTC (hold USDT). No Core.
- In essence: returns close to HODL, but with only about half the drawdown.
Backtest results
| Period | Annual return | Max drawdown | Calmar | Worst 12 months | vs HODL | HODL: Annual return / drawdown | % of 12M windows beating HODL |
|---|---|---|---|---|---|---|---|
| TEST 2024-01 → 2026-08 | 27.0% | -29.1% | 0.93 | -22.8% | 1.11× | 24.1% / -53.0% | 45.0% |
| 2022-01 → 2026-08 | 31.0% | -29.1% | 1.06 | -22.8% | 2.14× | 11.3% / -66.9% | 36.4% |
The "gold 0%" scenario does not apply to this product (it contains no gold).
Setup on TradingView
Desktop
- Open the BINANCE:BTCUSDT chart and select the 1D timeframe (1 day).
- Open Pine Editor, delete the template content, paste your full DinexSpace Pine code → Save → Add to chart.
- Open the indicator's Settings → enter your actual balance (coin + USDT) and your total net deposits.
- In the "Hiển thị" (Display) section: choose Đầy đủ (máy tính) (Full, desktop) mode and turn each table on/off as needed.
Mobile
- The TradingView app cannot edit Pine: do steps 1–2 on a desktop first (the indicator is saved to your account).
- In the app: open the BINANCE:BTCUSDT chart → Indicators → My scripts → select the DinexSpace indicator.
- Settings → Gọn (điện thoại) (Compact, mobile) mode.
Notifications
The indicator sends a notification each time a D1 candle closes (07:00 Vietnam time). To create an alert: Alert → Condition: select the DinexSpace indicator → "Any alert() function call" → Create.
- Via the TradingView app (simplest): leave the "Mã DinexSpace Relay" (DinexSpace Relay code) field empty. You receive text notifications (status, price levels, the order to place) in the TradingView app/email.
- Via DinexSpace Relay: paste the "Mã DinexSpace Relay" (DinexSpace Relay code) (found in your DinexSpace account) into Settings. In the alert, enable Webhook and paste the webhook address shown in your DinexSpace account (webhooks require a paid TradingView plan). The indicator sends JSON
{"src":"DinexSpace","v":1,"key","user","prod","sig","act","qty","px","stop"}. - Quantities in notifications are calculated from the balance entered at the time the alert is created. Change the balance → create the alert again.
Daily routine
- After 07:00 Vietnam time (the D1 candle has just closed), open the chart or read the notification.
- Label/table shows GIỮ NGUYÊN (HOLD) → do nothing. Shows MUA/BÁN x (BUY/SELL x) → follow the order execution steps below.
Order execution
- MUA (BUY): place it right after the D1 candle closes (07:00 Vietnam time), as a market order or a limit order close to the price — do not wait for a pullback.
- BÁN (SELL): place a limit order about 0.25% above the 07:00 open price; if it is not filled after 4 hours, sell at market.
- Once filled → update the balance in the indicator's Settings so the next day's order is calculated correctly.
Rebalancing and adding capital
- Add capital at any time: update the balance → the indicator allocates immediately according to the current state (IN → 100% BTC, OUT → 0%).
- The indicator signals a rebalance when the balance deviates from the protocol weight by more than 1% of allocated capital.
Risks
- The backtest uses historical Binance data, with fees + slippage of 0.15%/trade (PAXG 0.25%). Future markets may differ.
- A trend-following protocol will have many small losing trades when the market moves sideways; returns come from a few large trend moves.
- The max drawdown in the results table may be exceeded in the future.
- Exchange risk, PAXG issuer risk, and the risk of you executing late or with an incorrect balance.
Disclaimer
This document is a backtest result on historical data, not investment advice. Past results do not guarantee future results. Cryptocurrencies and gold can fall sharply; you are solely responsible for your decisions and your account. DinexSpace does not hold funds and does not place orders on your behalf unless you configure the Relay service yourself.