Indicator · Pine Script v6 · On the chart

MGC Asian-Range Break — Honest P&L

by Jitheandra98

This indicator builds the Asian session high and low, then records a London break of that range on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code206
Settings18inputs
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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

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

Entries require the range to fall between minimum and maximum point limits and, when enabled, to match a higher-timeframe EMA bias. Stops sit at the opposite Asian extreme or a fixed point distance, targets use a reward multiple, and open trades close at a set hour. Commission and slippage are deducted, and bars that touch both stop and target count as losses. Optional lines mark the range and trade levels. It simulates results and does not send orders.

Details

Published by

Jitheandra98 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Breakout, Sessions & time, Support & resistance, Screeners & dashboards

Markets

Gold

Timeframes

Any timeframe

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
Session timezonestringUTCtz
Asian start (h)int0aStart
Asian end / London start (h)int7aEnd
London entry cutoff (h)int12lEnd
Force-close hour (h)int21eodH
Stop = fixed pts (else opposite Asian extreme)boolfalseuseFixed
└ Fixed stop (pts)float8.0fixedPts
Target (R multiple)float1.5rMult
Min Asian range (pts) to tradefloat3.0minRange
Max Asian range (pts) to tradefloat40.0maxRange
Contractsint1contracts
$ per point (MGC=10)float10.0ptValue
Show all 18 settings
SettingTypeDefaultVariable
Commission $/sidefloat0.74commSide
Slippage (pts/side)float0.1slipPts
Draw Asian range + trade levelsbooltrueshowLines
HTF bias filter (long only if HTF up, short only if down)booltrueuseHTF
HTF timeframetimeframeDhtfTf
HTF EMA lengthint20htfEmaLen
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

IB / ORB Live Stats

by TamaraKGreen
46 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

ORB Pro - Research-Based ORB

by Mrshahidali420
16 stars

The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Pro - Research-Based ORB

ORB Algo | Flux Charts

by vaskosmihaylov
5 stars

This indicator calculates and visualizes Opening Range Breakout (ORB) zones directly on the price chart. Breakout signals are identified when the close or an EMA crosses the opening range boundary, with entry sensitivity managed by retest requirements. It mode

Indicator v6 BreakoutSessions & time
Updated 2 months ago · GPL-3.0 GitHub repository of ORB Algo | Flux Charts
575 stars

This indicator builds Market Profile Time Price Opportunity (TPO) structures across defined session timeframes directly on the main price chart. It visualizes the Point of Control (POC) and Value Area boundaries using dynamic box drawings. An integrated multi-

Indicator v5 Support & resistanceScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Market Profile with Screener
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers