3.14
Support and Resistance
PYTHON PLUGIN
Stocks
Technical
Description
Strategy 3.14: Trade at support/resistance levels with breakout detection
Strategy Logic
Strategy 3.14: Support and Resistance Levels.
Identify support (local min) and resistance (local max) levels
using rolling windows. Buy at support, sell at resistance.
Breakouts through resistance trigger strong buy; breakdowns
through support trigger strong sell.
Parameters
| Parameter | Default Value | Type |
|---|---|---|
| window | 20 | int |
| proximity_pct | 0.02 | float |
| n_levels | 3 | int |
Risk Configuration
| Risk Parameter | Value |
|---|---|
| Max Position Pct | 8.0% |
| Stop Loss Pct | 3.0% |
| Take Profit Pct | 6.0% |
| Max Drawdown Pct | 10.0% |