3.12
Two Moving Averages
JSON / DSL
Stocks
Trend
Description
Strategy 3.12: Two Moving Averages crossover. Buy when fast MA crosses above slow MA, sell on cross below. Classic trend-following approach.
DSL Expression
IF(CROSS_ABOVE(SMA(close, 50), SMA(close, 200)), BUY, IF(CROSS_BELOW(SMA(close, 50), SMA(close, 200)), SELL, HOLD))
Risk Configuration
| Risk Parameter | Value |
|---|---|
| Max Position Pct | 15.0% |
| Stop Loss Pct | 4.0% |
| Take Profit Pct | 12.0% |
| Max Drawdown Pct | 20.0% |