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
541 write code to check the intersection of price level, price level valute is givven, then calculate how many touch happing in the last N bars 21st February 2024
542 mql4 code. Create 'Sell_Loss' variable, 'Sell_Loss' = total open loss of open sell trades. Create variable 'loss_sell', 'loss_sell' = MathAbs(Sell_Loss). Create variable 'temp_sell'. 'temp_sell' = the previous iteration value of 'loss_sell'. Create variable 'diff'. 'diff' = 'loss_sell' - 'temp_sell'. Print value of each variable. Create code for the other side, if the open loss is buy trades. 21st February 2024
543 I need a code that, if the previous trade was closed with profit, a new trade is opened with double risk, and after three successful trades in a row, the risk returns to the initial risk.And if the previous trade was closed with a loss, the risk is the initial amount 21st February 2024
544 compare current open OrderProfit() value with previous open OrderProfit() value 20th February 2024
545 Mark support and resistance which should be nearest support and resistance. Criteria for support and resistance is closing price of candle stick. For support and resistance, minimum should be two candles. 20th February 2024
546 Mulitple EMA of 200, 100, 50, 20 , buy close on while 20 crosses below 50, sell close on while 20 croses above 50 20th February 2024
547 use the heiken ashi indicator to buy when its green and sell when is red, put the stop loss on the low or high of the preview candle, read the market every new candle, and open every position with risk of 1% 19th February 2024
548 Write money management mql4 code for expert advisor that could recoverloss of open trades.When a signal is generated to open an opposite type trade to open losing trade type,find the open 'loss' of the open losing trade in account currency denomination.Find the lots volume to add to the new 'opposite to open loss' trade,with the calculation 'loss' / user Take Profit / 10 = LotsToRecover.If several of the same trade type are in loss, 'loss' = 'sum of losses'that are open losing trades of the same type.If the losing trade makes further losses after the open of the trade thatused LotsToRecover calculationIf when a new signal to open a new trade that is opposite type to the losing tradetype and the losing trade has made further loss since the open price of the tradethat used the LotsToRecover calculation value, calculate a new LotsToRecover value which updates and replaces the previous LotsToRecover value, where 'loss' = the loss made by the losing trade type since the open price of the trade that used the previous LotsToRecover calculation.Add the new LotsToRecover value to the trade that is associated with the signal that triggered the latest LotsToRecover calculation. 19th February 2024
549 suppose i have 10 positions that may can in different pairs or same pairs i want any 2 specific position to close which i mark to close when the combine profit get to a certain price which i will put, if you get what i want tell me with a example 19th February 2024
550 code a liquidity sweep expert advisor 18th February 2024
551 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
552 Please code heikinashi mt4 indicatorBullish candle:-Current candle open is average of preceding previous candle high 18th February 2024
553 I would like you to code a fractal channel indicator 17th February 2024
554 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
555 can you convert pine script to mq4 17th February 2024
556 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
557 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
558 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
559 ک استراتژی برام بنویس با زبون ام کیو ال 4 و این استراتژی بر پایه ار اس ای هستش زمانی ک به اشباع خرید رسید بفروشه و زمانی ک اشباع فروش رسید پوزیشن خرید باز کنه و حجم معاملاتی به صورت دستی 16th February 2024
560 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

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.

* * *