MQL4 and MetaTrader 4 - page 25

Hello, I have written an Expert Advisor in MQL4. I run this EA on two symbols simultaneously. When a position is closed on one symbol, positions on other symbols are also closed. What solution is there for this problem? I should mention that I have used different magic numbers for each symbol
I see that metatrader is now keeping track of purchased EAs, but now the EAs that I have written are not working. I keep getting an error 4112, which is " 4112 . ERR_TRADE_EXPERT_DISABLED_BY_SERVER. Automated trading by Expert Advisors/Scripts disabled by trade server." How do I get around this
Hello experts i have a question about _Point and Point i seen both are use in same place such as in below example Point is used at the End of Stop-Loss. but both colors different. ticket= OrderSend ( Symbol (),OP_SELL,lot,Bid, 3 ,Bid+StopLoss* _Point , 0 , "Fxtradewar@gmail.com" ,MagicNumber, 0
Hi I have a c# DLL which is working great when placed in MT4 (build 765) installation Folder. However, when trying to move the DLL to terminal_data_directory\MQL4\Libraries I'm getting "Unhandled exception 0xE0434352". I would like to emphasize that it's not a problem of calling managed code...
if (ProfitToday() <= MaxLoss) { Print ( "Exceeded. ProfitToday is: " + ProfitToday() + " MaxLoss " + MaxLoss);} The Print log says: Exceeded. ProfitToday is: -1.14 MaxLoss -10 I am confused. I thought -1.14 was > -10. But the condition is <= and it's triggering. I changed the condition to > and
Dear all! I just want access multiples account mt4 to get the History Order and Account Info without use the MT4/5 Termial. How it work when i've .srv file. Thank all
Hello! I have this code but I get errors and 9 warnings in order to select and order to modify must be verified. a little help? Auto-translation applied by moderator ... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover
I coded an indicator and realized that I'm not getting the same results from both methods used for calculating the RSI can any one give me a hint why they are different? how to fix it? I searched the whole forum and found not a single clue
Hello together, Could you please tell me how to include a *.mq4 file into a *.mqh (not EA) file. Or is it possible to include a *.mqh file (not EA) and *.mq4 file into an EA, whereat the included *.mqh file (not EA) would need input from the included *.mq4 file. Thank you in advance and have a nice
Hello Guys Just wondering i have backtested 2 strategies on the second screenshot representing the 2nd backtest strategy there is a long green bar which is supposed to represent what exactly? drawdown? What are the values
Does anyone know if there is a prorealtime cycle indicator coded for MT4? Thanks
Hello everyone, i am having a problem with history data on M1 timeframe (every tick) i need last 3 years of M1 candles data for NAS100 index or US TECH 100 index but when i try to download the data from the Tools>History Center it is only giving me data for past few days or maybe 1 to 2 months only
hi, i am new to mql4 i am trying to build a EA i the problem is close position function is not working i tried everything can anyione help me . i tried to add it with ordersend function i used this expreation Bid + Tp * _Point but it gave me problem that it closes order way befor or sometine
90.58 ms speed so far how can i lower the latency and improve it
Hello I need your assistance in debugging the following code to implement the logic below, I've tried many times but I am stuck. Your help will be appreciated: logic is open with buy and sell pair as per input.. when tp hit then reverse with opposite trade when loss then hedge at desired pips
  Platform issue  (2)
Hi, I coded an EA that work perfectly fine on my Platform but not on my friend Platform. The Platform have the same version and built. The source code doesn't include or import anything. Just pure MQL4 code. But can figure out why the isn't working properly on my friend Platform. Do you have an
I want to read HST file with real time updates I wonder when does MT4 refresh these files? Can I keep them up to date in real time
Hi, fellow dev At the moment I use a CSV file in the common folder to help 2 MT4 instance to communicate together. But it's too slow, generally above 3 sec I need something faster in the milliseconds order Does someone have an idea? Thanks
The following post provided very useful mechanism for EA communication through Win Socket . https://www.mql5.com/en/blogs/post/706665 In the post, it uses WM_KEYDOWN as a message word to let OnChartEvent() receives a message with there is a packet arriving throught Win Socket. if (
Hi there, I encountered below error, my EA can't load or be used. 2023.11.11 22:41:53.426 cannot load 'C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\B8436F3574D3ACEB6E3E4DD147B9416D\MQL4\Experts\Market\EA Thomas PRO.ex4' I have been using this for 3 weeks or more. Other EA from same
When I try to add my KOT4X account in MT4, I go to add account and the only option there is MetaQuotes Software Corp. I cannot search anything else. If I just hit next, the only option to log in to is the Demo. I've gotten the login to work on the mobile app and the webbased platform, but I'd like
I have been trying to write a function that calculates the maximum lot size allowed on my account based on my account balance. I am entering a market order so there aren't any stop losses, I put those on after the trade has been entered. I am only trading one position at a time so I can use the full
Hi, I had a developer make me an MT4 EA, and long story short it works fine when tested, but when I check the optimization box and optimize any sort of parameter it always spits out 0. Can someone tell me what could be the issue
Im looking for the swing high low support and resistance indicator from Patternmart on trading view for MT4. I assume it would already be developed for Mt4. Where would I be able to find it
Hello everyone, Do you have any ideas about the using custom indicators on the MT4 Web Terminal? I wonder how I can use my own indicator on it
  Ex4 file to vps  (2)
Hi i have been using a free ea on my pc lately and i have now purchased a vps. So i emailed myself the ex4 file and pasted it in the expert folder but now i cant drag it to my charts. It tells me it cannot load the ea but everything always worked fine on my pc. Is there a way to fix this? Note that
This is a phenomenon that occurs occasionally. The profit in the results window is -12.02, but when printed from the source, it comes out as -8.84. [Code] for ( int i = OrdersHistoryTotal() - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_HISTORY) == false ) continue ;
How can i calculate the lot maximum size based on the limits of the free margin?
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
hi guys its my first time coding mql4 and im still practicing. I have a problem on my project, I have 10 open trades on buy. i want to get the average of my entry price on buy, is that possible