- Trading Bot - Pyramidal Candle RSI - Robot Strategy -

1. Concept and Overview
The Pyramidal Candle RSI Strategy is a trend-following algorithm designed to optimize entry points during market pullbacks. Unlike standard strategies that enter a full position on a single indicator crossover, this script utilizes a Pyramidal (DCA) approach combined with strict Candle Geometry and Momentum filters.
The core philosophy is simple: "Buy the dip in an uptrend, sell the rally in a downtrend," but executed with mathematical precision. Instead of guessing the bottom, the strategy splits the allocated capital into multiple fractionated entries, improving the Average Entry Price (AEP) if the market moves against the initial position before reversing.
2. Originality and Key Features
What makes this strategy unique is the combination of Sequential Candle detection and Average Price Targeting:
- Sequential Candle Entry: The strategy does not blindly enter on an indicator signal. For the first entry, it waits for a specific sequence of consecutive candles closing in the signal direction (e.g., entering Long only after a sequence of bearish candles implies a pullback is occurring).
- RSI Slope Detection: Instead of traditional Overbought/Oversold levels, the script analyzes the direction (slope) of the RSI to ensure momentum is shifting in favor of the trade before entering.
- Smart Pyramiding: The script is built to handle up to 20 separate entries. It calculates position size dynamically based on your total allocated capital divided by the maximum allowed entries.
- Average Price Exit Target: Profits are not taken based on the entry price of the first order, but on the Average Entry Price of the entire position. This allows for faster exits and higher win rates even if the first entry was slightly early.
3. How it Works
The Entry Logic:
- Trend Filter (SMA): The market must be above the SMA for Longs (or below for Shorts).
- Momentum Filter (RSI): The RSI line must be curving upwards (for Longs) or downwards (for Shorts) to confirm immediate momentum.
- Candle Sequence: The script detects a user-defined number of consecutive candles to validate the "dip" or the "rally."
- Pyramiding: If the price continues to move against the trade, the strategy adds new positions (up to the user-defined limit) to average down the entry price.
The Exit Logic:
- Profit Target: The strategy closes the entire position once the price reaches a specific percentage deviation (e.g., +1%) from the Average Entry Price.
- Hard Stop Loss / Take Profit: Integrated percentage-based SL and TP are available as a safety net.
4. Settings and Configuration
The script keeps a professional "TopBot" dashboard style for easy monitoring.
- Trading Mode: Choose between Long Only, Short Only, or Both.
- Max Entries: How many times the bot can enter the same trade.
- Consecutive Candles: How many candles of the same color are required to trigger the first entry.
- SMA Length: Defines the long-term trend.
- RSI Settings: Fine-tune the momentum detection (Length and Source).
- Exits: Define your profit target as a percentage of the average price (e.g., 1.0 = 1%).
- Risk Management: Adjustable Stop Loss and Take Profit percentages.
5. Automation Ready
This script is designed for automation. It includes built-in alert message placeholders compatible with 3rd-party webhook automation tools. The alerts automatically transmit:
- Ticker & Timeframe
- Direction (Long/Short)
- Leverage & Quantity parameters
- Stop Loss levels
6. Disclaimer
Past performance is not indicative of future results. This script is a tool for technical analysis and automated execution logic, not financial advice. Always backtest with your specific asset and timeframe before using real capital.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Trading-Bot-France directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Access to the strategy and free training on how to make the most of it and fully automate it on your broker on our website: trading-bot.fr
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Trading-Bot-France directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Access to the strategy and free training on how to make the most of it and fully automate it on your broker on our website: trading-bot.fr