For-Loop Vote Trailing Stop [MiesOnCharts]
Trend-following tool that combines two ideas: a multi-horizon momentum vote to decide the direction of the market, and an ATR-based ratcheting trailing stop to ride and eventually exit the move.
No README in this version.
Indicator
Outputs
| Output | Plot | Panel | Style |
|---|---|---|---|
vote_stop | line | overlay | 2 colors, width 2, colored by stop_color_idx |
stop_color_idx | data only | overlay | default |
vote_long_y | data only | overlay | default |
vote_short_y | data only | overlay | default |
vote_long_gate | data only | overlay | default |
vote_short_gate | data only | overlay | default |
Params
| Name | Default | Min | Max |
|---|---|---|---|
src_field | 4 | ||
a | 1 | 1 | |
b | 70 | 5 | |
thr_up | 0.6 | 0 | 1 |
thr_dn | -0.2 | -1 | 0 |
atr_len | 14 | 1 | |
atr_k | 1.75 | 0.5 |
Inputs
| Input | Source | Selection |
|---|---|---|
src | ohlcv | field hl2 |
high | ohlcv | field high |
low | ohlcv | field low |
close | ohlcv | field close |
Provenance
| ABI | wrun-2 |
|---|
| Version | Published | Note |
|---|---|---|
| 0.1.0 | Oct 22, 2026 |
| File | Size |
|---|---|
| om-package.json | 787 B |
| src/indicator.ts | 2.8 KiB |
| wrun/metadata.json | 3.8 KiB |
| wrun/module.wasm | 5.6 KiB |