Hello, I've seen it's possible to have the profit/loss in the Strategy Tester , but how can this be done? I believe it may be making losses on the trades it is opening due to closing too quickly. Thank you for any help. All the best, little.trader
Hi I've just started learning to code EA and try and get my head around MT5, ticks, points etc, so I apologise in advance if I have done something very daft or missed something obvious! So I've been following a tutorial online that gradually developed a more complex EA. It seemed to make sense and
Is it possible to split a market order before it is sent to the server or are market orders immediately sent preventing any modification before being sent to the server? For example, if a market order for 5 lots has been placed, I'd like it split into 10 market orders of 0.5 lots each instead and
Hi everyone, I have been testing an EA using 1) Open Prices 2) 1 min OHLC 3) Real Ticks There is similarity between Open Prices and 1 min OHLC however there is a large difference when using real ticks. Well it's about 0.75% which I guess isn't too bad. It's just more than I was expecting. See the
I am getting the following error when I try and call CheckTrailingStopLong inside of TrailingMA and I cannot seem to figure out what the issue is. I feel like I am missing something basic. Error: 'CheckTrailingStopLong' - no one of the overloads can be applied to the function call Pertinent Code
hi guys, in this last few days, (i'm not quite sure when the exact date is), after updating mt5 i stuck with this "critical runtime error 565 in Oninit function" during optimization. the problem is just pop up suddenly out of nowhere, on the EA project i am currently working, and it doesn't shown
Hi , in javascript theres >>> and its called an "unsigned right shift" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unsigned_right_shift Is >> the equivalent in mql5 ? Thanks
Hi everyone, The include of the file Trade.mqh doesn't seem to be working for me (see picture include)... I still get the error 'OrderModify' - undeclared identifier I've tried all there is in the picture joined (solutions)
This happens: when I have this: if (array_st[ 0 ]<rates[ 0 ].open && array_st[ 1 ]<rates[ 1 ].open && array_rsi[ 0 ]<= 1 ) //&& IsNewOrderAllowed()==true) { valueB=array_atr[ 0 ]; Print ( "Open Order Buy" ); Alert ( "Buying" ); Orden= "Buy" ; sl2=
Hi all I am trying to draw a square from time1,price1 to time2,price2 across all open charts. I expected this to work but it only draws it on the first chart . long chartID=0; if(drawFVG) while(chartID >= 0) { RectangleCreate(chartID,"FVG"+par_temp,0,time1,price1,time2,price2);
Hi, I have managed to load the custom indicator and it partly plots on the graph when using the strategy tester. However the actual curve line does not seem to plot for some reason. Below is the code: //+------------------------------------------------------------------+ //|
Hi, I am relatively new to MT5 and having my first attempt to write an experimental EA after reading the tutorials and examples here. I am trying to initialize multiple instance of a customed indicator with different trend period using iCustom(), and trying to process the indicator value using
i want to stop expert advisor to trade after fixed profit target over account initial balance. i built EA for my prop firm account. this is the code i entered after my startegy . when i started backtesting , the EA still continues to trade. double floatingprofits ; input int startbalance = 50000 ;
Hi, I downloaded EURUSD M1 historical data and imported it on a custom Symbol. When I try to test an EA on it, I get several 10044 errors opening positions. 2018.11.07 19:02:51.499 2017.08.01 15:40:00 failed market buy 0.01 EURUSDh tp: 1.18944 [Only position closing is allowed] 2018.11.07 19:02...
I have found the help system absolutely useless and I am hoping someone can direct me to where/who can address the following issues. I have two demo accounts and I am attempting to start a bot in each one. I have VPS service in each account as well. Here are my actions and the subsequent error
Hi there, I have an EA someone made for me and whenever i try optimise the time just keeps going up and up? Example, it will start at 2 hours then go up to 10 hours and keeps going up. Why is this? Thanks
After I increase my position, I want to close all positions when the first order stops losing. How to obtain a stop loss signal
Hi, I am trying to modify this custom indicator to provide an additional result in the index buffer (trend direction). I have modified the code and the print function produces the correct value, however I cannot retrieve it from my EA. Here is the code - #property indicator_chart_window #property
Hello, I have a source code for an indicator, and I want to use it as an Expert advisor, but the problem i have that OnCalculate doesn't called automatically . int OnCalculate ( const int rates_total, const int prev_calculated, const int begin, const
Hi, I have two EAs, and when traying to going both, they don't give the same results (added) ... and don't know why. Example, they are both profitable since 2020 till today, and when added, they are not profitable
Hello Everyone, I am newbie to MT5 back testing software. I am testing a strategy with deposit $2500 and leverage 1:50 with 5 Lots each trade According to screen shot 5 lots require me to have $1090 margin, so $1410 remaining as a loss cushion Question: 1. Does the $2500 deposit entered in the
hi, I have no freelance works done yet, just started in freelance, and no one gives me job (0 of arround 20 or 30 jobs), they say that they are not going to give a work to some one without experience. If everyone thinks the same, I will never get a job. What can I do
please check the attached screenshots . There is a discrepancy between data showing in the backtest section and graph section
Hello, would any of you know in MQL5 how to open the configuration window of an expert advisor if a certain condition is met? For example, if the number of trades is greater than 5, open the EA's configuration window
[Deleted]
My EA is dumb, it finds high low on chart then plot calculated levels as on screenshot you can see price jumped and made a big volume candle so my EA consider its a valid and plot levels very far away where price does not go most often, How can i teach my EA to select next high in smart way in such
* Sorry English is not my native language I want to create multiple custom symbols and import historical data from a csv I have managed to do this however the .hcc file is large and the writing speed is slow. I do not know so much programming in my mind he is reading line by line and then writing
Hello, my target is to save from Expert Advisors two different sets of information in order to work with that data offline. To do that, I used FrameAdd to save the data. Having two different arrays I used two different IDs: FrameAdd ( "Stati" , 4 ,( double )dati_rep.numperiodi
Can anyone give me guidance on how to write code for trade on "Nasdaq100" symbol placing TP and SL
Hi! I don't know why, but until today my simulations using Optimization had been working with all the Agents I had defined: 14 Core's of a total of 24. Now, I see only 4 agents in use and the 10 at rest (sometimes "Ready", sometimes "Authorized"). And these 4 CORE's are now 45% each one, when
[Deleted]
Hi, I want to convert a chart autorefresh MT4 indicator I've found to MT5. The indicador uses a postMessages WM_COMMAND,33324 and RegisterWindowMessageW("MetaTrader4_Internal_Message"),2,1 but seems they doesnt work on MT5. Please, anyone could help me to find the correct messages? Greetings
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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.