All of a sudden, when I open up MT4, I'm not automatically logged in as I usually am. Instead, I am prompted to log in. But the listed server, FXCM-USDDemo01, is incorrect. If I click on the drop-down menu and select the correct server, FXCM2-USDDemo01 (notice the "2" that appears after "FXCM"), and
hi, i would like to close open orders, what is missing in my code? especially closing orders part? thank you int period1 = 50 ; int ticket; double volume= 0.1 ; input int trailing = 250 ; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { } void OnTick ()
Hello, I am looking for a Horizontal line which do not display by the normal curved line, but instead, I only need it to show horizontal line level. Is someone already have it or, can lead me to do it myself ? Thanks
Hello, I typed my MetaQuotes ID within the Notifications list under Options on my MT4 desktop platform. I tested the push notifications and the message was sent to MT4 on my phone. I ensured that the indicator I am using has "DoAlert" as an option under Inputs. The notifications are not coming to my
hi Everyone, I have written a code for trying to enter a trade and exit a trade based on an fractal indicator . however, im only able to exit trade with trade profit but unable to exit a trade with the fractal. for example...... : -Enter buy trade with an up arrow , and exit the trade when down
Hi there, Can anyone please tell me which indicator is this one that presents: -current price -spread -current candle high -current candle low -pips to HOD -pips to LOD -candle time Thanks a lot.
Hello, I ran a backtest of my EA I'm building using the backtest optimizer. Started with 1000 USD, ran it over 2020 year data full tick data. Was surprised to find some entries that were producing 300K profit in a year with only starting 1000 USD - Thought I had hit the jackpot there for a second
hi when I open position in the chart shows some line and arrow I don't want it puts this objects in the chart when I open position what should I do? Best Regards Neda
Hello, is it possible to have a certain range of bars already on the chart when the strategy tester starts in MT4? Thanks
This code prints "0" though it should print "1". struct X { int N; X() { static int n = 1 ; Print (n); } }; X x; void OnStart () { } This code prints "1". struct X { int N; X() { static int n = 1
How can I program my EA to do something when a new candle has appeared? What is the command for a new candle appearing? Anything like: OnNewBar() I need to do something when a new candle arrives, e.g. to reinitialize the content of a variable. E.g.: if (A New Bar Arrives) {MyVariable = '' '';}
Hi folks, I am trying to retrieve history data from MT4 to build a model with. The problem I have is that I need to load the values of a custom indicator into a 3 dimensional array and when i try to run the Expert is history, it does not work, and gives the alert: "not eough memory for EX4 file" and
Hello, I have a strange problem. When I load my written indicator based on another iCustom indicator on the chart, two lines appear, although it should be only one. #property strict #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 clrYellow #property
// Pivot Plus Add-On (Personal) #property copyright "Copyright @ Malcolm" #property link "www.mql4.com" #property version "1.0" #property description "Additional Pivot Points for more market opportunities" #include <stdlib.mqh> #include <stderror.mqh> //--- indicator settings #property
Hello I'm new to mql4 coding so please assist me in understanding why the results from the iMA() are correct yet the iMAOnArray() is giving me wrong results compared to the ones i have on the charts. Please review my code and assist me in getting the results as expected. Code attached. extern int
Would anyone have a .mq4 indicator similar to these to match indicator buffers? <ex4 file removed>
just downloaded mt4, trying to set up trades for monday, when new order is selected it will not let me place entries. Please advise Ron
Hello, I have an indicator that I'm trying to use with the MT2 trading connector. However MT2 is not recognizing the signal even though I select the correct buffers. can someone please check it and let me know if something should be changed on the code? The way that indicator works is that if the
I want to know the concept for create same TP for 5 open orders. Example 5 buy orders and all have same TP. First open one order with TP and next orders will open by some distance with same tp. This TP will trail according to market move. Plz suggest
Hello, I am trying to HIDE OBJECT according STRING character in the DESCRIPTION (and not in the name). Can you help me please. I have done so much trials with no success. thank you again. //|--- for the string character in the name for ( int i_obj= ObjectsTotal ()- 1 ;i_obj>= 0 ;i_obj--) {
Hi I can't contact my broker and can't withdraw my money. What should I do
Hi, i am encountering "unknown ticket for orderclose function " error what should be done? here is the code (closing of orders); for(int x=OrdersTotal()-1; x >= 0;x--) //If you have open position { if(OrderSelect(ticket1 ,SELECT_BY_TICKET)==true && OrderMagicNumber()== magicNB1 && OrderType() == 0)
Counting open orders from an ae Guys I created this function that should count orders opened by an ea int OrdiniAperti( int MagicNumberint) { int count= 0 ; for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--) { int tcket = OrderSelect (i,SELECT_BY_POS,MODE_TRADES); if (OrderSymbol() == Symbol () &&
Good evening, I have a problem validating an mt4 EA, <Deleted>, with the version for metatrader 5 I had no problems, can you help me? Thank you test on EURUSD,H1 there are no trading operations test on NZDUSD,H1 there are no trading operations test on GBPUSDcheck,M30 there are no trading operations
Hi all, thanks for getting in. A Gold EA is looking for two indicators, the one I can´t find is HLChannel.ex4. Any info would be very appreciated. Cheers
Hey, I wrote an indicator displaying me lines at highs and lows. Unfortunately, I get hundreds of lines as all bars of the chart are processed. I would prefer if the indicator just processes the last 500 bars or so. For the sake of convenience I've just inserted the part with the resistance. Can...
Hi Guys I have a custom indicator, which works fine when I attach it to a chart. When I attempt to get the values from the indicator, they are retrieved correctly as per the chart, when getting it from a script. If I use the same code that works in the script from an EA - I get values, but they are...
Hi! I am Latvian so I changed language to Latvian in MT4 and then I noticed, that one line is translated incorrectly. In Latvian MT4- OPTIONS-EXPERT ADVISORS there is incorrectly written "Atļaut padomniekiem veikt tirdzniecību" ("Allow EA make trades"), but it should be "Atslēgt padomniekus, kad
Hi, I'm trying to replicate a graphic Price Channel indicator and I've decided to right away copy and paste its code in my EA. The problem is that the indicator shows a value of 4 decimals when you hover the mouse on it, and I have no idea what's it doing: it's not rounding and it's not trimming
I am searching for someone to learn with, the wonderful language of MQL4 . I already understand and practiced a lot of the basis of MQL 4. &, like all, I have a few more things that I need to learn... I want to study, Share my knowledge, discuss things that one of us still didn’t understand and

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.