MQL AI Wizard Community Codebase Library

In this overview, you can view statements addressed by community users as a prompt to the MQL-AI wizard as well as its output.

.

# AI instruction / parameter set Snippet Date
781 MACD EA:BUY ABOVE ZERO LINE WHEN MACD APPEARS ABOVE ZERO LINE.SELL BELOW ZERO LINE WHEN macd appears below zero line.close buy when macd bar crosses below the zero line.close sell when macd bar crosses above the zero line.no reentering of an order if one order is placedlot size ,stop loss ,take profit, break even,trailing stop macd ma type and ma price fields are user input fields,ma type user input,price type user input following the price.(all fields are in pips)magic number to differentiate every order.(there should be only one order in one direction no multiple orders allowed with one magic number (on a desired chart the ea will be placed so no multiple orders on a single signal) 5th December 2023
782 codigo mt4 crossover move average 8 and 21 4th December 2023
783 iMAOnArray is undeclared identifier how to solved it 4th December 2023
784 make an ea that uses 2 custom indicators, one shows bars in an indicator window and the other shows buy and sell arrows, when the bars turn blue and the buy arrow appears buy now and if the bars turn red and the sell arrow appears and if any trades are open for any condition and the opposite condition appears close present trades and take into account the indicators are custom indicators and make it in a way where i dont have to hard code the indicator names but let the ea fetch the indicators from the files 4th December 2023
785 SMART cost-averaging EA uses price action, support and resistance, trend lines, momentum, rsi divergence, stochastic, supply and demand zone. It has news filters and open only on high probable positionspip interval of 30 pips per tradeTarget Profit of 35-50% fibonacci retracement, applies trailing stops to secure profits, and adds Stop loss to mitigate possible losses during extreme drawdown market conditions.Incremental lot sizing 0.01, 0.02, 0.03, 0.04, 0.05 and so on 2nd December 2023
786 Expert Advisor (EA) Requirements Document for Scalping Spikes on Crash and Boom Indices1. IntroductionThis document outlines the requirements for an MQL5-based Expert Advisor (EA) designed to scalp spikes on the Crash 500 Index, Crash 1000 Index, Boom 500 Index, and Boom 1000 Index. The EA will utilize a combination of technical indicators and price action analysis to identify high-probability trading opportunities.2. Trading SymbolsCrash 500 Index (CRASH500)Crash 1000 Index (CRASH1000)Boom 500 Index (BOOM500)Boom 1000 Index (BOOM1000)3. Trading StrategyThe EA will implement a scalping strategy focused on identifying and trading spikes in the specified indices. Key components of the strategy include: Price Action Analysis: The EA will monitor price movements and patterns, focusing on rapid changes that indicate a potential spike.Support and Resistance Levels: Identification of key support and resistance levels in higher timeframes (15 minutes, 1 hour) to gauge potential reversal points.Moving Averages: Use of Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) to determine trend direction and potential bounce points.200 EMA: To identify strong resistance/support and overall trend direction.50 SMA: For medium resistance/support.800 EMA: To identify very strong resistance/support zones.Relative Strength Index (RSI): To generate entry signals. Buy signals will be generated when RSI is at level 10 or 30 for Boom indices and sell signals at RSI levels 70 or 90 for Crash indices.Bollinger Bands: To identify volatile situations and overbought/oversold conditions.4. Trade Entry RulesBuy entry (for Boom indices):- The EA should open a Buy when the price tags the lower Bollinger Band and RSI is at 10 or 30.- Additionally, the price should be above the 200 EMA.Sell entry (for Crash indices):- The EA should open a Sell when the price tags the upper Bollinger Band and RSI is at 70 or 90.- Additionally, the price should be below the 200 EMA.The EA should include an option to enable/disable these rules as per user preference.5. Trade Exit RulesThe EA should close trades based on one of the following conditions:- When price touches the opposite Bollinger Band.- When RSI is at 50.- A stop loss or take profit level is hit.6. Money ManagementThe EA should risk a fixed percentage of the account balance per trade. This should be adjustable in the EA's settings.7. Risk ControlIn addition to the stop loss level for each trade, the EA should include a maximum daily loss limit to avoid significant drawdowns.8. Notifications and AlertsThe EA should notify the user via MT5's inbuilt email and notification system when it opens or closes a trade.9. ConclusionThe EA should be easy to install, configure and run on the MT5 platform. It should adhere to a high standard of coding practice, with clear comments and documentation. The source code should be provided and be well-structured and maintainable. 30th November 2023
787 Use HMA Instead of EMA // ------------------------------------------------------------------ //| Custom Bams.mq4 |//| Copyright 2023, MetaQuotes Ltd. |//| https://www.mql5.com |// ------------------------------------------------------------------ 29th November 2023
788 Create A Standard Deviation Moving Average 29th November 2023
789 Sniper entry and exit. Close on opposite signal. Use grid. Make compatible with all broker. 29th November 2023
790 open order and monitoring the deviation and close order when is in profit, instead if is in loss continue open order when the deviation is up to 1% 29th November 2023
791 Sniper entry 29th November 2023
792 Please write an EA for Meta Trader 4 which uses support and resistances and the trend on the H1 Timeframe to initiate short term trades on the M1 optimized for trading Indices like US30 or DE40. No stop loss, but instead an adaptive grid system which adapts the current grid size to the market conditions, ideally with the use of an average true range. Avoid buy trades when the H1 Timeframe is overbought and avoid sell trades whenever the H1 Timeframe is oversold. Lot Size is calculated by a percentage of the current balance. 28th November 2023
793 mql4rsi swing trading same directional signal add position opposite directional signal close all open position and then open opposite positionadd lossing trademax add position 27th November 2023
794 rsi swing trade mql4 27th November 2023
795 when the candle is up on 1% i want to reverse the order and open in the opposite side if the order is in profit and the three previus candle are the same color 27th November 2023
796 write iStdDevOnArray in mq5 26th November 2023
797 i would like a momentum stratagy that only sells 26th November 2023
798 стратегия grid и авто лот 26th November 2023
799 calculate profit by pips for currency name in mq4 26th November 2023
800 cauculate current floating profit by pips for currency name in mq5 26th November 2023

This module is another development of the ayondo Lab. The application has an experimental character. It is a version in an early beta variant. New versions will be rolled out shortly. We explicitly refer to the further notes on the use of artificial intelligence. In addition, we would like to draw your attention to the disclaimer, which you should note before using it. Should you use the tool, you do so at your own risk.


The module is provided for free and independent use, subject to the above disclaimer. It primarily serves demonstration purposes. On the one hand, to show what AI-enriched process flows are already capable of today. On the other hand, the community is to be motivated to extensively test the actual performance, in particular, to identify weak points and susceptibility to errors.

We put our developments at the service of the global trading community. Due to the rapid growth of this technology field, we assume that it is not immune to misappropriation. We try to live up to our responsibility and only use technology when we believe it is associated with added value for the user. Because AI is uncharted territory, we follow all developments very closely. Whether you use our tools or those of other providers, we recommend that you look into the providers' motivation of the respective services before using AI-supported processes. Under no circumstances adopt AI output be without quality assurance. This also applies to the tools we provide.

For program codes, such as so-called Expert Advisors, which supposedly rely on AI-driven processes, we can confirm through the experience of diverse test series that these cannot be classified in the Holy Grail category. Before purchasing a program code ("EA"), test it thoroughly. Be fundamentally cautious about over-optimized performance claims!

If you are interested in further developing this and other applications, please feel free to send us your suggestions and ideas. Should you generate program code via the MQL AI Wizard, feel free to share the results generated via it with us or the social trading community. Via the provided support forum (registration required) you can exchange ideas with like-minded people and share your experiences.

* * *

For a first no-obligation test output click here.

* * *