Hi guys, please can someone help me and write me a complete divergence function with positive and negative RSI by default and hidden? but the trade should be opened as shown in the image. Only the divergence function, with these conditions. thank you Positive divergence Negative divergence Hidden
Hello I created my own EA for my personal use When I back test on one broker the result is profit for example $250 test balance with 0.01 lot end with profit like 10 or 20 percent profit, but when test the same EA on another broker data the result is loss What makes the backtest results differ? and
My goal is get the Position history of my account into excel spreadsheet automatically. No export to CSV or stuff like that. I found a lot of examples to get real time price, open and close trades, bid, ask and etc... nothing about retrieve the trading history. The same way you get the automatic
Anyone use or know of a utility tool that will move the take profit to break even when the position moves against you a certain number of determined pips? Thanks in advance
Greetins, I'm facing trouble starting my recent aquired robot. I can test it with no problem on MQL5, but when I try to add to my real account, I keep getting the anexed image error. I'ts in portuguese, but it says: "Activate automatic trading for xxxxxx". Algotrading is already enabled. The logs I
Hi! I was backtesting my code it was working kinda perfectly but suddenly from yesterday it didnt work...The thing is it was working around 9 pm...but after that at 9.05 IST the same export advisor didn't give me any backtesting results...no issues with the code...where as other codes were running
So I have been reading through https://www.mql5.com/en/forum/451498 and https://www.mql5.com/ru/forum/442814/page2 and from what I understand the iClose/iOpen and things like CopyTime can return wrong values if not synced up and is therefore unreliable? But with both don't you still just check and
Hi guys, I have an EA compiled without any errors but in backtesting it wont do anything, just stucked. There is also no errors in journal. What I'm missing here: #property copyright "Copyright 2023, MetaQuotes Ltd." #property link " https://www.mql5.com " #property version "1.00" #include
Hey, I have been trying to write one function that would calculate LotSize regardless of the instrument, but it seems that despite all my efforts the program seems to throw weird lot sizes anytime I use it for index - ES or NQ. It's working good for forex, gold and crude. I am yet to try it fully on
Greetings All, If I may, Id like to start a discussion on how and why you choose which optimized setting to use after results. In particular, Profit v Drawdown. Or do you use Profit factor? I have attached two results as an example. Which of the two would you choose and why? * If there is already a
Hi , I am writing a code in OnTradeTransaction() event handler ,that whenever order hit stoploss i am taking it's position id of deal type DEAL_ENTRY_OUT and iterating HistoryDealTotal() to find DEAL_ENTRY_In for that position_id but problem is HistoryDealTotal() is holding only latest deal for
if more than one tickets are opened at any time (not opened at the same time), MQL5 wasn't able to close all of the tickets (see enclosed figure). Enclosed: Call to close long and short Code of closing functions Figure show not all are closing void closeLong(){ int total = PositionsTotal ();
Hello great people. Kindly help me fix the error in my EA. It fails to pick trades. //+------------------------------------------------------------------+ //| BB_Ichimoku_AD_RSI_ATR.mq5 | //| Stricter Confirmation Logic v2.6 |
...please help...I updated my expert...what are the next steps and what should I do with the data...how do I adjust the expert to the update so that I can test it for better results...what should I do with the data from the update
When using optimization, the Drawdown % displayed for each pass is equity drawdown maximal. How can we get it to display equity drawdown relative? Equity drawdown relative is much more useful for testing EAs that scale with account size. I've seen this posted a couple times, but it seems like the
Hello MQL5 community, I'm developing an Expert Advisor in a netting account . the EA work perfectly but when i want to publish my ea i get these error messages: failed market sell 0.2 EURUSD sl: ... tp: ... [Invalid stops] failed modify #... sell 0.2 EURUSD sl: ... tp: ... [Modification failed due
Hi I have this message on my version 5120: "Resource indicator .. is compiled for debugging. That slows down the performance. Please recompile the indicator to increase performance." I'd like to, but I can't find the option to remove to avoid compiling with debugging. Could you help me? Thanks
How can I get SymbolInfoSessionTrade information using mt5 Python integration
Can anyone check out the following script, and explain why it has not yet generated any trade, and whether it well ever trade. //+------------------------------------------------------------------+ //| Expert Advisor: XBRUSD EMA Scalper - 30 Ticks Target |
I am building with the help of Gemini a code that reads the journal and checks for specific messages in order to enter a trade. For some reason the "MqlJournalInfo" function is not working on 3 different PCs that I tried, this is the code below and the error I get is "'MqlJournalInfo' - undeclared
Hello everyone, I'm trying to create an EA that reads messages from the Journal (e.g., "GBPJPY diver for BUY") to trigger a trade. I've tried using the JournalRead() function with the MqlJournalInfo structure, but I'm getting the compiler error: `'MqlJournalInfo' - undeclared identifier'. The
Hi everyone, here posting on a simple apparently stupid topic for the mayority of y'all but still struggling in it. I've been coding for some months and gaining more experience every time but there's still this aspect i'm struggling coding. I'd like to create a function that can work on all the
I have developed my strategy as very conservative trading system and usually do not place trades everyday and the conditions do not always happen with all pairs so trading activity or trading operations is not much And that's what I want in my strategy - and this logic am using makes 5% to 15% per
Hello there, I've been experimenting with AVX (and its derivatives AVX2 + AVX512) support in MQL5. - Assuming, and to some extend verified, AVX is being utilized by the compiler, if enabled, we should be able to see significant speed increase on some types of operations. - Due to the lack of
Hi fellow dev! I stumble apon something quiet disturbing concerning the strategy tester. I test the same EA with the same parameters twice. First test was with visual mode and the second was without visual mode. Both result where completely different. I made an hypothesis, since my strategy use
As the title says the results of my EA are significantly different in the strategy tester when the visual mode is disabled. I know this doesn't make any sense, but look at the results check the attached images to see the results. Anyone knows why this happens?? Much appreciated
Hi guys, One of my EA's implement various trading strategies and therefore I have a library of set files that constitutes a trading portfolio, i.o.w like for example 20 x different set files will be running on the same EA on one particular account. I am aware of ExpertAdd() and ExpertRemove()
Hi! I wanted to ask if someone could spot my 'logic' with regards to perfecting reversals wether bullish or bearish. Bearish reversal: High[ 1 ] > High[ 2 ] && Open[ 0 ] < Close[ 1 ] && Volume[ 0 ] > Volume[ 1 ] Bullish reversal: Low[ 1 ] < Low[ 2 ] && Open[ 0 ] > Close[ 1 ] && Volume{ 0 ] > Volume[
i want to do it via console like this, fully auto through batch console [Common] Login = xxx Password= xxxxx Server = Fxxxx DataFolder = "C:\metatrader5\mt5tester" [Tester] Expert = "4.31.45_s_gbpcad_h4_fus_wf10_8_v141.ex5" Symbol = GBPCAD Period = H4 FromDate= 2024.01 .01 ToDate = 2029.01 .01
Hello everybody As we know Windows officially support arm64 devices and also great MT5 work well But MQL5 Cloud Network Strategy Tester work only on x64 devices, can anyone help to make it work on arm64 windows11
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.