Strategy · Pine Script v6 · On the chart

Breakout Candle Strategy V24

by Arisamin

This strategy wraps a breakout candle system in a framework that handles position sizing, trade tracking and logging.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code951
Settings28inputs
LicenceNone stated
Last update10 months ago14 Dec 2025

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

Settings cover a gap zone block around midnight in the Prague time zone, the number of candles in an accumulation zone, a risk percentage per trade, two position portions with their own R targets, and a daily drawdown stop. It also offers a date range filter, a trade log table and CSV output. It relies on several imported libraries and allows up to three entries in one direction.

Details

Published by

Arisamin on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Breakout, Sessions & time

Markets

Forex

Timeframes

M15-H1

Risk Notes

  • The strategy can add several entries in the same direction

Topics

pinescripttrading

Settings

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

SettingTypeDefaultVariable
Enable Gap Zone BlockbooltrueenableGapZoneBlock
Defaults to FTMO time Zone (CET/CEST)stringEurope/PraguetradeServerTimeZone
Start Hour and Minuteint23gapZoneStartHour
gapZoneStartMinuteint55gapZoneStartMinute
End Hour and Minuteint0gapZoneEndHour
gapZoneEndMinuteint5gapZoneEndMinute
Num of candles in accumulation zoneint9accumulationCandlesCount
Account size per Pairint150000accountSizeForPair
Total Risk (%)float0.5totalRiskPercent
FVGB 'bigger' ratiofloat1fvgbBiggerRatio
Position 1 Portionfloat0pos1
Position 1 Rfloat0.3pos1R
Show all 28 settings
SettingTypeDefaultVariable
Position 2 Portionfloat1pos2
Position 2 Rfloat2pos2R
Maximum drawdown for the day threshold (%)float5stopTradingDayThreshold
Maximum trade cost threshold (%)float10thresholdExpanseRate
Type of trades to takestringBothtradesToTake
Lot Size Multiplier For Strategy Testerfloat1strategyTesterLotSizeMultiplier
Send alert on next candle closing anywayboolfalsedebugRunNow
Enable Backtesting Range FilteringboolfalseenableFilter
Start Datetimetimestamp("20 Jul 2025 00:00 +0300")fromDate
End Datetimetimestamp("20 Aug 2025 00:00 +0300")toDate
Test CodeboolfalseenableTestCode
Avg num of days in tradeint3_expectedTradeDurationInDays
Print Trade Log After Bar IndexboolfalseprintCsv
Selected Bar Index (see table on chart)int0selectedBarIndex
Print From Rowint-1fromRow
To Rowint-1toRow
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

106 stars

This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status

Strategy v4 Screeners & dashboardsBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 1St Bar GAP+BkOut Screener v2 by RM
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
39 stars

This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th

Strategy v6 BreakoutSessions & time Repaints
Updated 5 days ago · MIT GitHub repository of Futures Intraday Pro (ES/NQ) Strategy

Morning Scalp

by benso87
24 stars

This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in

Strategy v5 Sessions & timeBreakout
Updated 4 years ago · MPL-2.0 GitHub repository of Morning Scalp
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