Daily ATR Bonanza: Expected Moves - Tr33man Daily ATR Bonanza: Expected Moves
Overview 🤷♂️
The Daily ATR Bonanza script is a powerful trading tool designed to help traders visualize and understand potential price movements using the Average True Range (ATR). It provides daily and weekly ATR levels, historical statistics, and conditional probability analysis to give traders actionable insights. The script also plots the daily Keltner channel. This script is ideal for traders who want to gauge volatility, identify key levels, and make data-driven decisions.
b]Key Features:
📈 1. Daily and Weekly ATR Levels
🔵ATR Levels: The script calculates and displays ATR-based levels for the day and week. These levels are derived from the previous day's or week's close price and are adjusted using customizable multipliers (0.5x, 1x, and 1.5x by default).
🔵You can choose the number of ATR levels (1, 2, or 3) and adjust the multipliers to suit your trading strategy.
🌐 2. ATR Bands (Keltner Channels)
🔵The script includes an option to display ATR Bands, which are volatility-based envelopes around a moving average. These bands help identify overbought and oversold conditions.
🔵You can adjust the ATR multiplier and the length of the moving average used for the bands.
🧮 3. Historical Statistics and Conditional Probability
🔵 Historical Analysis: The script analyzes historical price movements to calculate the likelihood of closing at certain ATR levels.
🔵 Conditional Probability: This feature shows the probability of the price reaching specific ATR levels given the current market conditions. The conditional matches historical data by an open in the same opening ATR bucket, as well as the current price bucket having been visited in the historical case. Conditional probabilities are just statistics, and do not predict anything.
Data Table: 📚
🔵 Historical Close Probability: The percentage of days the price closed within each ATR level.
🔵 Conditional Close Probability: The likelihood of the price closing within each ATR level today.
❓ What is Conditional Probability? ❓
Conditional probability is a statistical measure that calculates the likelihood of an event occurring given that another event has already occurred. In this script, it is used to determine the probability of the price reaching specific ATR levels based on the current opening range as well as current ATR distance from the previous close.
For example:
If the market opens near the lower end of the first ATR level, the script calculates the likelihood of the price reaching the upper end of the first, second, or third ATR level.
This analysis is based on historical data, making it a powerful tool for understanding potential price movements.
🌟 Understanding the Levels
🔵Daily Levels: These are based on the previous day's close price and ATR. They are updated at the start of each new day.
🔵Weekly Levels: These are based on the previous week's close price and ATR. They are updated at the start of each new week.
🔵ATR Bands: These are dynamic levels that adjust with market volatility.
🔬 Analyze the Statistics (Daily only for now, no weekly yet)
🔵Use the interactive table to understand historical probabilities and conditional probabilities.
🔵Focus on the current opening range and the likelihood of reaching specific levels.
🧠 Make Trading Decisions
🔵Use the ATR levels and bands to identify key support and resistance levels.
🔵Use the conditional probability table to gauge the likelihood of reaching specific targets.
🔵Adjust your strategy based on the historical performance of the market.
Example Use Cases
1. Day Trading
Use the daily ATR levels to set intraday targets and stop-loss levels.
Monitor the conditional probability table to adjust your expectations based on the opening range.
2. Swing Trading
Use the weekly ATR levels to identify longer-term support and resistance levels.
3. Scalping
Use the ATR bands to identify overbought and oversold conditions.
Use the conditional probability table to quickly assess the likelihood of price movements.
Bandas e Canais
Zero Lag Trend Signals (MTF) + Sideways FilterThis script is a custom indicator for TradingView that combines two major components: the **Zero Lag Trend** (with MTF support) and a **Sideways Market Filter**. Let me break down the key features and functions of the script:
### Key Components:
1. **Zero Lag Trend Signals**:
- **Zero Lag Trend (ZLEMA)**: A smoothed moving average designed to minimize lag and give faster responses to price movements. This is used to determine the trend.
- **Trend Bands**: Upper and lower bands are derived from the ZLEMA value and adjusted by volatility (calculated using Average True Range or ATR).
- **Trend Direction**: The trend direction is determined by whether the price crosses over the upper or lower band of the ZLEMA, indicating bullish or bearish trends.
2. **Sideways Market Filter**:
- **RSI (Relative Strength Index)**: Measures the speed and change of price movements. It's used here to identify neutral or sideways market conditions when RSI is between 40 and 60.
- **ADX (Average Directional Index)**: Measures the strength of a trend. The script considers a sideways market when ADX is less than 25 and both DI+ and DI- are low.
- **Sideways Market Condition**: A sideways market is defined when the RSI is in the range of 40 to 60 and the ADX is below 25, indicating weak trends.
### Main Features:
1. **Sideways Market Indicators**:
- **Sideways Circles**: When the market is identified as "sideways" based on RSI and ADX conditions, a small circle is plotted either above or below the bars on the chart. The user can adjust the color of the circles via the indicator settings.
- **Sideways Market Filter**: This filter helps to determine when to stay out of trend-based signals, and its detection is visually marked by the circles.
2. **Zero Lag Trend (ZLEMA) Plot**:
- **ZLEMA**: The Zero Lag Exponential Moving Average is plotted as a baseline, and the direction of the trend is indicated by color changes. Green is used for bullish trends, and red is used for bearish trends.
- **Trend Bands**: The script calculates upper and lower bands around the ZLEMA using volatility, and these bands help identify areas of potential trend reversal.
3. **Trend Plotting**:
- **Trend Arrows**: When the trend crosses from bullish to bearish or vice versa, the script plots arrows ("▲" for bullish and "▼" for bearish) above or below the bars on the chart to indicate the signal.
- **Trend Entry Points**: Small arrows are plotted when an entry point is detected for a long (bullish) or short (bearish) position.
4. **Multi-Timeframe (MTF) Trend Signals**:
- The script includes multi-timeframe (MTF) analysis by checking the trend on different timeframes (5m, 15m, 60m, 240m, and 1D).
- A **data table** is displayed on the chart showing the trend status for each of these timeframes (Bullish or Bearish), helping the trader visualize the trend across multiple timeframes.
5. **Alerts**:
- **Alert Conditions**: Alerts are triggered when specific conditions are met, such as:
- Bullish or bearish trend crossover.
- Zero Lag Trend crossing the price.
- Trend change signals on any of the timeframes.
- Alerts for bullish and bearish entry signals based on the trend.
### Inputs for Customization:
- **Zero Lag Trend Parameters**: Length, multiplier for the band, and timeframes for MTF analysis (t1, t2, t3, t4, t5).
- **Color Customization**: Colors for bullish and bearish trends, as well as the fill colors for the bands and the sideways market circles.
- **Sideways Market Filter Parameters**: RSI length, ADX length, and options for showing sideways market circles.
- **Circle Customization**: You can adjust the size, color, and location (above or below bars) of the sideways market circles.
### Summary:
This indicator is a sophisticated tool that combines the **Zero Lag Trend** and **Sideways Market Filter** to help traders:
- Identify strong trends (bullish or bearish) using the ZLEMA and volatility bands.
- Stay out of choppy or sideways markets using the RSI and ADX filter.
- Make trading decisions based on trend confirmation across multiple timeframes (MTF).
- Customize the visual appearance, including color schemes, circle size, and alert conditions.
This script is perfect for traders who want to focus on trading trends while avoiding market conditions that are not conducive to strong directional moves.
Bitcoin Price Triumvirate (Supply, Demand, Inflation)The Bitcoin price split into the Supply Halvings, Adoption Demand, and Inflation Response bands of influence. I'm reading Book III about the Roman Empire, in The Story Of Our Civilization by Will Durant, so of course this is now called The Bitcoin Price Triumvirate. If you want to check the book out, it's called, "Caesar and Christ" by Will Durant.
Premium Lux AlgoCombining multiple indicators to receive buy and sell signals and create support and resistance levels and cloud space
Clarity Strategy: UT Bot + HMA + JCFBV (v6 fixed)The Clarity Strategy filters UT Bot signals with trend, volatility, and candle strength for high-accuracy entries, using dynamic or fixed TP/SL.
Volume-Weighted Pivot BandsThe Volume-Weighted Pivot Bands are meant to be a dynamic, rolling pivot system designed to provide traders with responsive support and resistance levels that adapt to both price volatility and volume participation. Unlike traditional daily pivot levels, this tool recalculates levels bar-by-bar using a rolling window of volume-weighted averages, making it highly relevant for intraday traders, scalpers, swing traders, and algorithmic systems alike.
-- What This Indicator Does --
This tool calculates a rolling VWAP-based pivot level, and surrounds that central pivot with up to five upper bands (R1–R5) and five lower bands (S1–S5). These act as dynamic zones of potential resistance (R) and support (S), adapting in real time to price and volume changes.
Rather than relying on static session or daily data, this indicator provides continually evolving levels, offering more relevant levels during sideways action, trending periods, and breakout conditions.
-- How the Bands Are Calculated --
Pivot (VWAP Pivot):
The core of this system is a rolling Volume-Weighted Average Price, calculated over a user-defined window (default 20 bars). This ensures that each bar’s price impact is weighted by its volume, giving a more accurate view of fair value during the selected lookback.
Volume-Weighted Range (VW Range):
The highest high and lowest low over the same window are used to calculate the volatility range — this acts as a spread factor.
Support & Resistance Bands (S1–S5, R1–R5):
The bands are offset above and below the pivot using multiples of the VW Range:
R1 = Pivot + (VW Range × multiplier)
R2 = R1 + (VW Range × multiplier)
R3 = R2 + (VW Range x multiplier)
...
S1 = Pivot − (VW Range × multiplier)
S2 = S1 − (VW Range × multiplier)
S3 = S2 - (VW Range x multiplier)
...
You can control the multiplier manually (default is 0.25), to widen or tighten band spacing.
Smoothing (Optional):
To prevent erratic movements, you can optionally toggle on/off a simple moving average to the pivot line (default length = 20), providing a smoother trend base for the bands.
-- How to Use It --
This indicator can be used for:
Support and resistance identification:
Price often reacts to R1/S1, and the outer bands (R4/R5 or S4/S5) act as overshoot zones or strong reversal areas.
Trend context:
If price is respecting upper bands (R2–R3), the trend is likely bullish. If price is pressing into S3 or lower, it may indicate sustained selling pressure or a breakdown.
Volatility framing:
The distance between bands adjusts based on price range over the rolling window. In tighter markets, the bands compress — in volatile moves, they expand. This makes the indicator self-adaptive.
Mean reversion trades:
A move into R4/R5 or S4/S5 without continuation can be a sign of exhaustion — potential for reversal toward the pivot.
Alerting:
Built-in alerts are available for crosses of all major bands (R1–R5, S1–S5), enabling trade automation or scalp alerts with ease.
-- Visual Features --
Fuchsia Lines: Mark all Resistance (R1–R5) levels.
Lime Lines: Mark all Support (S1–S5) levels.
Gray Circle Line: Marks the rolling pivot (VWAP-based).
-- Customizable Settings --
Rolling Length: Number of bars used to calculate VWAP and VW Range.
Multiplier: Controls how wide the bands are spaced.
Smooth Pivot: Toggle on/off to smooth the central pivot.
Pivot Smoothing Length: Controls how many bars to average when smoothing is enabled.
Offset: Visually shift all bands forward/backward in time.
-- Why Use This Over Standard Pivots? --
Traditional pivots are based on previous session data and remain fixed. That’s useful for static setups, but may become irrelevant as price action evolves. In contrast:
This system updates every bar, adjusting to current price behavior.
It includes volume — a key feature missing from most static pivots.
It shows multiple bands, giving a full view of compression, breakout potential, or trend exhaustion.
-- Who Is This For? --
This tool is ideal for:
Day traders & scalpers who need relevant intraday levels.
Swing traders looking for evolving areas of confluence.
Algorithmic/systematic traders who rely on quantifiable, volume-aware support/resistance.
Traders on all assets: works on crypto, stocks, futures, forex — any chart that has volume.
MA Zone Candle ColorCan be used standalone but originally written to highlight the active zones on my ma background script. Essentially makes % envelopes and colors bottom 1/4 green and top 1/4 red. Screenshot is vwap 1 period on session but you can do 32 period sma , alma, or whatever. Makes some pretty great support resistance zones based off %. If candle Highs are in a zone then candle red. If candle Lows are in a zone then candle green.
ES/MES 70% Confluence Strategy (9-Factor)✅ Included Features:
Entry signal only when 7 out of 9 indicators confirm (70%+ confluence)
15-minute Opening Range box from 9:30–9:45am ET, drawn clearly
VWAP + EMA 8/21/55 plotted for context
Risk/Reward box (5-point risk, 1:1 reward)
Stepwise trailing stop that moves every 5 points of profit
Buy/Sell alerts and debug labels to help you fine-tune
🧠 9 Indicators Used in Signal Score:
✅ EMA trend stack: 8 > 21 > 55
✅ Price above/below VWAP
✅ MACD Histogram momentum
✅ Stochastic RSI reversal
✅ Candle body > 60% of total range
✅ Volume > 20-bar average
✅ ATR rising
✅ Rejection of OR high/low
✅ Pullback near EMA 21 or VWAP (within 1 point)
ES/MES Hybrid VWAP + Confluence Strategy📋 Confluence Conditions (8 total):
Price above/below VWAP
EMA 21 > EMA 55 (or inverse)
MACD histogram momentum
Stoch RSI bounce/drop
Price near VWAP bounce (from your original logic)
Opening Range rejection
Candle strength (body % > 60%)
Volume spike
➡️ A signal triggers if 5 or more are true on the same bar.
SmartScale Envelope DCA This is a Dollar-Cost Averaging (DCA) long strategy that buys when price dips below a moving average envelope and adds to the position in a stepwise, risk-controlled way. It uses up to 8 buy-ins, applies a cooldown between entries, and exits based on either a take profit from average entry price or a stop loss. Backtest range limits trades to the last 365 days for backtest control.
All input settings can and should be adjusted to the chart, as volatility in price action varies. Simply go into the inputs settings, and start from the top and move down to get better backtest results. Moving from the top down has been proven to give the best results. Then, move to properties and set your order size, pyramiding, and so on. It may be necessary to then fine tune your adjustments a second time to dial it in.
Works well on 1 hour time frames and in volatility.
Happy Trading!
Bollinger + EMA Strategy with Statssharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")
Simple EMA Cloud (20/50)Simple EMA Cloud 20/50.
The objective of this indicator is to give a directional bias.
You can change the EMA values and colors.
This works well by default on the 30-minute CME_MINI:ES1! and CME_MINI:NQ1! NQ.
Pro Tip:
Lower the EMA values if you're trading lower time frames.
If you see a move above or below the cloud in the opposite direction of the trend, and then the price immediately recovers and switches to the trending side of the cloud, this can be a nice entry.
Comercial Trader -Vol. Desvio PadrãoScript criado para fazer a distribuição de volatilidade do ativo pelo desvio padrão
G-Channel Strategy - Strategy with EMA FilterG-Channel Strategy with an 200 EMA, full credit of this strategy goes to Income |Nomad on youtube. the video shows you how to create the strategy.
This strategy is best used on lower timer frames, the 1 min, 3 min or 5 min time frame.
Dont trade this strategy in a ranging market, it doesnt work well.
BBands Channels with EMAs# **BBands Channels with EMAs Indicator Explanation**
---
## **📌 Feature Overview**
### **1. Bollinger Bands**
- **Basis Line**: 160-period SMA (adjustable)
- **Inner Bands**:
- **Upper**: Basis + 2× Standard Deviation
- **Lower**: Basis - 2× Standard Deviation
- **Outer Bands**:
- **Upper Top**: Basis + 3× Standard Deviation
- **Lower Low**: Basis - 3× Standard Deviation
- **Fill Effect**: Semi-transparent black fill between inner and outer bands
### **2. Exponential Moving Averages (EMAs)**
| Period | Purpose | Line Style |
|--------------|-----------------------------|------------------|
| **EMA 27** | Short-term trend | Thin line |
| **EMA 120** | Short-to-medium-term trend | Medium line |
| **EMA 200** | Medium-term trend | Medium line |
| **EMA 1120** | Ultra-long-term trend | Thick line |
---
## **⚙️ Parameter Settings**
### **Bollinger Bands**
| Parameter | Default | Description |
|---------------|---------|--------------------------------------|
| `length` | 160 | SMA calculation period |
| `mult` | 2.0 | Standard deviation multiplier (inner bands) |
| `multOuter` | 3.0 | Standard deviation multiplier (outer bands) |
| `offset` | 0 | Time offset for plots (±500 bars) |
### **Exponential Moving Averages (EMAs)**
| Parameter | Default | Description |
|-----------------|---------|---------------------------|
| `ema1Length` | 27 | EMA 1 period |
| `ema2Length` | 120 | EMA 2 period |
| `ema3Length` | 200 | EMA 3 period |
| `ema4Length` | 1120 | EMA 4 period |
---
## **📊 Use Cases**
### **1. Trend Confirmation**
- **Bullish Trend**: Price above EMA200 + Bollinger Band expansion
- **Bearish Trend**: Price below EMA200 + Bollinger Band expansion
### **2. Overbought/Oversold Signals**
- **Upper Band Touch**: Price reaches Upper Top → Potential overbought
- **Lower Band Touch**: Price reaches Lower Low → Potential oversold
### **3. Volatility Strategies**
- **Band Squeeze**: Narrowing gap between bands → Breakout warning
- **Band Expansion**: Price breaks outer band → Trend acceleration
---
**✅ Summary**
This indicator combines **Bollinger Bands + Multi-period EMAs** for:
- Trend tracking
- Volatility analysis
- Multi-timeframe strategies
---
# **BBands Channels with EMAs 指標說明**
---
## **📌 功能概述**
### **1. 布林通道 (Bollinger Bands)**
- **基礎線 (Basis Line)**: 160週期SMA(可調整)
- **內通道 (Inner Bands)**:
- 上軌 (Upper): 基礎線 + 2倍標準差
- 下軌 (Lower): 基礎線 - 2倍標準差
- **外通道 (Outer Bands)**:
- 上外軌 (Upper Top): 基礎線 + 3倍標準差
- 下外軌 (Lower Low): 基礎線 - 3倍標準差
- **填充效果**: 內外通道間半透明黑色填充
### **2. 指數移動平均線 (EMAs)**
| 週期 | 用途 | 線條樣式 |
|-------------|-------------------|-----------------|
| **EMA 27** | 短期趨勢 | 細線 |
| **EMA 120** | 中短期趨勢 | 中等線 |
| **EMA 200** | 中期趨勢 | 中等線 |
| **EMA 1120**| 超長期趨勢 | 粗線 |
---
## **⚙️ 參數設定**
### **布林通道 (Bollinger Bands)**
| 參數名 | 預設值 | 說明 |
|-------------|--------|---------------------------|
| `length` | 160 | SMA計算週期 |
| `mult` | 2.0 | 內通道標準差倍數 |
| `multOuter` | 3.0 | 外通道標準差倍數 |
| `offset` | 0 | 線圖時間偏移(±500根K棒) |
### **指數移動平均線 (EMAs)**
| 參數名 | 預設值 | 說明 |
|----------------|---------|-------------------|
| `ema1Length` | 27 | 第一條EMA週期 |
| `ema2Length` | 120 | 第二條EMA週期 |
| `ema3Length` | 200 | 第三條EMA週期 |
| `ema4Length` | 1120 | 第四條EMA週期 |
---
## **📊 應用場景**
### **1. 趨勢確認**
- **多頭趨勢**: 價格在EMA200上方 + 布林通道擴張
- **空頭趨勢**: 價格在EMA200下方 + 布林通道擴張
### **2. 超買超賣信號**
- **觸及外軌**: 價格觸碰Upper Top → 可能超買
- **觸及下軌**: 價格觸碰Lower Low → 可能超賣
### **3. 波動率策略**
- **通道收窄**: 內外通道間距縮小 → 突破預警
- **通道擴張**: 價格突破外軌 → 趨勢加速
---
**✅ 總結**
本指標透過**布林通道+多週期EMA**的組合,適用於:
- 趨勢跟蹤
- 波動率分析
- 多時間框架策略
Major Trading SessionsThis script displays the trading sessions of the 3 markets that are relevant in crypto. US, UK, and Tokyo.
Intraday NQ - MACD + VWAP + TPO (Short Only from 2025)This intraday Nasdaq futures (NQ) strategy trades based on MACD momentum, VWAP alignment, and TPO breakout simulation. ATR determines dynamic risk and reward. Use the toggles to test long, short, or both strategies from January 1, 2025 onward.
🚀 BB+MACD Dip Screener @alptekinkekilli🌟 **What it does**
• Detects deep “dip-and-bounce” setups when price is trading below both the 50EMA and 200EMA
• Ensures the entire Bollinger Band sits beneath those EMAs for optimal risk/reward
• Fires only when price crosses up through the lower BB AND MACD line crosses above its signal line
🔍 **Why use it**
• Quickly scan hundreds of tickers for textbook dip-and-bounce entries
• Filter out noisy false signals by requiring multi-timeframe alignment (EMAs + BB + MACD)
• Perfect for trending markets where retracements offer low-risk entries
⚙️ **How to add the screener filter**
1. Copy & paste this script into Pine Editor → **Save & Add to Chart**
2. Publish as **Public** so it appears in Stock Screener → Technical
3. In **Stock Screener → Filters**, search for **BB+MACD Dip Screener** → select **BB_MACD_Dip > 0**
4. Voilà! You’ll see all symbols flashing “1” when a dip buy emerges.
🚨 **Bonus Alert**
Use the built-in `alertcondition(buyCond, "BB+MACD Dip Buy", "Dip buy confirmed!")` to fire real-time notifications to your phone or email.
Happy scanning & safe trading! 📈💰
Support/Resistance Breakout DetectorThis indicator automatically detects and plots dynamic support and resistance levels using pivot highs and lows.
✅ It draws red resistance lines and blue support lines,
✅ The lines extend forward but automatically stop when the price touches them,
✅ It monitors for breakouts with strong volume,
✅ When a breakout happens, it shows labels like “B” or “Bull Wick” / “Bear Wick” on the chart,
✅ It also triggers alerts when support or resistance breaks with high volume.
Main settings:
Pivot lookback period
Show/hide breakout labels
Minimum volume for breakout
Maximum extension length for lines
This tool helps traders easily spot key price levels and watch for meaningful breakouts.
RSI EMA Candle Size Strategy//@version=5
strategy("RSI EMA Candle Size Strategy", overlay=true)
// Indikator teknikal
emaFast = ta.ema(close, 10)
emaSlow = ta.ema(close, 50)
rsiValue = ta.rsi(close, 14)
candleSize = math.abs(close - open)
// Kondisi Buy
buyCondition = rsiValue < 51 and emaFast < emaSlow and candleSize < 0.00025
if buyCondition
strategy.entry("BUY", strategy.long)
alert("BUY", alert.freq_once_per_bar_close)
// Kondisi Sell
sellCondition = rsiValue > 49 and emaFast > emaSlow and candleSize < 0.00025
if sellCondition
strategy.entry("SELL", strategy.short)
alert("SELL", alert.freq_once_per_bar_close)
// Plot
plot(emaFast, title="EMA 10", color=color.orange)
plot(emaSlow, title="EMA 50", color=color.blue)
JBGBt - Bollinger Bands Strategy v4This is an enhanced Bollinger Band Strategy that works on the 1 day or 12 hour timeframe on the Blue Chip Cryptos like BTC , ETH, and SOL both Spot and Perpetual I have added RSI filters, and ADX and ATR to dynamically trim and augment your wins and losses. This even works with starting on a small account of $250 which delivered 2500% P&L with only 11.3 percent drawdown Im sure there is lot of room for tweaking.
Also, I wanted to give a nod, and thank you for Michael of Signum /Dapp R for the inspiration to develop with AI, and turn boring indicators into Strategies, and Stategy into $$
DropHunterBuy: Green triangle under the candle (price at the lower BB band, RSI < 30, EMA(9) > EMA(50)).
Stop loss: 10-15 points (M15) or 20-30 points (H1).
Take profit: 20-30 points (M15) or 50-70 points (H1).
Sale: Red triangle above the candle (price at the upper BB band, RSI > 70, EMA(9) < EMA(50)).
Stop loss and take profit are similar.
Exit: Close the position when the middle BB line (bbMiddle) is reached or when the opposite signal is given.
Risk: 2-5% deposit per transaction (for example, $20-50 with a deposit of $1000).