Strategy · Pine Script v5 · On the chart

ORION: Hybrid Strategy

by eddiebelaval

This strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes.

View on GitHub

GitHub stars7on the repository
Pine versionv5runs as is
Lines of code263
Settings28inputs
LicenceNone stated
Last update3 months ago24 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

Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger upon breakouts from active boxes, while position sizing is calculated using risk per trade with target exits derived from a fixed risk-to-reward ratio. It also features automatic Friday closing and trade cooldown periods. All boxes, trades, and optional EMA lines are rendered directly on the price chart.

Details

Published by

eddiebelaval on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Volatility & bands, Breakout, Trend, Sessions & time

Markets

Forex

Timeframes

M15-H1, M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

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

SettingTypeDefaultVariable
Lookback Periodint15lookback
Box Width (ATR)float2.5atr_mult
Slope Tolerancefloat0.2slope_thresh
Cooldown (Bars)int5cooldown_bars
Max Box Duration (Bars)int45max_box_life
Use EMA Filterbooltrueuse_ema
EMA Lengthint150ema_len
Show EMA Line on Chartbooltrueshow_ema
Trading Sessionsession0600-2300trading_session
Force Close on Friday Night?booltrueforce_close_day
Force Close Hour (Friday)int22force_close_hour
Force Close Minuteint00force_close_min
Show all 28 settings
SettingTypeDefaultVariable
Skip Winter Holidaysboolfalseholiday_filter
Risk % Per Tradefloat0.8risk_per_trade
Risk : Reward Ratiofloat1.9reward_ratio
Detect Squeezebooltrueuse_gold
Show Standard Boxesbooltrueshow_gray
StdDev Lengthint20std_len
Squeeze Thresholdfloat0.6squeeze_th
Text SizestringNormaltxt_size_input
Squeeze Box Colorcolor#FFD700c_squeeze
Standard Box Colorcolorcolor.grayc_std
Active Trade Colorcolorcolor.bluec_active
Win Colorcolorcolor.greenc_win
Loss Colorcolorcolor.redc_loss
Box Transparencyint80bg_transp
Marker Widthint5marker_width
Connector Widthint2conn_width
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

257 stars

This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry

Strategy v6 Volatility & bandsSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of V1.6 ES - Futures 1M No Repaint
106 stars

This strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi

Strategy v5 Sessions & timeBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 50 Pips A Day Strategy - Kaspricci

均线突破交易系统

by tangly1024
76 stars

This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of 均线突破交易系统
53 stars

This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MPL-2.0 GitHub repository of BTCUSD 5M Optimized Strategy

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter
23 stars

This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy

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