BTC Strategy DSL Demo (DipBuyTP, Server CSV)
Top runs
Top 5 Equity Curves vs HODL
1) Paste strategy snippet
[strategy] name = DipBuyTP cash_buy = 100 # % of portfolio to buy each time cash_sell = 100 # % of portfolio to sell each time [variables] ret_minutes = 60 # add more like: 30,60,120 dip_pct = 1-10,20,50 take_profit_pct = 1-15,20 stop_loss_pct = null,1-5,10,15,20 ma_filter_n = null,100,200 [rules] BUY when RET({ret_minutes}) <= -{dip_pct}% AND (MA({ma_filter_n}) is NA OR PRICE > MA({ma_filter_n})) SELL when GAIN >= {take_profit_pct}% OR ({stop_loss_pct} is not NA AND GAIN <= -{stop_loss_pct}%)
Supported:
RET(n)
,
MA(n)
,
PRICE
,
GAIN
,
POSITION
,
AND/OR/NOT
, parentheses, and
is NA
/
is not NA
.
2) Data source: server CSV
The app will read
BTCUSDT_1m_365d.csv
from the same folder as this page. File is expected to update monthly on the 1st. Browser caching is allowed.
Fee (bps per side)
Slippage (bps per side)
Start Capital
$1,000 (fixed)
Max runs (safety)
Run
Completed:
0
/
0
Percent:
0%
Elapsed:
0:00
ETA:
—
Current combo:
—
Top 10 vs HODL
Debug