Trend-following long/short entries: higher-timeframe EMA stack for direction
No README in this version.
Indicator
Outputs
| Output | Plot | Panel | Style |
|---|
ema_fast | data only | overlay | default |
ema_mid | data only | overlay | default |
ema_slow | data only | overlay | default |
stop_level | data only | overlay | default |
target_level | data only | overlay | default |
g_bull | data only | overlay | default |
g_bear | data only | overlay | default |
g_arm_long | data only | overlay | default |
g_arm_short | data only | overlay | default |
g_buy | data only | overlay | default |
g_sell | data only | overlay | default |
g_exit_long | data only | overlay | default |
g_exit_short | data only | overlay | default |
adx_pre | data only | overlay | default |
atr_pct | data only | overlay | default |
exit_reason | data only | overlay | default |
last_r | data only | overlay | default |
pos_state | data only | overlay | default |
htf_rolls | data only | overlay | default |
cur_r | data only | overlay | default |
tf_ok | data only | overlay | default |
mfe_r | data only | overlay | default |
mae_r | data only | overlay | default |
giveback_r | data only | overlay | default |
bars_in_trade | data only | overlay | default |
stale | data only | overlay | default |
g_giveback | data only | overlay | default |
status_x | data only | overlay | default |
buy_mark | shape | overlay | color #16a34a, where g_buy |
sell_mark | shape | overlay | color #dc2626, where g_sell |
exit_long_mark | shape | overlay | color #f59e0b, where g_exit_long |
exit_short_mark | shape | overlay | color #f59e0b, where g_exit_short |
tag_long_y | data only | overlay | default |
tag_short_y | data only | overlay | default |
tag_exit_long_y | data only | overlay | default |
tag_exit_short_y | data only | overlay | default |
Labels
| Label | Kind | Where | Text | Style |
|---|
txt_long | text | y tag_long_y | tag_long | color #16a34a, size 11 |
txt_short | text | y tag_short_y | tag_short | color #dc2626, size 11 |
txt_exit_long | text | y tag_exit_long_y | tag_exit_long | color #f59e0b, size 11 |
txt_exit_short | text | y tag_exit_short_y | tag_exit_short | color #f59e0b, size 11 |
status | label | x status_x, y ema_fast | gates | color #94a3b8, size 11 |
Params
| Name | Default | Min | Max |
|---|
mode | 2 | | |
fast_len | 7 | 1 | 200 |
mid_len | 25 | 2 | 400 |
slow_len | 99 | 3 | 800 |
pullback_ref | 3 | | |
arm_expiry | 8 | 1 | 100 |
di_len | 14 | 1 | 100 |
adx_min | 25 | 0 | 100 |
adx_pre_bars | 6 | 1 | 100 |
adx_rise_bars | 3 | 1 | 100 |
use_di | 1 | 0 | 1 |
atr_len | 14 | 1 | 100 |
use_atr_band | 0 | 0 | 1 |
min_atr_pct | 0.15 | 0 | 50 |
max_atr_pct | 2 | 0 | 50 |
use_volume | 0 | 0 | 1 |
volume_len | 20 | 1 | 500 |
atr_stop_mult | 3 | 0.1 | 20 |
rr | 2 | 0.1 | 20 |
use_be | 1 | 0 | 1 |
be_trigger_r | 1 | 0.1 | 20 |
fee_pct_rt | 0.1 | 0 | 5 |
trail | 0 | | |
atr_trail_mult | 2 | 0.1 | 20 |
max_bars_in_trade | 0 | 0 | 5000 |
use_htf_flip_exit | 1 | 0 | 1 |
use_structure_exit | 0 | 0 | 1 |
stop_and_reverse | 0 | 0 | 1 |
alert_giveback | 0 | 0 | 1 |
Inputs
| Input | Source | Selection |
|---|
src | ohlcv | field close |
htf1 | ohlcv | field close, interval HOUR |
htf4 | ohlcv | field close, interval FOUR_HOURS |
high | ohlcv | field high |
low | ohlcv | field low |
volume | ohlcv | field volume |
bar_t | time | field bar_open_sec |
Provenance
| ABI | wrun-2 |
|---|
| Source | not published |
|---|
| Version | Published | Note |
|---|
| 0.1.1 | Nov 1, 2026 | |
| 0.1.0 | Nov 1, 2026 | |
| File | Size |
|---|
| om-package.json | 573 B |
| wrun/metadata.json | 14.8 KiB |
| wrun/module.wasm | 19.4 KiB |