Bot Prompt
Bot Prompt
Okay, so I need to figure out how to create a detailed AI prompt for building a
trading bot based on our previous conversation. The user wants something
comprehensive that can handle all aspects of developing this bot.
First, I should recall what was discussed earlier. We talked about improving the
nearest neighbor model by combining it with other techniques and using
reinforcement learning for continuous learning. We also considered whether to use
MT5 or Python, and decided on a hybrid approach where Python handles the AI part
and MT5 does the trading execution.
Now, the user is asking for an AI prompt that can build such a bot. So I need to
structure this prompt to cover all necessary aspects without being too vague but
also detailed enough to guide the AI effectively.
I should start by outlining the main objectives of the bot. It needs to use
multiple indicators and signals from various sources, process real-time data,
analyze market conditions, make predictions based on the improved nearest neighbor
model, execute trades automatically, manage risk, and continuously learn from the
market.
Next, I need to detail the technical analysis techniques it should use, like moving
averages, RSI, MACD, etc. It should also incorporate sentiment analysis for news-
based signals and social media data.
The reinforcement learning component is crucial. The bot should be able to adapt
its strategy based on past trades, using an RL model that learns from rewards and
penalties. It needs to handle different trading scenarios and optimize decision-
making.
For the AI architecture, I need to specify the neural network structure, including
layers that can process both market data and sentiment analysis inputs. The model
should update its weights based on performance metrics and feedback from the
market.
Integration with a trading platform is another key point. The bot needs to connect
to MT5 or similar platforms and execute trades automatically once signals are
detected. It must handle order management, slippage, and transaction costs
effectively.
Risk management strategies like position sizing and stop-loss orders are essential.
The bot should adapt these based on current market conditions and historical
performance.
Data preprocessing is also important. The bot needs to clean and normalize data
before feeding it into the model. It should handle missing values and ensure data
quality for accurate predictions.
Finally, deployment and continuous monitoring are necessary. The bot should be
deployed in a testing environment first, monitored, and optimized based on initial
results before going live.
Putting all these elements together, I need to craft an AI prompt that covers each
of these areas in detail without being overly verbose. It should guide the AI
through the development process, ensuring it builds a robust trading bot that meets
all the specified requirements.
</think>
### Objectives:
1. **Multi-Indicator Analysis**: Utilize a combination of moving averages (e.g.,
RSI, MACD), volume analysis, and custom indicators for comprehensive market
insights.
2. **News Sentiment Integration**: Incorporate news-based sentiment analysis to
identify market-moving events and adjust trading strategies accordingly.
3. **Social Media Sentiment**: Analyze social media discussions to gauge retail
investor sentiment, providing additional context for decision-making.
4. **Reinforcement Learning (RL)**: Implement an RL model that learns from past
trades, optimizing decision-making based on rewards and penalties.
5. **Continuous Learning**: Enable the bot to adapt its strategy in real-time,
incorporating feedback from each trade and market condition.