[Deleted]
EA with custom indicator  (19   1 2)
Can someone help me? I want to use the super trend indicator in my EA. If the trend is down he should open a sell trade and if the trend is up he should open a buy trend. I only need this simple method to understand the logic about that because I never work with an indicator and yes I am a beginner...
[Deleted]
Hi. I can't solve this issue. I have to build an indicator that draws price ratio between two pairs and a Bollinger Bands or Envelopes. I can draw Bolinger Bands without any problem but there is an issue drawing Envelopes... Using debbugger seems that for cycle is not working properly.... Then I...
Compiling Error  (10)
I request if some one help me in compiling and making error free for attached code, This is my first time to open the programe file and write code from seen video's. Ajay
Hi all I'm struggling with all the string functions. How to get the 3 first letters of the Symbol() How to get the last 3. Example... EA is runing on GBPNZD string Currency_1 = GBP;string Currency_2 = NZD; Cheers
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...
[Deleted]
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?
[Deleted]
How is this possible? I'm getting a few ordermodify error 130 here and there even though I have my stoploss set to 0
[Deleted]
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
[Deleted]
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...
[Deleted]
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
More fun with MT4 build 646  (12   1 2)
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...
[Deleted]
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...
[Deleted]
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?
[Deleted]
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...
[Deleted]
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...
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