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
301 make an ea that automatically closes trades for buys if price closes below the candle the trades were placed on and automatically close trades for sells if price closes above the candle the trades were placed on 17th April 2024
302 Multi currency hedge and grid system 16th April 2024
303 identify liquidity zone 16th April 2024
304 Can you create an "Trade Manager" which calculate the lot size by the risk pips and the risk money in MQL5 16th April 2024
305 Moving Averages (MA):Two moving averages are calculated: a short-period MA and a long-period MA.The short-period MA is typically faster to react to price changes, while the long-period MA is smoother and slower to react.Relative Strength Index (RSI):The RSI is calculated to assess whether an asset is overbought or oversold.A value above 70 indicates overbought conditions, while a value below 30 indicates oversold conditions.Stochastic Oscillator:The stochastic oscillator is used to identify potential trend reversals.It consists of two lines: %K and %D. A crossover of these lines can signal a potential change in trend direction.High-Impact News Events:The code includes functionality to check for high-impact news events related to the USD currency.If a high-impact news event is detected, it prints a message to notify the trader.Pre-Alert for Potential Trade Signal:A pre-alert function is implemented to signal potential trade opportunities.When a potential trade signal is detected, it prints a message to notify the trader to check for confirmation.The specific conditions for entering a trade are not specified in the provided code and need to be added based on your trading strategy.Chart Plotting:Arrows can be plotted on the chart to visually indicate potential trade signals.Arrows can be customized based on the direction of the trade signal (up for bullish, down for bearish). 16th April 2024
306 using alligator indicator, generate a custom indicator, who calculate, derivs and integrals for the measure of trend, area, pendant of each line of alligator line 16th April 2024
307 give me simple grid startegy 14th April 2024
308 breaker block bot 14th April 2024
309 How do you test for missing bars in mql4? 14th April 2024
310 Can you program in mql4? 14th April 2024
311 I need to turn mt4 indicator into expert advisor 13th April 2024
312 write mql4 code that uses atr as stop loss, equity and risk percent and stop loss for lot calculation 13th April 2024
313 write mql4 code than uses parabolic sar as stop loss 13th April 2024
314 i want to make an Expert Advisor in mt5 language editor which meet following condition. Open long position if RSI is crossing over 55 and CCI is >=100 and MACD histogram in green for 20 pips and sl for 20 pips with lot size of .1 13th April 2024
315 simple moving average crossover stratergy with trailing stoploss 13th April 2024
316 What can you say about the following code?// Define input parametersextern string IndicatorName = "Trending Arrow";extern int ArrowCode_Up = 233;extern int ArrowCode_Down = 234;extern int Period = 14;extern int Threshold = 20;// Define global variablesdouble previousHigh = 0.0;double previousLow = 0.0;// Define OnTick functionvoid OnTick(){ double currentHigh = High[1]; double currentLow = Low[1]; if (currentHigh - previousHigh > Threshold * Point) { ObjectCreate(0, IndicatorName "_Up", OBJ_ARROW, 0, 0, 0); ObjectSetInteger(0, IndicatorName "_Up", OBJPROP_CODE, ArrowCode_Up); ObjectSetInteger(0, IndicatorName "_Up", OBJPROP_TIME, Time[1]); ObjectSetDouble(0, IndicatorName "_Up", OBJPROP_PRICE, currentHigh); ObjectSetString(0, IndicatorName "_Up", OBJPROP_TOOLTIP, "Strong Trend Up"); } if (previousLow - currentLow > Threshold * Point) { ObjectCreate(0, IndicatorName "_Down", OBJ_ARROW, 0, 0, 0); ObjectSetInteger(0, IndicatorName "_Down", OBJPROP_CODE, ArrowCode_Down); ObjectSetInteger(0, IndicatorName "_Down", OBJPROP_TIME, Time[1]); ObjectSetDouble(0, IndicatorName "_Down", OBJPROP_PRICE, currentLow); ObjectSetString(0, IndicatorName "_Down", OBJPROP_TOOLTIP, "Strong Trend Down"); } previousHigh = currentHigh; previousLow = currentLow;}This mql4 code generates an MT4 indicator that will place an up or down arrow on a chart when there is strong trending occurring. The indicator uses the previous high and low values to determine if the current high or low has exceeded a specified threshold. If the difference is greater than the threshold, an arrow object is created and displayed on the chart. The arrow code, period, and threshold can be customized through input parameters. The indicator is designed to be used on the Metatrader platform. 12th April 2024
317 create an mt4 indicator that alerts me for buy signal when 2 emas of my choosing cross on candle close price and price at anytime today went lower than previous day low. it should also alert me for sell signal if the opposite happens 12th April 2024
318 i want an expert advisor for mt4 which can calculate and place : trade size, stop loss, take profit, trailing stop , automatically based on current market conditions , the ea should use order flow strategy to do trading. 12th April 2024
319 Create a chatbot 11th April 2024
320 indicator("Smart Money Range [ChartPrime]",shorttitle = "SMR [ChartPrime]" ,overlay = true,max_boxes_count = 500,max_bars_back = 2000)string visual = "➞ Visuals Settings🔸" string core = "➞ Main Core Settings 🔸"int atrLen = 30float mult = 0.3float per = 10.0float perc = close * (per/100)float srdatr = ta.atr (atrLen) * multfloat band = math.min (srdatr, perc) [20] /2int sync = bar_indexvar BINDEX = 0var line [] Lines = array.new_line() var label [] Labels = array.new_label() float [] TotalVolume = array.new_float()float [] Greenvolume = array.new_float()float [] redvolume = array.new_float()var ph = float(na)var phL = int(na)var pl = float(na)float lowestValue = lowfloat HighValue = highfloat Midhigh = highfloat Midindex = bar_indexint lowestIndex = bar_indexint HighIndex = bar_indexfloat HH 11th April 2024

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.

* * *