[Deleted]
I want to filter normal clicks on chart with clicks on objects I am using this code but its not working if (id == CHARTEVENT_CLICK && id!= CHARTEVENT_OBJECT_CLICK ) { //print something } How can I filter in these two types of clicks
Hello everyone, I want to ask one thing about mt5 strategy tester, I am testing an EA on M5 chart, I select M5 in settings and when I click on START to open new tester window it start testing on D1, further the suspicious thing is that It shows M5 at above left corner of chart but candles are
Hey i developed an EA - it opens very much orders. 100 and more per day. I made there specific parameters for TP and SL. After some pips Profit it trails the SL to BE and then like a normal trailing stop. In the backtests it works perfect. When i do it on a live account the trailing system doesn't
Dear all, In reference to this tutorial at https://www.youtube.com/watch?v=TAzM5Vd9nLs where I need to convert Symbol values into my accounts currency. I am looking to resolve the following: How can I know (programmatically) the currency of a non forex Symbol say UK100, GER40 or XAUUSD ...! I have
Attached Code of My EA (relavant parts only) //+-----------------------------------------------------------------------------------------------------------------------------+ //| INPUT: Input for variable used in the expert advisor //| NOTE: Indicator parameters defaluted in CBase class (
The SYMBOL_BID and SYMBOL_ASK are always returning zero. Did I something wrong? #include <Trade\Trade.mqh>#include <Trade\SymbolInfo.mqh>#include <Trade\AccountInfo.mqh>CTrade trade;CSymbolInfo symbolInfo;CAccountInfo accInfo;int OnInit(){ if(!symbolInfo...
Hello.. I want make Candlestick EA in one file mql5. no dass library.. So I want convert Candlestick Indicator to Expert Advisor ..but have problem with OnCalculate.. OnCalculate only for indicator..For Expert Advisor only ontick.. For EA this not able to use this OnCalculate: How solution
Hello, I am currently in the process of back testing an EA on MT5. I want to use the Every Tick Based on Real ticks option. The broker I am using is Tick Mill (a well known broker) from a demo account. Does anyone have any experience with this tick data? In terms of accuracy, is it above 90%? Can
HI, I'm coming from Excel VBA and relatively new to MQL5. In VBA IDE, we can set a condition formula in Watch Window (e.g., Var1 = 3, Var2 = 7, etc.) and Debugging will pause automatically when that condition becomes true. In MQL5 IDE, can we do something similar without having to insert
//I have a problem that I need your help to suggest. In the backtest process, there is only one open order. after it closed There are no more open orders. How do I fix it? #include <Trade/Trade.mqh> CTrade trade; //+------------------------------------------------------------------+ int
no errors, but no trades are done while testing ... why? //#include <MetaTrader5\MetaTrader5.mqh> #include <Trade\Trade.mqh> #include <Trade\AccountInfo.mqh> #include <Object.mqh> // Resto del código de tu programa // Definir los parámetros de entrada input int MA_Period = 20 ; // _Period de la MMA
Hi all, please let me know if I'm allowed to ask this or if I'm in the right section but can someone answer my question. So ive published a product (EA) with the wrong name to what I wanted, now I cant change it as its been published. Am I able to hide the product from market (as you cant delete)
Hi guys, today I experienced a very strange EA behavior when i tried to read from a txt file in the MT5 tester. The file is located in the "normal" terminal folder and should be loaded by using #property tester_file. Since it did not work with the txt file I also tried opening a csv file. Now the
Hello everyone, I'm new to coding, currently Im writing one that will open trade based on a specific time. For example, if the current time is 21:00:00, and match the condition time, it will open a market order. However, the problem is the OnTick() function requests the order continously, it lead to
What is difference between Symbol() and _Symbol? Any help would be highly appreciated.
Hi Guys, I was backtesting my EA on two different brokers ( all two proposed by terminal in two different PC) , brokers are specifically : AMPGlobal ( IP=78.140.180.54 located in netherland) and MetaQuotes-Demo IP=78.140.180.48 located in netherland ) the problems is that I started the EA with a TF
//+------------------------------------------------------------------+ //| trailing_stop.mq5 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com |
How can I fix a trading algorithm that was encoded my trading ID, to put another ID because I want use another broker Please help. the developer is not responding to me to assit
hi I included this library: #include <Trade\Trade.mqh> but when using this variable: FreeMargin() this error eppears: what is wrong
i'm trying to use an ONNX file in my expert. my onnx file has 49 inputs at input index 0, has 3 outputs at output index 0, and 1 output at output index 1. when i try to run session vector v_input = vector ::Ones( 49 ); vector v_output( 3 ); vector x_output( 1 ); if (! OnnxRun (onnx_handle
Please I wrote out this code but whenever I try to compile it gives me this errors //+------------------------------------------------------------------+ //| ARTaker.mq5 | //| Copyright 2023, MetaQuotes Ltd. | //|
I wonder about the accuracy of broker data on MT5. I made a lot of comparisons on different backtests carried out recently and my findings are quite disappointing. I find that my backtests can vary greatly from one broker to another while having exactly the same parameters in my EA. In addition, I
Heya team, I got this error today and I don't have anything to catch random breaks like this that I'm not foreseeing. The EA ended up spamming the server this way an unmentionable amount of times. How do I write some catch code for odd errors like this? Maybe something like "If error count exceeds
Hi! I'm currently trying to stich my first EA together and was finally able to compile without any errors. When running the backtest, I can see all the data/indicators I wanted to include showing up properly, but no trades are being executed, even though all conditions are met. I suppose the EA is
Hey guys i'm trying to code a bot with the the last 3 values from zig zag, bot will have some conditions. First, have a fixed timeframe to get the data, if reach 50% level and 38% from the last 2 values from zig zag, reduce timeframe for one i choose and buy or sell if a new candle is positive or
TicketType = myposition.Type(); //A TicketType = myposition.PositionType(); //B I used option //A above to get the ticket type using the standard libraries #include <Trade\Trade.mqh> #include <Trade\OrderInfo.mqh> / #include <Trade\PositionInfo.mqh> #include
Hello, good day, fellow programmers. I wanted to ask if there is a better way to get the minimum/maximun values. I use this function to add and/or subtract to open a position, either buy or sell. but I get different results when changing the values, for example from 1 to another value, for example
Hi guys, i'm building some services like myfxbook and i want to can send request directly to the broker mt4/mt5 server without going trough a MT4/MT5 terminal, is it any reference about the protocol? Any librairy for python/c++/rust doing that? Best regards
I experience a really bad performance with the strategy tester on the following setup (which has plenty of power to offer): Dell server with Intel Xeon Gold 6326, VMware ESX 7.0 as a host system and Win 2022 Server as a guest. The guest has 32 cores and 256GB RAM assigned. This is a setup that
Hello all, This is a very straightforward question. How much do we need to pay to get a very profitable fully automated EA right from purchase already optimised? What I have in mind is at least 10-20% profit per month from the available capital while combining 2 or 3 robots of different strategies
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.