1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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
Modified Asia Sweep draws session ranges, Asian swing points, market structure and break of structure lines. Position size can be set by a fixed USD risk per trade using the micro Nasdaq point value, or by a fixed contract count. An ATR stop loss option and a cutoff before session end are included. The author states the core entry and exit logic is removed from this sample.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Show Asian Session
bool
true
show_asian
Show London Session
bool
true
show_london
Show Asian Swing Points
bool
true
show_swing_points
Show Market Structure
bool
true
show_market_structure
Show Break of Structure
bool
true
show_bos
Asian Session Start Hour
int
22
asian_start_hour_input
Asian Session End Hour
int
3
asian_end_hour_input
London Session Start Hour
int
3
london_start_hour_input
London Session End Hour
int
8
london_end_hour_input
Session Timezone
string
America/New_York
session_timezone
Use ATR Multiplier for Stop Loss
bool
false
use_atr_sl
ATR Length
int
14
atr_length
Show all 24 settings
Setting
Type
Default
Variable
ATR Multiplier for Stop Loss
float
2.0
atr_multiplier
Minutes Before Session End to Stop New Trades
int
60
cutoff_minutes
Position Sizing Method
string
USD Risk
position_sizing_method
USD Risk Per Trade
float
100.0
usd_risk_per_trade
Fixed Number of Contracts
float
1.0
fixed_contracts
Point value (MNQ = $2/pt)
float
2.0
pointValue
Asian Session Color
color
color.red
asian_color
London Session Color
color
color.blue
london_color
Swing High Color
color
color.orange
swing_high_color
Swing Low Color
color
color.lime
swing_low_color
Break of Structure Color
color
color.orange
bos_color
Line Width
int
2
line_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.
This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths). It identifies entry setups during a defined intraday trading session window wh
This overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
Donald - AI Futures is a price-chart strategy that estimates inner and outer high-low zones and a smoothed close with rational quadratic kernel regression. It builds bullish and bearish momentum signals, optionally compares volume with a volume-weighted moving
P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for
This strategy plots on the XAUUSD price chart and looks for Smart Money Concepts entries on the fifteen-minute timeframe. It scores fair value gaps, order blocks, liquidity sweeps, break of structure, and change of character, plus EMA, RSI, MACD, and higher-ti
This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m