OPEN-SOURCE SCRIPT
OT Bot trend Pro

OT Bot Supertrend Pro: The Ultimate Trading Guide
The OT Bot Supertrend Pro is an advanced trend-following system. It combines momentum (OT Bot), trend direction (SMA ), and volatility-based support/resistance (Supertrend), all filtered by trend intensity (ADX).
1. The Power of the ADX Filter (Trend Intensity)
Before looking for Buy/Sell signals, the indicator checks the ADX (Average Directional Index) to ensure you aren't trading in a "dead" or "exhausted" market.
• ADX < 20 (Sideways/Weak): The market is flat. Signals are hidden to prevent "Whipsaws" (losing trades in a range).
• ADX 25–40 (The Sweet Spot): The trend is healthy and active. Signals are visible and ready for entry.
• ADX > 40 (Overextended): The trend is too strong and likely to reverse soon. Signals are hidden to prevent "Buying the Top" or "Selling the Bottom."
2. Entry Strategy (The 4-Step Checklist)
To maximize accuracy, only enter a trade when all four conditions are met.
Buy Signal (Long Entry)
1. OT Bot: A "Buy" label appears, and candles turn Blue.
2. SMA : Price must be Above the Yellow line.
3. Supertrend: The dashed line must be Green (acting as support).
4. ADX: Current value must be between 20 and 40 (indicated by the Green dashboard).
Sell Signal (Short Entry)
1. OT Bot: A "Sell" label appears, and candles turn Purple.
2. SMA : Price must be Below the Yellow line.
3. Supertrend: The dashed line must be Red (acting as resistance).
4. ADX: Current value must be between 25 and 40 (indicated by the Green dashboard).
3. Precision Stop Loss (SL) Management
Your Stop Loss is dynamic, using the Supertrend line as a shield. We add a buffer of 100–200 points to avoid being stopped out by minor price spikes.
• For Buy Positions:$$Stop Loss = \text{Supertrend Price} - (100 \text{ to } 200 \text{ points})$$
• For Sell Positions:$$Stop Loss = \text{Supertrend Price} + (100 \text{ to } 200 \text{ points})$
NOTE on "Points": > * Gold (XAUUSD): 1.00 USD movement = 100 points.
• Forex: The 5th decimal place (0.00001) = 1 point.
4. Exit & Take Profit (TP)
You can use two effective methods to lock in profits:
1. Fixed Risk/Reward: Target a ratio of 1:1.5 or 1:2. If your SL is 200 points, set your TP at 300–400 points.
2. Trend Transition: Close the trade if the candle color changes (e.g., Blue to Purple) or the Supertrend changes color, even if the OT Bot hasn't issued a new signal yet.
5. Pro-Tips for Success
• Recommended Timeframes: Best used on 15m, 1H, or 4H. Using very low timeframes (1m/5m) with ATR 1 may result in too many signals.
• Dashboard Check: Always look at the ADX Dashboard (Top Right). If it is Red, stay out of the market regardless of the "Buy/Sell" labels.
• Confirmation is King: Never "anticipate" a signal. Wait for the candle to Close to confirm the labels and colors before clicking buy or sell.
The OT Bot Supertrend Pro is an advanced trend-following system. It combines momentum (OT Bot), trend direction (SMA ), and volatility-based support/resistance (Supertrend), all filtered by trend intensity (ADX).
1. The Power of the ADX Filter (Trend Intensity)
Before looking for Buy/Sell signals, the indicator checks the ADX (Average Directional Index) to ensure you aren't trading in a "dead" or "exhausted" market.
• ADX < 20 (Sideways/Weak): The market is flat. Signals are hidden to prevent "Whipsaws" (losing trades in a range).
• ADX 25–40 (The Sweet Spot): The trend is healthy and active. Signals are visible and ready for entry.
• ADX > 40 (Overextended): The trend is too strong and likely to reverse soon. Signals are hidden to prevent "Buying the Top" or "Selling the Bottom."
2. Entry Strategy (The 4-Step Checklist)
To maximize accuracy, only enter a trade when all four conditions are met.
Buy Signal (Long Entry)
1. OT Bot: A "Buy" label appears, and candles turn Blue.
2. SMA : Price must be Above the Yellow line.
3. Supertrend: The dashed line must be Green (acting as support).
4. ADX: Current value must be between 20 and 40 (indicated by the Green dashboard).
Sell Signal (Short Entry)
1. OT Bot: A "Sell" label appears, and candles turn Purple.
2. SMA : Price must be Below the Yellow line.
3. Supertrend: The dashed line must be Red (acting as resistance).
4. ADX: Current value must be between 25 and 40 (indicated by the Green dashboard).
3. Precision Stop Loss (SL) Management
Your Stop Loss is dynamic, using the Supertrend line as a shield. We add a buffer of 100–200 points to avoid being stopped out by minor price spikes.
• For Buy Positions:$$Stop Loss = \text{Supertrend Price} - (100 \text{ to } 200 \text{ points})$$
• For Sell Positions:$$Stop Loss = \text{Supertrend Price} + (100 \text{ to } 200 \text{ points})$
• Forex: The 5th decimal place (0.00001) = 1 point.
4. Exit & Take Profit (TP)
You can use two effective methods to lock in profits:
1. Fixed Risk/Reward: Target a ratio of 1:1.5 or 1:2. If your SL is 200 points, set your TP at 300–400 points.
2. Trend Transition: Close the trade if the candle color changes (e.g., Blue to Purple) or the Supertrend changes color, even if the OT Bot hasn't issued a new signal yet.
5. Pro-Tips for Success
• Recommended Timeframes: Best used on 15m, 1H, or 4H. Using very low timeframes (1m/5m) with ATR 1 may result in too many signals.
• Dashboard Check: Always look at the ADX Dashboard (Top Right). If it is Red, stay out of the market regardless of the "Buy/Sell" labels.
• Confirmation is King: Never "anticipate" a signal. Wait for the candle to Close to confirm the labels and colors before clicking buy or sell.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.