Bar open times are changing retroactively 2023.07.20 22:00 is now 2023.07.20 22:01 2023.07.20 22:15 is now 2023.07.20 22:16 and so on until 2023.07.20 23:46
Hi, I wanted to use my EA for EURUSD and also buy an position in this EA from GBPUSD . But I am getting the OrderSend error 4106. Can't I open a position from another symbol
How do I set the following indicator parameters via MQL4 code in a custom indicator? The only property that I have been able to find that seemed appropriate was only for the main chart and not the custom indicator window ChartSetInteger ( 1 , CHART_SCALEFIX , 0 , true ); ChartSetDouble ( 1
Curious if these the same ? I assume the compound operators need to be in brackets, but I've seen code written this way and wondered why ? Please confirm thanks if (A_high()) ObjectSet( "B6" , OBJPROP_BGCOLOR , clrRed ); else { ObjectSet( "B6" , OBJPROP_BGCOLOR , clrBlack );
I'm asking generically for concept ideas because I don't really understand where to start. I'm trying to figure out how to toggle multiple indicators for EA backtesting so that I don't have to change each comparison line in the the code everytime. I was thinking perhaps bool properties for
Dear Guys I write a code on OnTimer() . EA open trade on time. so i write this code on there. but when i try to backtest this EA all code within OnTimer() not work. How can i do some thing that OnTimer() code work on backtest. Thanks.
Hi when i run a library of Bernd Kreuss base64 //+------------------------------------------------------------------+ //| Encoding data in base64 | //+------------------------------------------------------------------+ void _Base64Encode( string in , string &
I have an EA running but today I wanted to stop the EA so I pressed the AutoTrading button on MT4 but I just looked and it still traded today. It is running on a VPS should I disable the VPS to turn it off. And it should also not run on USD/CHF but it still does that some times. It feels like the EA
Hi, I want to send GET and POST request to API. but i didn't know how to do it so i searched for it and found official documentation : WebRequest - Common Functions - MQL4 Reference And I tried it's examples code with some different API's but i don't know how to use JSON Header. Can some one please
I know the reference and book does not mention this but curious how it works for assignment instead of comparison. Can this even be done as intended ? For example: extern bool chart_period=true; // extern bool macdm1=false; extern bool macdm5=false; extern bool macdm15=false; extern bool
I'm trying to retrieve the Ticket number of the Last Closed order. So I tried this: int start(){History_Calling(Symbol(), MagicNumber); BuyOrder=OrderSend(Symbol(), OP_BUY, LotSize,OpenPrice,Slippage,StopLossPrice,TakeProfitPrice, "Buy Order",MagicNumber, 0,Blue); if (BuyOrder>0){ Print("Order...
Hello everyone. I have an indicator that should show arrows when a candle with no wick one side of the candle forms but it does not work and I do not know why. No errors in meta editor. I was wondering if someone could take a look. It may be a tiny thing I am not seeing. Thanks in advance
Hello All the expert coders, My name is sasanka. I have a very little knowledge in programming. So I would like to request your help to create a EA I have found a custom indicator which is giving very good reliable signals. I will describe how to get the signal . i wish to use this indicator and...
Hi, Can anone help me? I keep getting this Zero divide error with this indicator, it will not show u anything. Much appreciated. Improperly formatted code removed by moderator
Hi It's easily possible in MT5 . I just need to uncheck ' Show Bid Price Line'. I don't see an option like this in MT4. Any other way to do that in MT4
[Deleted]
hey guys, i know there are al lot of threads about this issue but i didn`t find a solution to get 90-99% quality for GER30. can you help me in this term please? thanks in advance.
Hello, I use a system of EMAs whose periods are based on Fibonacci numbers, such as EMA 55, EMA 89, EMA 144, etc However, I realize the greatest EMA which the MT4 can display is EMA 2584 But I want it to display larger values, such as EMA 28657, EMA 121393 Would you please help me find a way to
Hi everybody! I'm new with coding in mql4 and i'm having some issues while trying to implement money managment rules in my EA. Here is the code: bool last; //last trade result bool Last() //check last trade result { for ( int i=OrdersHistoryTotal()- 1 ;i>= 0 ;i--) {
This is my first time coding in MQL4 I'm not sure what the error is, I was following a video of youtube, and it seems my code has multiple errors even though it was the same, could this be because it was an old video and mql4 language updated? Here is the code below...
I'm seeing this "opencl.dll not found" in MT4 journal logs. What's causing this? Where should the opencl.dll be? 2023.07.28 12:44:28.219 OpenCL cannot get OpenCL platforms (-123450, 'unknown error'), please install OpenCL drivers 2023.07.28 12:44:28.219 OpenCL opencl.dll not found, please
Hi Guys, Bit of a newbie with EAs, I am trying to figure out if an EA uses historical data. If you download from MT4's history centre would it use that data? Please help me understand
How to get ListView data (such as OrderTicket #) in mt4-terminal-trade tab
#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Lime // Swing High color #property indicator_color2 Red // Swing Low color extern int lookbackBars = 10 ; // Number of bars to look back for swing high/low identification double swingHighBuffer[];
[Deleted]
For each currency pair I use a separate EA. To verify if an position should be opened, I test if there is no open order "if (OrdersTotal<1)" but this will block all other currency pairs to open positions and I miss opportunities. In other words: I want to open only one position per currency pair =
Hi I am contemplating converting to a MAC due to the reliability vs Windows but wonder how the MT4 Mac version behaves with the EAs. Can someone share their experiences please. Thanks
I paid £35 and am fuming it doesn't work for me
Hi, I've tried to delete an indicator from an EA, but it's taking me too long. How can I find all the chart IDs that have this indicator? I began with WindowFind( "Indicator name" ) but it returns -1
Hi there! How can i login from php to my MT4 account? Is there any API for it?
[Deleted]
Hi, does anybody knows a code formatter/beautifier for MQ4 or MQL5? It would be quite helpful to format the code as in any better development editor automatically...
Hi Dears, I code EA that sends messages and alerts to the telegram channel. I want to send Emojis with messages that send to telegram, How can I do it? I copy Emojis on telegram and paste that on the mql4 code between quotes but not worked and it showed on telegram like this "??". string

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.