Strategy · Pine Script v6 · On the chart

[TradersPost] Sick Sigma

by TradersPost

Sick Sigma detects extreme statistical standard deviation moves (sigma events) to execute trades directly on the main price chart.

View on GitHub

Repaints

GitHub stars218on the repository
Pine versionv6current
Lines of code762
Settings40inputs
LicenceNone stated
Last update3 months ago23 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

The strategy supports both momentum and mean-reversion trading styles. Traders can configure calculation lookback periods, sigma thresholds, maximum sigma bounds, and exit parameters like bar timeouts, mean crosses, or band offsets. Stop loss management is disabled by default. The script updates on every tick, which causes live signals to repaint before bar close.

Details

Published by

TradersPost on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Volatility & bands, Mean reversion, Trend

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)
  • The strategy enters trades without a stop loss

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Sigma Thresholdfloat3.0i_sigma_threshold
└ Timeframetimeframei_sigma_timeframe
└ Max Sigmafloat10.0i_max_sigma
└ Number of Bandsint5i_num_bands
Calculation ModestringAll Historyi_calc_mode
└ Lookback Periodint20i_lookback_period
Exit ModestringPrice Crosses Meani_exit_mode
└ Exit After Barsint10i_exit_bars
Use Band Exitbooltruei_use_band_exit
i_exit_band_offsetfloat1.0i_exit_band_offset
Default UnitstringPnLi_global_unit
ATR Periodint14i_atr_period
Show all 40 settings
SettingTypeDefaultVariable
TimezonestringAmerica/New_Yorki_global_tz
Trigger PricestringCurrenti_trigger_price
Use Date Rangeboolfalsei_use_backtest_range
i_backtest_presetstringCustomi_backtest_preset
Start Datetimetimestamp('01 Jan 2020 00:00 +0000')i_backtest_start
End Datetimetimestamp('31 Dec 2030 23:59 +0000')i_backtest_end
DirectionstringBothi_direction
i_order_typestringMarketi_order_type
i_color_entrycolorcolor.grayi_color_entry
Trade StylestringMomentumi_trade_style
└ Limit Offsetfloat5i_limit_offset
i_limit_offset_unitstringTicksi_limit_offset_unit
Position ModestringSinglei_position_mode
Use Stop Lossboolfalsei_use_sl
i_sl_valuefloat200i_sl_value
i_sl_unitstringGlobali_sl_unit
i_color_slcolorcolor.redi_color_sl
└ Trailing ›boolfalsei_use_trail
Triggerfloat500i_trail_activation
Offsetfloat250i_trail_offset
└ BE ›boolfalsei_use_breakeven
Triggerfloat1000i_breakeven_activation
Lock Infloat500i_breakeven_profit
i_color_be_trigcolor#ff9900bai_color_be_trig
Use Take Profitboolfalsei_use_tp
i_tp_valuefloat200i_tp_value
i_tp_unitstringGlobali_tp_unit
i_color_tpcolorcolor.greeni_color_tp
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

330 stars

This strategy calculates Bollinger Bands and Aroon oscillator values to identify mean-reversion opportunities. It enters a long position using full equity when the closing price crosses below the lower Bollinger Band while Aroon Up remains above a user-specifi

Strategy v5 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger bands + Aroon [Alorse]

This strategy combines Volume Weighted Moving Average (VWMA) Bollinger Bands with 200-period and 50-period Exponential Moving Averages (EMAs). It identifies long trade opportunities when the 50 EMA is above the 200 EMA and price falls to or below the lower Fib

Strategy v4 TrendVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Band with Fib Golden Ratio (0.618)

Bollinger Bands Strategy

by cklose2000
105 stars

This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Bollinger Bands Strategy

Keltner Channel Trend - Eterna

by EternaHybridExchange
9 stars

This strategy plots a Keltner channel from an EMA basis and ATR bands on the price chart. It enters long when price crosses back above the lower band while trading above a slower trend EMA, and short when price crosses back below the upper band while below tha

Strategy v5 TrendVolatility & bands
Updated 7 months ago · MIT GitHub repository of Keltner Channel Trend - Eterna
285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy
257 stars

This overlay strategy targets one-minute ES futures and plots volume-weighted moving-average bands from the open, scaled by a standard-deviation multiple, plus a slower band from ten-minute opens. A higher-timeframe exponential moving average can filter trades

Strategy v6 Moving averagesVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of ES - Futures 1M No Repaint

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers