Examples
תוכן זה אינו זמין עדיין בשפה שלך.
Six complete, runnable RaamCode strategies. Each one is annotated end to end — paste, read, then tune.
| Strategy | Pattern | Concepts shown |
|---|---|---|
| Buy and Hold | Minimal | The simplest valid strategy. |
| MA Cross | Trend-following | Two indicators, crossover signals, stop loss + take profit. |
| RSI Mean Reversion | Mean reversion | Single oscillator, threshold crossings, f-string reasons. |
| Bollinger Bounce | Mean reversion + state | Composed indicator, persistent state, partial-exit alternatives. |
| SPY-Filtered Entries | Multi-symbol filter | Data feed, regime gating, Compounding sizing. |
| Rolling Channel Breakout | Session breakout | Persistent-state lists and dicts, for-loops, helper-method index writes. |
How to use them
- Copy the full source into the strategy editor.
- Backtest with default parameters first — confirms it compiles and runs.
- Tune by clicking Optimize — every
Param()becomes an optimizer dimension automatically. - Read the walkthrough below each strategy — explains every nontrivial line and the design choices behind it.
The examples are intentionally small. They are starting points, not production strategies. Each one is a launchpad for ideas.