OPEN-SOURCE SCRIPT
ICT OB/FVG + Envelope (SMA Alertable) - 엔벨로프 신호 추가

Here’s a full explanation of the strategy:
Primary Entry
Buy when price breaks above the 40-day moving average (MA40).
Envelope Scale-Out and Re-Entry
After price breaks above the +15% envelope, add to your position.
Sell 30% of your position when price breaks above the +30% envelope.
If price fails to break +30% but instead finds support at +15%, add again.
Likewise, after adding at +30%, if price pulls back to +30% and holds, add once more.
Adjust entries and exits around each envelope band.
Trend Baseline Logic
The 40-day MA is your primary trend line.
Once price is above MA40, the +15% envelope becomes your new “mini-baseline”—you only trade as long as price respects it.
Exit 100% of your position when price reaches the +100% envelope, or if it falls back below that level.
Trend Confirmation
All of this only applies in a “properly aligned” uptrend (MA40 > MA200).
A golden cross of the 40-day MA above the 200-day MA is a very strong entry filter.
Order-Block Entries
Bullish OB Low: if price touches a Bullish Order-Block Low above MA40, treat it as a pullback and buy.
Bearish OB High: if price touches a Bearish Order-Block High above MA40, treat it as a pullback-and-rebound and buy.
Stop-Loss
Stop out if price closes 3–5% below the 40-day MA.
Lower-Band “Bounce” Buys
If price touches the –15% envelope and finds support, buy 10% of your target size—exit all if it breaks below.
If price touches the –30% envelope and holds, buy again—exit all on a breach.
In short, this is a “band-play” strategy within a bullish trend, using MA40 → +15% envelope → +30% envelope → +45% envelope as your stepping-stone baselines, with order-block and lower-band bounces as additional entries. Good luck!
Primary Entry
Buy when price breaks above the 40-day moving average (MA40).
Envelope Scale-Out and Re-Entry
After price breaks above the +15% envelope, add to your position.
Sell 30% of your position when price breaks above the +30% envelope.
If price fails to break +30% but instead finds support at +15%, add again.
Likewise, after adding at +30%, if price pulls back to +30% and holds, add once more.
Adjust entries and exits around each envelope band.
Trend Baseline Logic
The 40-day MA is your primary trend line.
Once price is above MA40, the +15% envelope becomes your new “mini-baseline”—you only trade as long as price respects it.
Exit 100% of your position when price reaches the +100% envelope, or if it falls back below that level.
Trend Confirmation
All of this only applies in a “properly aligned” uptrend (MA40 > MA200).
A golden cross of the 40-day MA above the 200-day MA is a very strong entry filter.
Order-Block Entries
Bullish OB Low: if price touches a Bullish Order-Block Low above MA40, treat it as a pullback and buy.
Bearish OB High: if price touches a Bearish Order-Block High above MA40, treat it as a pullback-and-rebound and buy.
Stop-Loss
Stop out if price closes 3–5% below the 40-day MA.
Lower-Band “Bounce” Buys
If price touches the –15% envelope and finds support, buy 10% of your target size—exit all if it breaks below.
If price touches the –30% envelope and holds, buy again—exit all on a breach.
In short, this is a “band-play” strategy within a bullish trend, using MA40 → +15% envelope → +30% envelope → +45% envelope as your stepping-stone baselines, with order-block and lower-band bounces as additional entries. Good luck!
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.