- Credits
- 666
Hello, colleagues!
I used to post quite classic Expert Advisors here – indicator, martingale, grid… But this time I was carried away towards neural networks and large language models. Why? Yes, because there are no such advisers on the forum, and the topic is wildly interesting. I wanted to understand if LLM (in my case DeepSeek) can really help in trading, or if it's just a HYPE.
This is how DeepGold LLM EA was born, a robot that sends a "market snapshot" directly to the DeepSeek cloud neural network every 15 minutes (and with sudden movements), and it returns a forecast: buy, sell or stand aside. And yes, he trades only in gold (XAUUSD) and strictly on M15 – no amateur activity.
What's under the hood? Key features
• A living AI brain - the Expert Advisor collects a lot of data: ATR, ADX, RSI, CCI, Bollinger bands, volumes, the last 30 candlesticks of M15, open positions, the current P&L, and even the history of its past forecasts with a "guessed/not guessed" rating. All this goes to the DeepSeek server, and the model returns a number from 0 (furious SELL) to 1 (confident BUY) along with a confidence score.
• Protection against "nonsense" – if the confidence is below the set threshold (65% by default), the transaction is not opened. This is how we cut off weak signals.
• Dual stop system – you can use real StopLoss / TakeProfit or virtual stops (so as not to give them to the broker), as well as a trailing stop, taking into account the average price of all positions.
• Smart risk management – the risk per trade is calculated from the balance, there is a daily loss limit (by default, 5% – and trading freezes until the next day), maximum spread, Spike Filter, protection against cascading entry through the ATR distance.
• Schedule and timezones – you can set the UTC trading hours (so as not to get into the Asian "mess"), as well as compensate for the server time offset.
• Own dashboard – a window with the current signal, number of orders, AI confidence, API status, ATR, spread, equity and drawdown is displayed on the chart. Everything is clear, without unnecessary graphics.
• Self–learning (almost) - the EA remembers its forecasts and checks after a set number of bars whether they have come true, transmitting this feedback in the following queries. This is how the model sees its mistakes and adjusts.
• Live only – it won't work in the strategy tester (I specifically blocked it), because it's pointless without a real connection to the API.
Recommendations for use (highly recommended!)
1. Start with a demo account. Even if you are an MQL5 guru, this advisor is an experiment. Let him run for a couple of weeks without risking any hard money.
2. Get the DeepSeek API key. They give you a decent amount of free tokens, but if you want to actively send requests, you may need to top up your balance. Insert the key into the parameters.
3. Adjust the trading time to your UTC. The default time is 9-23 UTC, which roughly covers the European and American sessions. Check if the server time matches.
4. Take a risk on the deal – don't be greedy. 1% at a stop of 400 pp is quite a working option for the test. If you set 5% or higher, the daily limit will work quickly in case of a series of losses.
5. Do not change the timeframe and symbol. The robot is rigidly attached to the XAUUSD M15, it will simply refuse to work on other instruments (it will issue an Alert).
6. Keep an eye on the instrument panel. If the API status is red, check the Internet or the token balance.
7. The Advisor is not the "Grail". This is an assistant that uses a probabilistic approach. The model can be wrong, the market is an unpredictable thing. Treat it like an advanced assistant, not like a magic "loot" button.
The advisor is accompanied by detailed instructions describing each parameter and the logic of its operation. Download, try, and share your impressions. I will be glad for any feedback, especially from those who are already experimenting with LLM in trading.
If you have any ideas on how to improve the "brains" – write. Perhaps we will add support for other providers (OpenAI, Claude) or more sophisticated strategies.
Good luck and profits!
I used to post quite classic Expert Advisors here – indicator, martingale, grid… But this time I was carried away towards neural networks and large language models. Why? Yes, because there are no such advisers on the forum, and the topic is wildly interesting. I wanted to understand if LLM (in my case DeepSeek) can really help in trading, or if it's just a HYPE.
This is how DeepGold LLM EA was born, a robot that sends a "market snapshot" directly to the DeepSeek cloud neural network every 15 minutes (and with sudden movements), and it returns a forecast: buy, sell or stand aside. And yes, he trades only in gold (XAUUSD) and strictly on M15 – no amateur activity.
What's under the hood? Key features
• A living AI brain - the Expert Advisor collects a lot of data: ATR, ADX, RSI, CCI, Bollinger bands, volumes, the last 30 candlesticks of M15, open positions, the current P&L, and even the history of its past forecasts with a "guessed/not guessed" rating. All this goes to the DeepSeek server, and the model returns a number from 0 (furious SELL) to 1 (confident BUY) along with a confidence score.
• Protection against "nonsense" – if the confidence is below the set threshold (65% by default), the transaction is not opened. This is how we cut off weak signals.
• Dual stop system – you can use real StopLoss / TakeProfit or virtual stops (so as not to give them to the broker), as well as a trailing stop, taking into account the average price of all positions.
• Smart risk management – the risk per trade is calculated from the balance, there is a daily loss limit (by default, 5% – and trading freezes until the next day), maximum spread, Spike Filter, protection against cascading entry through the ATR distance.
• Schedule and timezones – you can set the UTC trading hours (so as not to get into the Asian "mess"), as well as compensate for the server time offset.
• Own dashboard – a window with the current signal, number of orders, AI confidence, API status, ATR, spread, equity and drawdown is displayed on the chart. Everything is clear, without unnecessary graphics.
• Self–learning (almost) - the EA remembers its forecasts and checks after a set number of bars whether they have come true, transmitting this feedback in the following queries. This is how the model sees its mistakes and adjusts.
• Live only – it won't work in the strategy tester (I specifically blocked it), because it's pointless without a real connection to the API.
Recommendations for use (highly recommended!)
1. Start with a demo account. Even if you are an MQL5 guru, this advisor is an experiment. Let him run for a couple of weeks without risking any hard money.
2. Get the DeepSeek API key. They give you a decent amount of free tokens, but if you want to actively send requests, you may need to top up your balance. Insert the key into the parameters.
3. Adjust the trading time to your UTC. The default time is 9-23 UTC, which roughly covers the European and American sessions. Check if the server time matches.
4. Take a risk on the deal – don't be greedy. 1% at a stop of 400 pp is quite a working option for the test. If you set 5% or higher, the daily limit will work quickly in case of a series of losses.
5. Do not change the timeframe and symbol. The robot is rigidly attached to the XAUUSD M15, it will simply refuse to work on other instruments (it will issue an Alert).
6. Keep an eye on the instrument panel. If the API status is red, check the Internet or the token balance.
7. The Advisor is not the "Grail". This is an assistant that uses a probabilistic approach. The model can be wrong, the market is an unpredictable thing. Treat it like an advanced assistant, not like a magic "loot" button.
The advisor is accompanied by detailed instructions describing each parameter and the logic of its operation. Download, try, and share your impressions. I will be glad for any feedback, especially from those who are already experimenting with LLM in trading.
If you have any ideas on how to improve the "brains" – write. Perhaps we will add support for other providers (OpenAI, Claude) or more sophisticated strategies.
Good luck and profits!