pine-script-trailing-stop-requires-ratchet-pattern
ATR-based trailing stops in Pine Script must use math.max(nz(dynamicSL[1]), newStopLevel) to prevent the stop from moving backward when price retraces. Without the ratchet, the trailing stop recalculates on every bar and can move against the trade, defeating its purpose entirely.
Related
- hook-regex-cmd-start-not-backup-anchors-required
- pine-script-alertcondition-invalid-in-strategy-mode
- settings-local-json-missing-edit-write-wildcards
- dual-claude-json-config-parity-required-for-root-sessions
- desktop-connector-migration-gate-add-before-remove
- pine-script-request-security-nonrepainting-params
- pine-script-strategy-mode-four-critical-bugs
- pine-script-negative-rr-at-default-fixed-pct-params
- pine-script-trailing-stop-backward-movement-without-ratchet