Expert Advisors and Automated Trading - page 18

While performing optimization of input parameters via backtesting feature in metatrader 5, I wish to use some condition to stop the agents run of a particular combination of input parameter early. On reaching a certain condition while the agent is performing one such run, i wish to quit that run
Hi all, I want to do the following: -Step 1- catch information about a trade when a position (whether its direct market order or when price hits limit order) opens eg ticket, trade spread, slippage, price requested , price received attribute X value (eg X = 5, this is artificial attribute, not
[Deleted]
Can an EA (with or without DLL imports) manage diverse copytrading services such as MQL5, SignalStart and Duplikium for instance ? If yes, how ? If no, what are the other automated solutions to manage the risk while following multiples distinct signals from various services/websites
Hi, I have a EA which has a struct defined in it (because there are variables of its type in the EA mql file) and the struct type is being used to declare a variable in the header file too. // within mql EA file struct LLevel { ..... } // within mqh file LLevel expiredLLevel[]; After i include
Hello ya'll.....Question, is there an effective EA that can make tight scalps at relatively high frequency that you can turn on and off manually as well as choose the side to trade? On MT4 as well... Sounds simple, but I know it's really asking a lot. Thank you
Hi everyone, I am looking for a trailing stop loss which is activated after after reaching a certain value and it moves repetitively. I try to explain with an example: I buy XAU/USD from 2025.0, SL to 2023.0 (20PIPS) and traling stop loss from 2028.1 (30 PIPS). When the profit reach 31 PIPS (2028.1)
Can someone share an EA that will send alerts every time when price stop moving within one minute
Hi everyone, System: Windows / MT5 Environnement: Python Script + Socket Server (Python) + Socket Client (MQL5) Problem: After few hours (around 25-26hrs) the EA stop sending any data through the socket or the Socket Server stop receiving data I'm a fresh python coder, and for the last few days I'm
[Deleted]
Can an EA be able to completely halt trading from all sources ? Signals, other EAs, manual trading, etc. If so, can it resume trading from all the previously halted sources ? Such EA would have complete power over the account so I don't know if it's possible
[Deleted]
Hi, Can an Expert Advisor manage copytrading services (mql5, signalstart, etc.) ? For instance, one of its function could be to suspend/stop copytrading when a specific DrawDown is reached and then resume it after a specific time period. I know we'll likely need DLL imports in order to handle such
Hello everyone, I am testing a strategy on a demo account and something strange happened. The expert advisor executed a position at a price that did not exist at that time. How can this be possible? attached image. Thank you
Hello to all and thanks from now. My code can send "Buy Market Orders" to Binace (SPOT) successfully, but only this. I'm trying to do the same for Sell, Limit, StopLimit, Getting Current account Info, etc. But I could not. I need the URL structure for the mentioned other actions. Is there anyone
I created several Expert Advisors and want to upload them to the market for subscription signals. They use several indicators in unison to detect reversals, break out and perfect buying and selling opportunities on Gold and Dogecoin. I have one version that strictly buys and sells, and another
Hello everybody, I would have a simple question about backtest... Is there a way to know the total of traded lots ? It is possible to know the number of trades, but I cant see the number of lots... that's all.. :) bye bye
Introduction Anticipating the unforeseen is a cardinal principle in the realm of automated trading. Despite the meticulous design and rigorous testing of trading algorithms, the reality remains that even the most sophisticated Expert Advisors (EAs) are susceptible to making erroneous trades
Lets say you have an array that stores 100 lot values . And you have 100 inputs of different lots. You have to create 100 inputs input Lot1; input Lot2; . . input Lot100; and then have to store them in the array LotsArray[ 0 ]=Lot1; LotsArray[ 1 ]=Lot2; . . LotsArray[ 99 ]=Lot100; I would do this
Hello, Any expert advisor or script out there that when I open a trade it automatically places stop loss based on Previous X Number of candles high/low (Buy order the stop loss will be on previous X number of candles low and vise versa) . And not tied to any pair (open for all pairs and markets) on
Please help How to copy from one dimension array directly into the second dimension array of multi-dimension array, without using looping ?? Or is it possible to copybuffer from indicator result into the second dimension of multi-dimension array ?? Thank you
I have an EA based partly on a martingale system. The issue I have seen whilst testing on some platforms, e.g. ICMarkets is that orders can be triggered incorrectly on receipt of an "Old Tick". Here is an example from a debug comment I placed in the code: As you can see here the Ask is completely
I want to control the timeframes that an object would be visible on, however the timeframes are not fixed. Normally I would write: ObjectSetInteger ( 0 , name, OBJPROP_TIMEFRAMES , false , OBJ_PERIOD_H1 | OBJ_PERIOD_M15 ); But now, the system might require the object to become visible in 3 or 4
Hello Friends I am stuck with a following if condition!!! if (!(cCPRM15.rangeR2_R1(CPRD01,j,k) || cCPRM15.rangeR1_Top(CPRD01,j,k))) return ( false ); I want to return(true), if either one condition is true, else return(false). I have tried using && operator too, but it is always returning [false]
greeting to all please i want very simple code when price go up for 5 points place a buy order take profit after 20 points and stop after 15 points when price go down for 5 points place a sell order take profit after 20 points and stop after 15 points without indicator ***
Hello everyone, I am currently trying to develop a panel that requires aligning text with the right edge of a graphical background layer. I have been using the TextGetSize() function to calculate the width of the text and attempting to position the text by subtracting this width from the right
  Fastest broker  (2)
I’m in need of a really fast broker and vps. Today I’m using mql vps hosting and has about 0.7ms ping. Is there any way to get the ping down even more with no other broker
Hello,   does anyone know how does the experation function fo pending orders Works in MQL5?   i found there is an Void https://www.mql5.com/en/docs/standardlibrary/expertclasses/expertbaseclasses/cexpertsignal/cexpertsignalexpiration    but also you have the constant from the order Send Function...
Hi, I'm using the Strategy Tester to debug an MQL5 EA strategy that inadvertently issues many PositionModify commands - the journal gets full of server messages and its hard to see the wood from the trees. When using the Strategy Tester, is it possible to (temporarily) block server messages - I just
Would anyone know how to incorporate into a breakeven price calculation the swaps of the given positions? I am working on the function below, which calculate the BE price of positions of a given pair in a given direction, but I have not figure out a simple way to add the losses from swaps into that
Hello mql5 people. I am currently working on the optimization team for a project. I am a hobbyist coder and have coded a couple of my own bots, however for this project, I do not have access to the code. I was back testing without any problems until the version of the bots, licensing expired. As
  2 Time Frame EA  (4)
Hi everyone, do you have any idea why I get this error when backtesting? Best Reguards, ZeroCafeine. int OnInit () { Handle_MACD_D1 = iMACD ( _Symbol , PERIOD_D1 , FastEMA_D1, SlowEMA_D1, SignalSMA_D1, PRICE_CLOSE ); Handle_MACD_H4 = iMACD ( _Symbol , PERIOD_H4 , FastEMA_H4, SlowEMA_H4
Hello 1) I have seen some websites selling top ranked MQL5 EAs for 30USD and I heard from some people they work perfect. 2) I have been told that given mql5 market EA can work during backtest without purchase they can formulate a dummy MT5 where the EA thinks it is in testing mode but it is actually