Skip to content

Choose an example

Each example is a complete TradeScript strategy with its rule explained. Begin with one instrument before moving to a portfolio.

Example What you learn
RSI with a trend filter Read your first script and change a threshold.
RSI mean reversion Open on a low RSI reading and exit on recovery.
Moving-average trend Compare two averages and write both directions.
Trend with stops and targets Add price protection to a long strategy.
Equal-weight portfolio Describe a target portfolio instead of entry signals.

Copy an example into a draft in the SharkSigma editor. Select the appropriate language, review diagnostics, and backtest with supported data before relying on its behaviour. Examples teach syntax and structure; they are not performance claims.

Writing Python? Start with the separate Python guide.