Hi, it looks i am struggling to find the answer. Searched over and over, but with no success. I have same EA running on two charts EURUSD,same period. I need the second EA to execute trade with 20 secs delay from the first one. I use: void Sleep( int 20000 // interval ); 1.Is it correct
Probably a long shot because mt4 docs says no. But still is there any way this could be done
hello guys,i can't see my review tab i just see the add comment one but the add review disable can you help me to figure out how to review some ea thnx
how to get current total pips in all open trades? mql4 and mt4 for a 5 digit broker let's say 1st order has opened at 1.00005 and now it's on 1.00025, and second order has opened at 1.00015 and now at 1.00035, then I want a code to get the current total pips of both trades which is +40, how to do...
Hi, I'm using MT4 and recently I have a program that I create an EA and when I try to test it on MT4 I dosen't increases test speed, I just sit and watch the test at a normal speed and i don`t have another option only to stop testing ... my question is: where do I increase the speed or where to
Dear all Does any one know how to teach EA to define consolidation? or if it is impossible, how to handle it if your system will generate signal in consolidation? Thanks for your reply in advance. Wing
hello, i need help with my program indicator on Metaeditor about alert, i have some error with alert mode someone can help me thanks
Why is this ea not opening any trades when all the parameters are reached. I wish to combine this ea with my other ea but can not figure out the problem with the code. Original code from here: https://www.forexfactory.com/showthread.php?t=325991 I fixed all the warnings in original ea but still it
I have just protect the indicator with password key. extern string Password = "The password";void OnTick(){ if( Password != "The password" ) { Comment("The password is wrong."); return; } ///Main code///// } But if I use this code, I can not read indicator buffer signal. It
my expert to send message do not work anymore from yesterday some got some news
Hi, I have a problem with calling member functions. They seem to be called as regular functions and do not modify struct member variables. The reason for this could be my "vector" array wrapper. ``` template < typename T > struct vector { vector() {} vector(int arraySize) { if (arraySize < 0)
Hi, I would like to ask the forum the forum the following: In an indicator in the Init block code, I have added some code to test the accountnumber, AccountCompany & IsDemo if the accountnumber,AccountCompany & IsDemo are equal to their preset values then the indicator Starts else it doesnt start....
Please anyone know if there is a version of this indicator that does not repaint?
Hi, I downloaded the fabulous SuperTrend indicator a while ago right here: https://www.mql5.com/en/code/8268 Now, I made a EA and I'm trying to test it, made a "tester" template with the SuperTrend indicator on it, but unfortunately it doesn't look good. Since a picture tells a thousand, as you can
Hi guys! I would like some help coding an expert doing the following: at daily open, take pos towards pivot. if possible adding if previous days pivot was not hit. Double the size
I am using MT4 strategy tester. I write an EA and an indicator. I will call the indicator within my EA by using double returnVal = iCustom(Symbol(), PERIOD_M5, "IndicatorName", IndicatorParam01, IndicatorParam02, channel, index); This works in live trading but no in tester. In the strategy tester, I
I knew how to create object trendline,vertical or horizontal line using price and time, but how can I do it using coordinates? I want to draw trendline using 2 coordinate. thank you
[Deleted]
I'm trying to produce some alerting mechanisms in my EA and ran across some funnybehavior. When I use the Alert function and the PlaySound function together, then the Alert function seems to supercede the PlaySound function,which doesn't kick off. So, as an example, if I have the following 3...
Hello! A total MQL programming newbie here. I decided to create my first custom indicator in MQL4 based on pin bars. When i finished the writing and compiled the code everything was allright, but when i decided to use it on chart i got the message in expert chart: 2020.02.06 14:33:38.665 Custom
bom dia gostaria que alguem me ajudasse, estou procurando um indicador onde tenha o ATR sobre MA, para ver a variação de tendencia, esse indicativo fica em baixo da tela com as duas funçoes...
[Deleted]
Hi, I need a custom indicator that, in a separate window, write atr and moving average calculate on it and same thing for bandwidth. I have made the code in mql4 and I have using the IMAONARRAY for calculate the MA, but the indicator don' t work..can anyone help me??? Thanks
You can customize with ATR MA? ATR (14) 0.0023-->MA (14)0.0019...
Hi. I have attached my EA below with a following indicator. Im struggeling with a problem. I want to know the value of the previous basket of closed positions. For eksample, if the EA has opened 5 positions and then closes all of them, i want to know the value and if the value is positive or
Hi, im trying to figure out why someone from spain who is using Tickmill ECN broker cant get the following code to place stoploss or takeprofit when execution buy order is placed. When it works okay on the UK Tickmill broker? // Input variablesextern string SECTION_A = "*** Trade Management Settings
struct data{ datetime open; string symb; string type; double lots; double price; double stoploss;};data arr[];double bar_data[][2];void OnStart() { int i = 0; int num_data = 0; ResetLastError(); int file_handle=FileOpen("Myfxbookdata.csv",FILE_READ|FILE_CSV,',');...
HI guys, Has anyone else experienced this recently? I have an indicator which I was using perfectly well this morning - I have changed nothing and tonight I get this error while trying to run it: I have enabled dll imports . This has occurred before and I had to reboot the pc to get it to run
Hey, I was wondering if anyone has this same problem as the title. After adding an expert advisor to my mt4 chart it immediately places a trade. (conditions not met)…..Then after this (random) trade it works perfectly. Anyone else has this? Thanks again
Due to the increasing avalanche of questions, requests and demands from users with little programming knowledge, it is necessary to designate interaction kennels. For the benefit of both the askers (they will have a better chance of getting what they want) and the askers (there will be fewer empty
Hi, someone using the Tickmill ECN broker from spain has told me my EA Break Even Trader doesnt place the stop loss and take profit when an order is placed onto the chart. Ive tested it on tickmill and it works okay for me at Tickmill UK ECN. I dont understand why they are getting this problem
Hello everyone! I made an EA where my custom indicator returns the buffer value to buy/sell IndiCustomVenda = iCustom(NULL, Indicador_TimeFrame, Nome_Indicador, Indicador_Venda, ind_shift); IndiCustomCompra = iCustom(NULL, Indicador_TimeFrame, Nome_Indicador, Indicador_Compra

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.