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
801 i want a custom indicator which depends on the fractal indicator which comes with the mt4 terminal basically for bullish patternfrom a low fractal, a higher high fractal must be formed followed by a higher low fractal...the higher higs and lows can repeat until the last higher low is broken to form a lower low...after that has happened, a horizontal line must be drawn from the last higher low to the point where it was broken labeled MSS and another line from the second last higher high to the point where it was broken leading to the last higher high labeled BOS ...after all this has happened an alert must be sentfor bearish from a high fractal, a lower low followed by a lower high must be formed as many times until the last lower high is taken out from the last lower low to form a higher high...a horizontal line labeled MSS must be constructed when the last lower high is taken out from the last lower low to form a higher high another line must be drawn when the second last lower low is taken out to form the last lower low the line must be labeled BOS it is from the lower low fractal to the point where it was taken out...after all this has happened an alert must be sentfor the indicators parameters i must be able to choose which fractals i want to see either from all fractals or only the ones that contribute to the market structure above...default is allanother parameter is to choose color and thickness of the horizontal lines separately for BOS and MSS. 25th November 2023
802 Can you generate a simple Money Flow Index expert advisor, please? 25th November 2023
803 return last position opentime in mq5 25th November 2023
804 return last position opentime in mq5 25th November 2023
805 Rule 1: Initiate a buy position when the price surpasses the opening price of the candle. Set the stop loss at the opening price of the candle. Conversely, open a sell position if the price drops below the candle's opening price, with the stop loss also set at the candle's opening price. 24th November 2023
806 when price is out of bands, place stop pending order at the price of bands, delete order if not triggered within 2 hours, when recent 5 bars price is out of TMA bands, place stop pending order at the middle price of bands , delete order if not triggered within 2 hours, 24th November 2023
807 when price is out of bands, place stop pending order at the price of bands, delete order if not triggered within hour, when recent 5 bars price is out of TMA bands, place stop pending order at the middle price of bands , delete order if not triggered within hour, 24th November 2023
808 when price is out of bands, place stop pending order at the price of bands, delete order if not triggered within hour 24th November 2023
809 bollinger bands and money flow index 24th November 2023
810 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 Rules Buy 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 Rules The 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 Management The EA should risk a fixed percentage of the account balance per trade. This should be adjustable in the EA's settings. 7. Risk Control In 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 Alerts The EA should notify the user via MT5's inbuilt email and notification system when it opens or closes a trade. 9. Conclusion The 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. 23rd November 2023
811 Rsi and bollinger band 23rd November 2023
812 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. 4. Risk Management The EA will be developed with in-built risk management features ensuring that the user's capital is protected at all times. These include: Stop-Loss: The EA will set a stop-loss level for each trade, to be determined by the user. Trailing Stop: The trailing stop feature will move with the market, continuously locking in profits if the price spikes favorably. Lot Sizing: The lot sizes will be adjustable and the user will be able to set it depending on their account size and risk tolerance. The EA should not enter trades that represent more than 2% of the user's overall capital. 5. Order Management The EA will manage all aspects of order execution including entry, stop-loss, take-profit, and management of open trades. All orders will be executed at market prices. 6. Alerts The EA will generate alerts (both visual and audio) whenever a trading signal is identified and when an order is placed or closed. 7. Reporting The EA will maintain a detailed log of all activities including trading signals, order executions, and adjustments. The information should be reportable for performance analysis. 8. Language and Platform The EA will be developed using the MQL5 language to be compatible with the MetaTrader 5 platform. The developer should follow well-established coding practices for performance optimization and future-proofing. Note: The above specifications are subject to change pending further consultation with the client. The developer must receive clear approval on any changes before implementation. 22nd November 2023
813 Build me a simple tradin EA for MT% that uses 3 SMA indicators. here are the rules: SHORT Entry:The 4-period SMA is below the 25-period SMA.The 25-period SMA is below the 50-period SMA.The 2-period SMA crosses below the 4-period SMA. LONG Entry:The 4-period SMA is above the 25-period SMA.The 25-period SMA is above the 50-period SMA.The 2-period SMA crosses above the 4-period SMA. Risk Management:Implement a stop loss (either fixed or ATR-based with adjustable period).Choose a fixed lot size or a percentage of balance/equity for risk management. 21st November 2023
814 buy every new candle 21st November 2023
815 give me a professional MQL5 code that make an expert that get a price in a box with a button to chose order type like buy or sell and open a tread that named "T1" on a given price and also get an input named "SL_pip" .if T1 was Buy type then T1 take profit would be set on "BuyTP=price 3*SL_pip" else if T1 was sell type then T1 take profit would be set on "SellTP=price -3*SL_pip" . if T1 is Buy so put an pending sell order named T2 in "SellPrice=price - SL_pip" with take profit "SellTPP=price - 4 * SL_pip" .if T1 is sell so put an pending buy order named T2 in "BuyPrice=price SL_pip" with take profit "BuyTPP=price 4 * SL_pip" . when current price pass through T2 order price and T2 changed from pending order to a deal tread then if T2 is Buy so put an pending sell order named T3 in "SellPrice" with take profit "SellTPP" .if T2 is sell so put an pending buy order named T3 in "BuyPrice" with take profit "BuyTPP" . when current price pass through T3 order price and T3 changed from pending order to a deal tread then if T3 is Buy so put an pending sell order named T4 in "SellPrice" with take profit "SellTPP" .if T3is sell so put an pending buy order named T4 in "BuyPrice" with take profit "BuyTPP" . when current price pass through T4 order price and T3 changed from pending order to a deal tread then if T4 is Buy so put an pending sell order named T5 in "SellPrice" with take profit "SellTPP" .if T4 is sell so put an pending buy order named T5 in "BuyPri 21st November 2023
816 Trading Strategy: The core of any EA is its trading strategy, which defines the decision-making process for entering and exiting trades. A well-defined strategy should be based on sound technical analysis principles, incorporating indicators, oscillators, and price patterns to identify profitable trading opportunities.Indicator Selection: The choice of technical indicators plays a crucial role in shaping the EA's trading behavior. Popular indicators like RSI, MACD, and Stochastic Oscillator can provide valuable insights into market trends, overbought/oversold conditions, and momentum shifts. However, it's essential to select indicators that complement each other and align with the overall trading strategy.Parameter Optimization: Each indicator comes with adjustable parameters that influence its sensitivity and signal generation. Optimizing these parameters is crucial for tailoring the EA's behavior to specific market conditions and trading styles. Backtesting and forward testing are essential tools for optimizing parameters and evaluating the EA's performance under different market scenarios.Risk Management: Effective risk management is paramount for protecting capital and preventing excessive losses. Implementing stop-loss and take-profit orders is fundamental to limiting potential losses and locking in profits. Additionally, position sizing strategies, such as fixed or variable lot sizing, can help manage risk exposure and optimize capital utilization.Adaptive Behav 21st November 2023
817 create a code based on bollinger bands in which when price cross over middle band, buy position open and when price cross below middle band, sell position open. when buy position is open and price cross over upper bollinger band, close buy position. when sell position is open and price cross below lower bollinger band, close sell position. additionally add stop loss of 100 pips to both buy and sell positions so that when price go in a opposite direction from the buy or sell position then the position close. there must be only one position at any given time. the postion are allowed to open only between 2am to 22pm and any open position after 22pm must close. 20th November 2023
818 Code a script that'd can do the following places pending orders 20th November 2023
819 create a code based on bollinger bands in which when price cross over middle band, buy position open and when price cross below middle band, sell position open. 20th November 2023
820 generate the complete mql4 code for a renko indicator. do not include any instructions or notes in the code. 20th 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.

* * *