3.11
Single Moving Average
JSON / DSL
Stocks
Trend
Description
Strategy 3.11: Single Moving Average. Buy when price crosses above SMA, sell when below. The simplest trend-following signal.
DSL Expression
IF(CROSS_ABOVE(close, SMA(close, 200)), BUY, IF(CROSS_BELOW(close, SMA(close, 200)), SELL, HOLD))
Risk Configuration
| Risk Parameter | Value |
|---|---|
| Max Position Pct | 15.0% |
| Stop Loss Pct | 5.0% |
| Take Profit Pct | 15.0% |
| Max Drawdown Pct | 20.0% |