MQL4 and MetaTrader 4 - page 722

To post a new topic, please log in or register
Making sure to download all time frames of data running a 5 year back test my Tester will cut off 2012. When I do 2012 by itself I get 1/4 of the trades that I would get any other year but it'll at least show trades if I do it year by year. I get 0 mismatched chart errors and my broker is...
Lets assume the following (simplified) Code: extern double Lots = 0.1;extern double LotMultiplier = 1.4;/* First Order */myLot = 0.1;/* Second Order */myLot = 0.1 * LotMultiplier; // = 0.14/* Third Order */myLot = 0.14 * LotMultiplier; // = 0.196/* ... n Orders ...*/myLot = <LastOrderLotSize> *...
Hi,  I'm just doing some research about the MarketInfo function, and I just receive "0" (zero) int start(){double tt=MarketInfo(NULL,MODE_TICKVALUE);   Comment(         "Tick Value     : ",tt+"\n"+         "Tick Size      : ",MarketInfo(NULL,MODE_TICKSIZE)+"\n"+         "lot  Size      : "...
I¡m looking for a good MQL4 developer. The 80% of the EA is finished, but I need to put new parameters and I need help, because I dont have time. Its a good proyect an I need a good developer who believe in that. Contact me on cataloniacn@gmail.com THANKS! 
Dear experts, I was hoping to code up something to determine how far price retraces when a certain iWPR values is hit. For example, price goes up and eventually hits iWPR > -5 and we're calling it an overbought, price eventually retraces. I want to determine somehow by how much on average this...
I try to make my EAs fit for 4-digit AND 5-digit Broker. Currently I use 5 Digit Broker Lets Assume I have StopLoss 20 and TakeProfit = 60. This is my current Calculation: int StopLoss = 20;int TakeProfit = 60; double tp = Ask + TakeProfit*myPoint; double sl = Ask - StopLoss*myPoint; // BUYdouble tp...
Hello, As the title says, I have this bit of testing code, but the file has only one "1" no matter how many times I run it. What am I missing? Thanks! int handle;handle = FileOpen("test.txt",FILE_BIN|FILE_READ|FILE_WRITE);FileWrite(handle,"1");
Preliminary Announcement of the New MetaTrader 4 Build 445 New MetaTrader 4 client terminal build 445 is being prepared for release. MetaTrader 4 Client Terminal build 445 Terminal: Added integration of MetaTrader 4 client terminal with MQL5.Signals service. Now, all users having MQL5...
I wrote an expert advisor that does what it is intended to do on a demo account (EURUSD 1 hour chart). When I try to test it with strategy tester on the same pair and timeframe I get very strange opened positions. Anyone interested to give some feedback/help? the mql4 is attached 
Hi there I can´t get my EA work on GOLD at an ECN trader (FX Open for instance). The EA managed to open 1 order but after short time, when there is the need to open another order (in this case an opposite one) The Tester shuts down an displays the following message on the diary 2012.11.04 23:26...
Hi folks, I've Google a bit and not been able to find an answer . . . ERR_SEND_MAIL_ERROR (4061), what problems/issues/faults can cause this error to be generated ? thanks in advance.
Hi, anyone with a link to a Fractal indicator that allows parameter changes of the number of bars it counts? The default is five, would like to modify accordingly. Thanks!
Hello, Sorry for my English ... I am looking for a flag that is combined RSI and Bollinger Band. Among you, someone that he would or could develop this indicator. Thank you in advance for your help.
Hello Everyone. I am having a problem with Error #130 (I have looked through the documentation and have not found anything that can help me so far). I have attached the code below - aside from the other issues in the code, I am just focusing on this for the moment. For some reason, if I change the...
i printed OrdersHistoryTotal in Strategy Tester, I got the maximum value as 99. whereas in demo/live it shows more than 400. Why is it so?
hi all, is there a way to hide this screen after i click on buy/sell button. ??  Script or EA to Auto click on OK! or simply doesn't show.. !
bool OrderClose(        int ticket, double lots, double price, int slippage, color Color=CLR_NONE)Closes opened order. If the function succeeds, the return value is true. If the function fails, the return value is false. To get the detailed error information, call GetLastError().Parameters...
  Foolproof arbitrage EA (11   1 2)
Hi All, I am very new to MQL4 but have been wondering about the possibility of a trianngulararbitrage EA for a while. Here is the code ,courtesy of Codersguru, for a fractional product oscillator. I notice this uses MODE_CLOSE for each pair, could this be applied to live tickdata? As I am...
Since Java is run by any OS (apple's OS, windows or android), why is MT4 not written in Java? Or transferred into Java from MQL4?   
#property indicator_chart_window//+------------------------------------------------------------------+//| Custom indicator initialization function                         |//+------------------------------------------------------------------+extern int HMA_Period = 21;extern int History = 500;double...
I think I remember previous builds being able to select multiple entries in the account history and then drag them onto the chart.   This automatically draws the arrows for the entry and exit and the connecting dashed line that shows which exit arrow belongs to a certain entry arrow. I can now only...
How to use the code control MT4 test? somebody helpe me. Thank you
  DateTime Comparison (11   1 2)
Question i m using 1H chart,and i would like to 1)get today Bar Highest and lowest Price from 12:00AM to 5:00A.M 2)how to check is the trade date is today date?? using the OrderOpenTime()
Hi there everyone, this is just confusing me, and I need to get my ordering right. if( A < B  &&  C < D  ||  E < F ). In that statement, does it mean:   if ( A < B  &&  C < D ) "or" (A < B  &&  E < F ) or does it mean: if ( A < B  &&  C < D ) "or" ( E < F ). In other words, does the "or"...
  Trendline EA (3)
I am new to EA's.  Is it possible to code an EA to take a trade once market moves 10 pips past a trendline?  Once a candle crosses the trendline this is what we call "the breakpoint". We then need trade to be taken once market moves 10 pips past this breakpoint. We also would need the EA to set a...
I'm considering getting an iPad for travel, but I want to make sure I can trade FOREX on something similar to the Metatrader 4 platform on the PC.  Is there an MT4 that works on an iPad?   Are there any brokers that use it?  Same question for MT5?
What are different variables to process or to use on MT4?
Hello forum, I have a feeling this may be quite basic but am not sure how to proceed, my goal is to code the following simple logic:  "if some [condition 1] is met, then [create a record], ONCE, and keep it for reference till [condition 2]". For example, I want to create a record of "bid" level at...
hi all, my robot finally near completion but right now my robot doest seem to be trading accordingly, can anyone please look at my code and give me suggestion? it dont do sell signal, man, and there is tons of modify error, 130,131,138,1, this is annoying, can anyone help me solve this or give me...