MQL4 and MetaTrader 4 - page 409

To post a new topic, please log in or register
Has anybody tried to delete the o.m. folder to start mt4 only /portable ? It seems to me that many files are doubled with the problem which to use, is actual ... Success? Gooly
Say for example its the opening of a bar on an m5 chart, currencies will move (up/down or remain flat). Are there currencies that (always) move first? Do some(always move a little bit later? Help, advise, links. Appreciated. Thankx.
  EA won't place a trade (27   1 2 3)
Ok Just starting out with coding here, and decided to make a very simple program just to play around with and test. All I want it to do is open a trade, yet, in forward testing, it doesn't open a trade when the criteria is met. Anyone can tell me why?? Here is the code for start int Start(){double...
double za = 100*67/750, zb = 100*142/250;Alert(DoubleToString(za,2), "  ", DoubleToString(zb,2)); The program shows me: za = 8.00 and zb = 56.00 instead my calculator displays: za = 8.93 and zb = 56.80 Why? Why? Why? Why? Why?
How is this possible? I'm getting a few ordermodify error 130 here and there even though I have my stoploss set to 0
Hi, I want to collect data for daily chart high/low occurring time Say, Last day high occurred at 15:15 in 15TF chart. So i want to open a csv file, where it will write the high, low, high time, low time in different column. I coded this one taking help from forum. But it shows error....
Is there anyway to test an EA in live market conditions (not backtesting) during off market hours? Prices and accuracy do not matter, I just need some tick movement.
  MT4 Update (2)
Hi, I just came back from holiday. Saw that MT4 needs to be updated so I did so (uninstalled, downloaded and reinstalled it). But now there are fewer currency pairs available. I can't open up a graph for EURJPY for example. Is there something wrong with my computer? Or is this change affected to all...
EUR/USD remains in a narrow range below the 78.6% retracement of the March to April decline near 1.3900 Our near-term trend bias higher in the Euro while over 1.3730 A push through 1.3900 is needed to trigger a new leg higher, but traction over 1.3970 is really required to confirm any sort of...
So I'm going to re-install later today unless someone has seen this and has a simple solution but here is the history I run up to 7 installations of MT4 side by side on the same computer. I usually have 5 running simultaneously. When the new build of MT4 came out they all updated fine. But...
Hello, Is an "indicator" that displays parallel closes to close, and parallel highs to high. No interest as an indicator, I just want to know your ideas for simplifying and factorization code. Uncoded: How don't display the highs when the timeframe is less than the daily timeframe....
double a=1.7; double b=1.6; double c=a-b; Alert(c); the result is 0.99999999999999999987?
string name;        datetime t=iTime(NULL,1,0);      double o=iOpen(NULL,1,0);      Print(t +" ",+o);      if(B==1)        {         RefreshRates();         name="Buy "+TimeToStr(TimeCurrent())+" "+IntegerToString(value);        // Print("ObjectCreated:"+name);         if(...
Dear MQL4 programmer kindly i need your assist to writ Simple Expert Advisor on different currency can any one assist me as i don't have any idea about MQL4 the Expert Advisor needed as the below : 1- open buy position at market price at specific time ( ex: 12:00 Pm every day ). 2 - Currency...
Hi. I have a script that connect other program with pipe mode. while(!IsStopped()) { bool fConnected = ConnectNamedPipe(hPipe, NULL)!= 0; if (fConnected) { The lines above are responsable to wait for this connection. My problem is that When I dont have any connect and I try to...
After some time and frustration I have discovered that the compiler/terminal will not display the custom indicator if the buffer is calculated with data from another time frame. For example, displaying the daily ATR even when I am looking at the hourly chart. The first line below will work, but the...
Hi all, Here is a question for the experienced ones regarding the strategy tester : Most of us know how difficult it is to run a proper backtest on a Renko, range bars and other synthetic charts, right ? In this case, I'm talking about Renko. Since the best data we have is the M1 history and we...
Hi, How do I set up on MT4 for my Screen to change colour STRICTLY when the Exponential Moving Averages Cross Over?
Hello, I added interval trading to my EA before the update. I am now updated to build 625 and the interval trading is not working. can anyone tell me why?? extern int StartHour1=13; extern int EndHour1=16; extern int StartHour2=13; extern int EndHour2=16; extern int CloseTradesHour=17; extern...
Hi, Does anyone else have the problem that I have: I try to get the the lot size for EURUSD, using the MarketInfo("EURUSDD", MODE_LOTSIZE) instruction. The value I get returned is 0. Is their another way of getting lot size?
Is there a way to get the chart bar index in a specific time frame from a datetime variable?
Hello, i'm new here and still trying to learn mql4 coding. Currently need help in drawing this rectangle. The problem is how can i measure the Length B to get the date at point 3 which it extends 10 times from the Length A ? Any help will be great appreciated. Thanks double...
Is there any way to store a variable value in expert advisor for further calculation? Let say I have int var = 0;int start()  {       //Do some calculation with var       //Now var has a value of 10       //How can I store this value 10? Next time expert advisor run, var no longer 0, but it will be...
1. Under the recent changes to MQL4 / Code Base I cannot find way to edit and update past published MT4 indicator, scripts or EAs. 2. The MT4 My Own folder is no more. 3. If I click Show All I am taken to a Hybrid MT5 / MT4 portal 4. If I click on a published indicator no edit function is...
Can anyone please shed some light on this error code 137 "Broker is busy". What causes the error and who is to blame, the broker or the code? How can the problem be fixed.I have an EA and yesterday the EA started OK with a BUY order, but did not close when it should have and although the EA kept...
Hi I have a summary report that gives me various results for each pass in an optimization that runs in DeINit(). Is there anyway to include the pass number in this report, as it appears in the Optimization tab. That way i can use it as a key to verfiy the results in my summary report match what is...
Hi Is there a way to write the overall optimization settings and the dates used to a file? I have managed to write the inidividual parameters used for each pass in the to a file, but want an overview/summary of what was tested. thanks
Hello, I coded one EA. I added it to different platforms, and appeared problem with a couple. On the few platforms EA makes the same trades, but on few the code has problems below: Platform A. problem is with one trade per day - like the system doesn't "see" loop Platforms B (LMAX and Iron...
Hello this is my first post. I've been passively reading these forums for 3 month now.... :) But this problem I just can't fix alone and it drives me insane ... ^^ My Expert Advisor should set Trailingstops according to calculated Fibonachi levels. However it seems that the trailing stop is only...