TradingByDesign
Active
Quantitative Analysis & Custom Indicators

Precision Tools for Systematic Traders

We build custom ThinkScript studies, ATR volatility filters, and high-probability scanning frameworks engineered for mechanical execution and disciplined risk management.

Custom Indicators

ATR trailing stops, adaptive envelopes, and volatility filters built for Thinkorswim.

Market Scanners

High-momentum breakout filters and algorithmic watchlist queries for real-time charting.

Risk Engineering

Position sizing logic and mechanical stop frameworks designed to eliminate emotional trading.

ThinkScript_ATR_TrailingStop.ts
TBD v1.0

# TradingByDesign ATR Ratchet Stop Study

input length = 14;

input factor = 3.0;

def atr = MovingAverage(AverageType.WILDERS, TrueRange(high, close, low), length);

plot TrailingStop = Highest(high, 1) - (atr * factor);

TrailingStop.SetDefaultColor(Color.YELLOW);