OPEN-SOURCE SCRIPT
AI MES Asian Session Strategy

How this script works:
The first 30 minutes after 6pm ET (orange shading) builds the opening range. Once locked in, two setups compete — whichever fires first wins and blocks the other for the session.
Breakout fires when price closes outside the range with above-average volume and RSI momentum confirming direction. Stop goes back inside the range, target is 1.5R.
Mean reversion fade fires when price tags a range extreme, RSI is overbought/oversold, and the close reversal bar closes back inside the range. Stop goes just beyond the extreme, target is the range midpoint. Volume threshold is lower here (0.8× average) because fades naturally happen on lighter volume.
Key things to tune in the backtest:
Max Range Size (default 20pts) — filters out nights where a news event blows the range wide open, making fades dangerous
RSI Overbought/Oversold thresholds — tighten these (e.g. 65/35) for fewer but higher quality fade signals
The small faded circles on the chart show when a fade condition was met but couldn't fire (trade limit reached or position already open) — useful for eyeballing missed setups
Run this on the 5-minute timeframe — the Asian session moves slowly enough that 3-minute adds noise without improving entry timing.
The first 30 minutes after 6pm ET (orange shading) builds the opening range. Once locked in, two setups compete — whichever fires first wins and blocks the other for the session.
Breakout fires when price closes outside the range with above-average volume and RSI momentum confirming direction. Stop goes back inside the range, target is 1.5R.
Mean reversion fade fires when price tags a range extreme, RSI is overbought/oversold, and the close reversal bar closes back inside the range. Stop goes just beyond the extreme, target is the range midpoint. Volume threshold is lower here (0.8× average) because fades naturally happen on lighter volume.
Key things to tune in the backtest:
Max Range Size (default 20pts) — filters out nights where a news event blows the range wide open, making fades dangerous
RSI Overbought/Oversold thresholds — tighten these (e.g. 65/35) for fewer but higher quality fade signals
The small faded circles on the chart show when a fade condition was met but couldn't fire (trade limit reached or position already open) — useful for eyeballing missed setups
Run this on the 5-minute timeframe — the Asian session moves slowly enough that 3-minute adds noise without improving entry timing.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。