Hi, I don't know why, but can't manage to read CSV or TXT I have tried all the possible combinations for reading path, and always get the same results (error 5004 or 5002) what do I have to change to read the txt? 2024.12 .22 20 : 25 : 37.034 Core 01 2000.01 .01 00 : 00 : 00 File does NOT exist
nstructions on using the MT5 Strategy Tester to analyze the bot's performance with historical data. How to Trade Using a Bot : A demonstration of executing live trades through an automated bot on MT5
I've been wondering what tips do you follow so that your Expert Advisors use are more stable, use less pc resources, not freeze, etc
Hi, nice to meet you Vincenzo, I'm new here and I hope I'm not making a mistake. I'm trying to write my own EA and I can't add a dynamic stop loss to the trades already executed. Example: I would like my EA to set a stop loss to the buys/sells already executed only when they have already matured a
I am trying to develop a strategy that works on a tick basis. I thought I would code this strategy very easily at the beginning, but it started to get more complicated as I progressed. I would like you to help me find a solution to my three different problems or share your ideas. This hedge
Hi everyone, I'm facing an issue where my EA isn't executing any trades on both demo accounts and during backtests. The EA loads correctly, "AutoTrading" is enabled, and there are no errors during compilation. I've verified the parameters and tried different symbols, timeframes, and simplified the
Hi Folks, ich have a stange problem: The Items of a dropdown area, no matter if a combobox, a datepicker or something else. If any other object is behind the dropdown, the red marked area is not clickable. If nothing is behind the dropdownarea, all works fine. My Try: I catched the click on the
Hi The expert don't work There is a difference between the vps and time in my computer or broker's. isn't to fix it. Pls help me
Hi, I have an EA running on MT5 and I was looking at the journal and dont know what the line that says modify is from. Is this my EA doing this or is it something from MT5 or the broker? This is what it looks like when a trade is put on: RH 0 06:57:02.435 Trades '1496304': accepted exchange buy 1
Hi I have this code double result = NormalizeDouble (Current_Balance/ 20000 , _Digits ); When the balance is 200 $, the result is really 0.016 but the output is 0.02 !! I know that MT5 doesn't accept 0.016 as a certain volume so I'd like to set the "result" to 0.01 not 0.02. Please help me with
Hi, I have searching and testing everything and dont get it... I want a function returning current profit / loss for all open positions. This function that I found here does not match what is showing in MT5 Trade tab?? What I want to achive is,, Take three trades, Monitor each ones profit/loss, Read
Hello, the function ResultOrder() just after opening a position does not work in my code . I need to add a sleep between, do you know why ? it s no documented ? regards , obj_Trade.Sell(order.volume,order.symbol, 0.0 , 0.0 , 0.0 ); Sleep( 10 ); ulong ticket = obj_Trade.ResultOrder();
Hello, i do my first steps in mql, so sorry for my simple question. I have a array with prices. I want to updates this array with a new price, so the oldest one must delete and the new price add to the array. The index value are represent the order of the prices 0=the oldest, 3=the newest. //1 start
Look, Why the first does not have "MQL5 Cloud Netword" and "Scheduler"
Hi everyone, I hope you're well! In my EA, I want to risk $xx every month, So each month I need to add an amount to risk, What is the best way to do this I was thinking of OnTimer( ) which does this action every month? Best Reguards, ZeroCafeine
Dear all, how do i constraint an EA making only one trade based on magic number (instead of symbol), (objective is to run similar EA with different magic number on the same symbol - so that i can test out which VPN is the best) Thank you
Hey all, I would like to ask, how to align text inside a button. I created a button and want to populate it with text, but the text keeps aligned in center and it looks so messy. I am trying to put space in the text, and it ended up making some of the text disappear. Here is the code that I write to
Hi guys, how are you doing? After update the library metatrader5 (the last version, released few hours ago) the command copy_rates_range is returning different collumns from the documentation. Now is not returning open, high, low and close, for example. Just bid and ask. Why's that? I downgrade the
Doesn't SYMBOL_TRADE_TICK_VALUE refer to the profit corresponding to a position fluctuation?
(13 1 2)
According the MQL5 Reference SYMBOL_TRADE_TICK_VALUE Value of SYMBOL_TRADE_TICK_VALUE_PROFIT SYMBOL_TRADE_TICK_VALUE – one-tick price change value for a profitable position Isn't SYMBOL_TRADE_TICK_VALUE the value corresponding to every 1 point fluctuation? ====== To calculate the profit in points
Hi , new to mql5,i conditioned my bot to open only one trade with a loop , but now i want it to open a new trade after the initial one is set to be . so the bot set's the sl to be but then opens inifite trade when the conditions are met again. i will post the code here. any way that i can repeat the
Good day. I have been trying to Rn Debug in mt5 and when I press F5 or the debug button from Meta-editor I am taken to MT5 but immediately I am taken back to Meta-editor and no debug is initiated. Is this a common issue
Hi, having some trouble here, not sure if anyone will be able to assist me? Price level was 154.023, 10.8 pips from the attempted SL so not sure why there would be 2024.12.17 23:13:36.741 2024.12.16 16:00:00 failed modify #325 sell 0.2 USDJPY sl: 154.131, tp: 0.000 -> sl: 154.131, tp: 0.000
Good day, I have an EA to perform an Ordermodify function after the Trade has been opened for a certain Period. The logic is simple: Step 1: Enter a trade Step 2: If the trade is open for longer than Time "T1" but less than "T2", perform Ordermodify and reduce the TP. Step 3: If the trade is open
I wanted to share a function I have developed to get the latest message from a Discord channel. It requires only the channel ID and the Discord Bot Token, and returns a string with the latest message in the chat. It can be combined with another function to send messages from an EA to Discord . I
I set myself a task: to demonstrate the capabilities of custom graphics via CCanvas class in a short code. Here's what came out of it. This script works in both MQL5 and MQL4. But it is much faster on MT5. Each frame is unique and does not repeat, i.e. the script is not cyclic. #include
So I need help with certain errors showing up whenever I compile my code. I feel like i have done everything I could but now I need to reach out to some other experts.. 'iMA' - wrong parameters count built-in: int iMA(const string,ENUM_TIMEFRAMES,int,int,ENUM_MA_METHOD,int) scalptheyass.mq5 29 18
Hello. If I restart VPS every 5-10 minutes for 3-4 times, the EA gets detached. I have to reattach it. The reason why it happens is it seems because MT5 blacklists my account. If I launch the EA from shortcut 10-20 times to limitless as much as possible, the ea and MT5 works fine. It happens only if
Hi everyone, I hope you're well, Do you know if there is a search button in the toolbox in the codebase tab? Best Reguards, ZeroCafeine
Recently EA has an error with magic number, sometimes there are orders without magic number. Is metatrader 5 having an error
Hi there, Bellow code works perfectly in MQL4: void HMA07_LINES_ARRAY( int &HMA07_LINES_ARRAYx[]) { HMA07 b= 0 ; int result2[]; int n = EnumToArray(b, result2, - 100 , 100 ); int HMA07_ENUMSIZE = n; ArrayResize(HMA07_LINES_ARRAYx,HMA07_ENUMSIZE,HMA07_ENUMSIZE);

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.