Overview
This prompt aims to guide developers in creating a sophisticated scalping trading bot for low timeframes. Programmers and traders seeking to enhance their algorithmic trading strategies will benefit from this detailed framework.
Prompt Overview
Purpose: This trading bot aims to capitalize on small price movements for consistent profitability.
Audience: Designed for traders seeking automated solutions in high-frequency scalping strategies.
Distinctive Feature: It integrates multiple technical indicators and rigorous risk management for robust trading performance.
Outcome: Users can expect a reliable, efficient bot that executes trades with minimal latency and risk exposure.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Asset Management & Wealth Management, Fintech & Digital Banking, Machine Learning & Data Science
- Techniques: Decomposition, Role/Persona Prompting, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Build an advanced scalping trading bot optimized for low timeframes, specifically 5-minute (M5) and 15-minute (M15) charts. The focus should be on fast entries and exits, aiming for consistent profitability through small price movements.
The bot should:
– Implement a strategy that exploits market inefficiencies with clear entry and exit rules.
– For example:
– Buy signal: 50-period SMA crosses above 100-period SMA.
– Sell signal: 100-period SMA crosses above 50-period SMA.
– Incorporate additional technical indicators such as RSI and Bollinger Bands to refine entry and exit signals.
– For instance:
– Buy when RSI is below 30 and Bollinger Bands %B is below 0.
– Sell when RSI exceeds 70 and Bollinger Bands %B exceeds 100.
– Apply rigorous risk management through:
– Stop-losses set between 2-5% below entry price.
– Portfolio-wide maximum drawdown capped at 15%.
– Optionally, use trailing stops to lock in profits.
– Employ position sizing rules that limit each trade to 1-2% of total capital to minimize risk exposure.
– Include volatility filters to pause trading under extreme market conditions, such as:
– When volatility indexes (e.g., VIX) exceed certain thresholds.
– Price moves exceeding 2 standard deviations.
– Significant widening of bid-ask spreads.
– Use market and limit orders primarily for executing trades.
– Ensure the algorithm is robust, readable, and free of bugs, with clearly defined entry, exit, and sizing rules.
– Design for hitch-free execution, requiring always-on connectivity and reliability.
**Step-by-step approach:**
1. Define clear, rule-based entry and exit conditions based on moving averages and combined indicator signals.
2. Encode stop-loss and trailing stop mechanisms aligned with recent market volatility.
3. Implement position sizing constraints per trade and portfolio risk parameters.
4. Add volatility filters to halt trading during abnormal conditions.
5. Use appropriate order types (market and limit) to execute trades quickly and efficiently.
6. Test the bot extensively on historical data to verify strategy effectiveness and ensure absence of bugs.
7. Prepare the system for continuous and reliable live operation.
**Output Format:**
Provide a detailed trading bot algorithm description or code implementation with comments, explaining each part:
– Strategy logic
– Indicator calculations
– Order execution logic
– Risk management components
– Volatility handling
The output should be in a programming language or pseudocode suitable for trading bot platforms, fully executable or clearly instructive for development.
**Icon:** “BoltIcon”
**Category:** “programming”
**Tags:** [“Scalping”, “Trading Bot”, “Algorithmic Trading”, “Risk Management”]
**Name:** “Advanced Scalping Bot”
**Short Description:** “Develop an advanced scalping bot for M5 and M15 charts using moving averages, RSI, Bollinger Bands, and strict risk management.”
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste it into a programming environment or text editor.
- Follow the step-by-step approach outlined in the prompt.
- Implement the trading bot algorithm as per the specifications.
- Test the bot using historical data for effectiveness.
- Prepare the bot for live trading with reliable connectivity.
Tips for Best Results
- Define Strategy: Establish clear entry and exit rules using moving averages and additional indicators.
- Implement Risk Management: Set stop-losses and position sizing to protect capital and limit losses.
- Incorporate Volatility Filters: Pause trading during extreme market conditions to avoid unnecessary risks.
- Test and Optimize: Rigorously backtest the bot on historical data to ensure effectiveness and reliability before live trading.
FAQ
- What is the main strategy for the scalping trading bot?
The bot uses moving averages to determine buy and sell signals based on crossovers. - Which indicators are incorporated for refining signals?
RSI and Bollinger Bands are used to enhance entry and exit points. - How is risk managed in the trading bot?
Risk is managed through stop-losses, maximum drawdown limits, and position sizing rules. - What conditions pause trading in the bot?
Trading pauses during extreme volatility, such as high VIX or significant price movements.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


