Risk Management
Position sizing, stop-loss and trailing-stop methods, risk/reward, trading costs, prop-firm rules and the account-level limits that keep automated trading survivable.
Risk
Position Sizing Methods: Fixed Lots, Fixed Risk, Volatility and Kelly
How much to trade on each position: fixed lots, fixed fractional risk, ATR-based volatility sizing and the Kelly criterion - with formulas, examples and how bots should round and cap sizes.
Risk
Prop-Firm Rules for Trading Bots: Daily Loss, Max Drawdown and Restrictions
How common prop-firm rules - daily loss limits, maximum drawdown, trailing drawdown, news and strategy restrictions - interact with automated trading, and how to build a bot that respects them.
Risk
Risk/Reward Ratio and Expectancy: The Maths Behind Every Strategy
Why a 1:3 risk/reward is not automatically better than 1:1: how win rate and payoff combine into expectancy, break-even win rates, the effect of costs, and how to use R-multiples in practice.
Risk
Stop-Loss Methods: Fixed, Volatility, Structure and Time Stops
Where to put a stop loss: fixed distance, ATR-based, below structure, indicator-based and time stops. How each affects win rate and size, and the implementation rules every trading bot needs.
Risk
Trading Costs Explained: Spread, Commission, Swap and Slippage
The four costs that every trading bot pays - spread, commission, swap and slippage - how to measure them in R, how they change by time of day, and how to model them honestly in backtests.
Risk
Trailing Stop Strategies: ATR, Chandelier, Structure and Break-Even Rules
How trailing stops lock in profits: fixed, ATR and Chandelier trails, structure trails, indicator trails and break-even moves. Their trade-offs, how to test them and how bots should implement them.