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
1 write code using mql4When an open sell trade is in loss and there is a signal to open buy trade, find the number of pipsbetween the sell open price and the buy signal, put the result in variable 'trade_loss".If more than one losing sell, add the result from each sell into the 'loss_pips' variable.Also if the sell trade continues to make loss and a new buy signal is generated, and the new buy signal priceis higher than the previous buy trade open price, find the number of pips between the previousbuy open price and the new buy signal price and replace the value held in variable 'loss_pips' withthe new result.Create variable 'sell_loss_vol'.Find open lots volume of losing sell trades add the values into variable 'sell_loss_vol'.When the variable 'loss_pips' is updated perform calculation 'loss_pips' *'sell_loss_vol' / 10and put result in variable 'new_lots'.Also create code for if the losing trade is buy. 18th February 2024
2 Please code heikinashi mt4 indicatorBullish candle:-Current candle open is average of preceding previous candle high 18th February 2024
3 I would like you to code a fractal channel indicator 17th February 2024
4 1.Strategy PropertiesEntry Lot: 0.1Stop Loss: 467Take Profit: 3012. Logic Entry-Long EntryMACD SignalMACD line crosses the signal line downwardApply to: CloseFast EMA: 2Slow EMA: 25MACD SMA: 10-Short EntryMACD SignalMACD line crosses the signal line upwardApply to: CloseFast EMA: 2Slow EMA: 25MACD SMA: 103. Exit Entry-Long ExitEnvelopesThe bar opens below Upper Band after opening above itApply To : CloseMA method: SimplePeriod: 52Deviation %: 0,63-Short ExitEnvelopesThe bar opens below Lower Band after opening above itApply To : CloseMA method: SimplePeriod: 52Deviation %: 0,63 17th February 2024
5 can you convert pine script to mq4 17th February 2024
6 When an open sell trade is in loss and there is a signal to open buy trade, find the number of pipsbetween the sell open price and the buy signal, put the result in variable 'trade_loss".If more than one losing sell, add the result from each sell into the 'loss_pips' variable.Also if the sell trade continues to make loss and a new buy signal is generated, and the new buy signal priceis higher than the previous buy trade open price, find the number of pips between the previousbuy open price and the new buy signal price and replace the value held in variable 'loss_pips' withthe new result.Create variable 'sell_loss_vol'.Find open lots volume of losing sell trades add the values into variable 'sell_loss_vol'.When the variable 'loss_pips' is updated perform calculation 'loss_pips' *'sell_loss_vol' / 10and put result in variable 'new_lots'.Also create code for if the losing trade is buy. 17th February 2024
7 I have variable called 'crnt_loss' whose value is updated by some event. When the value is updated i need the previous value subtracted from the new value and result stored in variable called 'diff' which is to be updated then the 'crnt_loss' gets a new update. 16th February 2024
8 The custom metric is called "custom.googleapis.com/geocoding/here_api_distance_test”. There’s no specific label needed. I want to display them as a Pie chart, where each slice represents a range of ten (for example “0 to 10”, “10 to 20”, “30 to 40”…etc). I want the value of the slice to be the percentage of the total number of values that are inside this range. 16th February 2024
9 ک استراتژی برام بنویس با زبون ام کیو ال 4 و این استراتژی بر پایه ار اس ای هستش زمانی ک به اشباع خرید رسید بفروشه و زمانی ک اشباع فروش رسید پوزیشن خرید باز کنه و حجم معاملاتی به صورت دستی 16th February 2024
10 1. create a buy signal when 3 consecutive green candles appears. 2. create a sell signal when 3 red candles appears. 3. the take profit is at 2 pips. 4. the account size is 1,000,000.00. 5. the risk per trade is 0.1% of the total account size. 6. no stop loss required. 15th February 2024
11 build for me robot ea break zonezone in time 14:30 to 16:30after 16:30 open trade after break high or low in time 14:30 to 16:30 break and open order 13th February 2024
12 ChatGPT 3.5UserScrivi una funzione mql4 che chiuda tutti gli ordini aperti al mercato se si verifichi almeno una delle seguenti condizioni:1) In OrdersTotal () sono presenti 1 ordine buy e 1 ordine sell 13th February 2024
13 can you write code for an EA in MT4 that opens trades based on slow moving SMA and fast moving sma and martingale and takes the following inputs from the user: initial lot size, martingale multiplier, minimum distance between trades (in points), equity protection %, take profit (in points), trailing start (in points), Trailing step (in points), Action on equity hit (remove EA / continue trading) 13th February 2024
14 I want a indicator work with adx and DI 13th February 2024
15 Give me martingale strategy 12th February 2024
16 can you create a trading bot in pine script that looks at the previous two candles, if the trend is up, higher high and higher lower, on the second candle and the distance between the closing price of the second candle to high of second candle is larger than that of the first candle, you place a sell at the opening of the next candle. Then have it do the reverse for a buy order. Also give it a 5 pip take profit 12th February 2024
17 purchase order lot 0.01, buy limit buy stop, sell limit sell stop, depend on market price, distance between order is 5 pips, take profits every 10 pips, no stop loss, everytime order is triggered plot a new purchase order at the triggered price 11th February 2024
18 اندیکاتور ساده بنویس 11th February 2024
19 on ftse100 cash open buy trade when price is 5 points lower than the weighted mean and take profit at 1 GBP with 10 GBP stop loss 11th February 2024
20 create a 90% success rate EA trading bot with best strategy 11th February 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.

* * *