Long, short or stand aside — trend signals gated by perp funding and momentum.
No README in this version.
Indicator
Outputs
| Output | Plot | Panel | Style |
|---|
cloud_top | line | overlay | color #33415544, width 1 |
cloud_bot | line | overlay | color #33415544, width 1 |
trend_state | data only | overlay | default |
resistance | line | overlay | color #ef4444, width 1 |
support | line | overlay | color #22c55e, width 1 |
stop_level | line | overlay | color #f97316, width 1 |
target_level | line | overlay | color #14b8a6, width 1 |
call | data only | overlay | default |
why | data only | overlay | default |
rsi_dir | data only | overlay | default |
fund_pct | data only | overlay | default |
with_fund | data only | overlay | default |
adx_pre | data only | overlay | default |
pos_state | data only | overlay | default |
cur_r | data only | overlay | default |
mfe_r | data only | overlay | default |
g_long | data only | overlay | default |
g_short | data only | overlay | default |
g_exit | data only | overlay | default |
long_mark | shape | overlay | color #16a34a, where g_long |
short_mark | shape | overlay | color #dc2626, where g_short |
exit_mark | shape | overlay | color #f59e0b, where g_exit |
tag_y | data only | overlay | default |
hud_x | data only | overlay | default |
Labels
| Label | Kind | Where | Text | Style |
|---|
tag_txt | text | y tag_y | tag | color #e2e8f0, size 11 |
status | label | x hud_x, y cloud_top | hud | color #94a3b8, size 11 |
Params
| Name | Default | Min | Max |
|---|
htf | 0 | | |
fast_len | 7 | 1 | 200 |
mid_len | 25 | 2 | 400 |
slow_len | 99 | 3 | 800 |
atr_len | 14 | 2 | 100 |
band_mult | 4 | 3 | 12 |
di_len | 14 | 2 | 100 |
adx_min | 25 | 0 | 100 |
adx_pre_bars | 6 | 1 | 100 |
use_funding_gate | 1 | 0 | 1 |
fund_extreme_pct | 0.05 | 0.005 | 1 |
use_rsi_gate | 1 | 0 | 1 |
rsi_len | 14 | 2 | 100 |
rsi_min | 60 | 0 | 100 |
atr_stop_mult | 3 | 0.5 | 20 |
rr | 2 | 0.5 | 20 |
show_levels | 1 | 0 | 1 |
sr_lookback | 50 | 5 | 500 |
Inputs
| Input | Source | Selection |
|---|
src | ohlcv | field close |
htf1 | ohlcv | field close, interval HOUR |
htf4 | ohlcv | field close, interval FOUR_HOURS |
htfd | ohlcv | field close, interval DAY |
fund | funding | field rate_close |
high | ohlcv | field high |
low | ohlcv | field low |
bar_t | time | field bar_open_sec |
Provenance
| ABI | wrun-2 |
|---|
| Source | not published |
|---|
| Version | Published | Note |
|---|
| 0.1.0 | Nov 2, 2026 | |
| File | Size |
|---|
| om-package.json | 436 B |
| wrun/metadata.json | 10.7 KiB |
| wrun/module.wasm | 18.0 KiB |