INVITE-ONLY SCRIPT
20 SMA Break FLOW

This script is a full 20-SMA breakout + R-multiple playbook with context:
20 SMA Channel: Plots a 20-period SMA High and Low, fills the channel between them for a clear visual “belt” around price.
Breakout Entries:
Long: waits for a bar to close above the 20 SMA High, then arms that bar’s high as the trigger.
A long entry signal prints when a later bar’s close is above that trigger high.
Short: mirror logic using the 20 SMA Low and trigger low.
Stops & R-Multiples: On entry it auto-sets stop at the opposite end of the trigger bar, calculates 1R/2R/3R price levels, and plots those lines on the chart.
R Labels & Info Panel: Draws “SL / 1R / 2R / 3R” labels at entry, and a top-right panel showing:
Current R (live P&L in R)
Entry & SL prices
Max R reached
Drawdown from peak R
ONH/ONL: Tracks and plots the overnight high and low from 18:00–09:29 as horizontal reference lines into RTH.
SHA Trend Filter: Adds smoothed Heikin-Ashi background coloring and optional SHA candles as a directional/volatility filter.
Alerts:
Long/short entry alerts when the close breaks the trigger bar high/low
Target alerts when 1R, 2R, or 3R are hit for either direction.
20 SMA Channel: Plots a 20-period SMA High and Low, fills the channel between them for a clear visual “belt” around price.
Breakout Entries:
Long: waits for a bar to close above the 20 SMA High, then arms that bar’s high as the trigger.
A long entry signal prints when a later bar’s close is above that trigger high.
Short: mirror logic using the 20 SMA Low and trigger low.
Stops & R-Multiples: On entry it auto-sets stop at the opposite end of the trigger bar, calculates 1R/2R/3R price levels, and plots those lines on the chart.
R Labels & Info Panel: Draws “SL / 1R / 2R / 3R” labels at entry, and a top-right panel showing:
Current R (live P&L in R)
Entry & SL prices
Max R reached
Drawdown from peak R
ONH/ONL: Tracks and plots the overnight high and low from 18:00–09:29 as horizontal reference lines into RTH.
SHA Trend Filter: Adds smoothed Heikin-Ashi background coloring and optional SHA candles as a directional/volatility filter.
Alerts:
Long/short entry alerts when the close breaks the trigger bar high/low
Target alerts when 1R, 2R, or 3R are hit for either direction.
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系csylver133futures。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
To use this script email me: calvin.sylver@gmail.com
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
仅限邀请脚本
只有作者授权的用户才能访问此脚本。您需要申请并获得使用许可。通常情况下,付款后即可获得许可。更多详情,请按照下方作者的说明操作,或直接联系csylver133futures。
TradingView不建议您付费购买或使用任何脚本,除非您完全信任其作者并了解其工作原理。您也可以在我们的社区脚本找到免费的开源替代方案。
作者的说明
To use this script email me: calvin.sylver@gmail.com
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。