OPEN-SOURCE SCRIPT
已更新 AI MES Structure Break Strategy

Entry checklist — all 5 must be true simultaneously:
Price breaks above/below the last confirmed 3-bar pivot high/low
15-minute EMA (21) confirms the direction (HTF bias)
RSI above/below 50 (momentum not exhausted)
Volume above 1.3× its 20-bar average
Inside a session window with trades remaining
What you'll see on the chart:
Yellow line = 15-minute EMA bias anchor
Purple line = VWAP
Red/green dots = last confirmed pivot high/low levels
Blue shading = morning session, purple shading = afternoon session
Dashed red/green lines = active stop and target for open trade
Triangle arrows = entry signals
First things to do in the Strategy Tester:
Run it on MES1! at 3-minute timeframe going back 3–6 months
Check the Avg Win / Avg Loss ratio — it should be above 1.4 given the 1.5R target
Try pivotLen at 2, 3, and 4 to see which captures structure cleanly without being too tight
Toggle morning vs afternoon sessions separately to see which window performs better for your trading hours
Price breaks above/below the last confirmed 3-bar pivot high/low
15-minute EMA (21) confirms the direction (HTF bias)
RSI above/below 50 (momentum not exhausted)
Volume above 1.3× its 20-bar average
Inside a session window with trades remaining
What you'll see on the chart:
Yellow line = 15-minute EMA bias anchor
Purple line = VWAP
Red/green dots = last confirmed pivot high/low levels
Blue shading = morning session, purple shading = afternoon session
Dashed red/green lines = active stop and target for open trade
Triangle arrows = entry signals
First things to do in the Strategy Tester:
Run it on MES1! at 3-minute timeframe going back 3–6 months
Check the Avg Win / Avg Loss ratio — it should be above 1.4 given the 1.5R target
Try pivotLen at 2, 3, and 4 to see which captures structure cleanly without being too tight
Toggle morning vs afternoon sessions separately to see which window performs better for your trading hours
發行說明
How it all fits together:Entry checklist — all 5 must be true simultaneously:
Price breaks above/below the last confirmed 3-bar pivot high/low
15-minute EMA (21) confirms the direction (HTF bias)
RSI above/below 50 (momentum not exhausted)
Volume above 1.3× its 20-bar average
Inside a session window with trades remaining
What you'll see on the chart:
Yellow line = 15-minute EMA bias anchor
Purple line = VWAP
Red/green dots = last confirmed pivot high/low levels
Blue shading = morning session, purple shading = afternoon session
Dashed red/green lines = active stop and target for open trade
Triangle arrows = entry signals
First things to do in the Strategy Tester:
Run it on MES1! at 3-minute timeframe going back 3–6 months
Check the Avg Win / Avg Loss ratio — it should be above 1.4 given the 1.5R target
Try pivotLen at 2, 3, and 4 to see which captures structure cleanly without being too tight
Toggle morning vs afternoon sessions separately to see which window performs better for your trading hours
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。