MQL4 and MetaTrader 4 - page 1170

[Deleted]
  EMA_CROSS  (2)
Does anyone know how to make EMA_CROSS (one of EA strategies) a stop and reverse system ? I just want it to be all the time in the market, so there're no stops and no targets. Current position is being reversed once EMAs cross each other. Thank you Matt
I am trying to develop an EA and at the moment trying to get logical parts to work and just can't figure out what is wrong here. Perhaps someone could point me in the right direction First - the order does not close Second - GetLastError() appears to return 0 (zero) - i.e. the ALERTS @ 10800 &...
[Deleted]
How to define Lotstep to be 0.01 extern double Lotstep = 0.01 is it right that must be in begining define, or in calculation of optimal lot size. What is BalanceStep. Dynamic lot how to define to switch - true or false. Thanks
Can you add the InputBox() function on Meta Trader 4 (with new release) using this link: http://www.codeproject.com/KB/dialog/w32inputbox_1.aspx ???
In the tester, are the profits on the real account draining the deposit? No 100% confidence in the stability of the Expert Advisor? Quotes in the terminal stop? Install the service - mtonline and sleep in peace! If quotes do not come to the terminal, the Expert Advisor cannot control the situation
  Code not working  (2)
Can someone help me? The following code is a script that when I run, should place 2, at market price orders for 2 different currency pairs. But... It asks me if I want to proceed, but when I click the Yes, it does nothing. If I have the EURUSD chart open, sometimes it places that side of the trade...
[Deleted]
Hi, I am using a VPS, running win 2008 server with 2 gig of ram, and 2 x 2.4 ghz processors. I have written a C++ Dll that uses windows sockets to communicate with my software and passes instructions to MT4 EA via Functions. I have proved that my DLL gets its instructions in less than 1 millisecond...
Is it possible to write such a strategy, a non-syndicated strategy based purely on mathematics? I was asked this question to professionals and anyone who has any opinions. Mathematicians say that we should use the theory of random variables, more precisely Markov chain
[Deleted]
Can someone supply names of the Windows .dll(s) used to achieve the following functionalities?tia "Assistant The assistant makes writing the text of an Advisor easier. It automatically shows the scrollable "List Names" list after you enter several first characters of object names declared in MQL4. ....
Dear all i have indicators saving the historical data in .csv and .prn, but any one can help to make it to .txt (yyyyMMdd HHmmss;open price;high price;low price;close price;volume) Regards
Thought I'd create very simple EA to try and understand how file I/O operations work. Documetnation states the file should be :- terminal_directory\experts\files folder (terminal_directory\tester\filesif for expert testing) or in its subfolders. But I can't find a file anywhere. Handle - is...
Hello, I am looking for some help in building an EA that will manage my open positions. I open them manually so this needs to be only position closing EA. For example: I buy 1 lot - EA should close 0.1 of a lot at 5pips profit - EA should close 0.1 of a lot at 10pips profit and so on. But I should...
Hi, I have attempted to code an Indicator for this thread: http://www.forexfactory.com/showthread.php?t=276813. When I compile it the indie is 180 degress reversed (buys shows as sells and sells as buys) but if I change timeframe and revert back it is OK. Then the indie always shows buys regardless...
[Deleted]
Hi gurus here,my ea couldn't add position correctly,before it run add positon's code, it would close the former order, //here is my sell conditionif (m1<m3-0.00005)       {       ticket1=OrderSend(Symbol(),OP_SELL,1,Bid,5,Ask+1050*Point,0,"SELL#1",MAGICMA,0,Red);return;/*it will open continuously 2...
[Deleted]
Hy, I would like to set custom limit orders based on 1 minute candles. I would like to set a buy limit order 10 pips over the high with a profit take at 15 pips, and the same on the short side. My question is could this be programmed in a way that I have to click only once? As you might guessed I...
[Deleted]
OK....I am working on my first EA and already have figured out the conditions etc and coded such. Please note that I have been using the Expert Advisor Builder here http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ because I do not plan on becoming advanced in MQL or making any other EAs. I tried...
[Deleted]
I have an account with Oanda and they offer many different file formats for historical data. I contacted my broker and they instructed me to post the question here. That is, What format should I request the data to be in and how do I insure that it is formatted so it can be use with MT4 for back...
My customer asked my to write an EA optimized for gold trading. I used to write EA in MT4. Recently I tried to switch to MT5, but I cannot find the symbol for gold in Meta trader 5. Does the gold is supported in MetaTrader5? Is it really neccesary to switch to MT5/MQL5? Can I continue to use...
[Deleted]
Hey all =) I'm having some trouble with the stoploss and takeprofit in OrderSend(). it seemsto be correct, but when i run my ea, it says that i'm sending wrong parameters to SL and TP. This is my code: if(TakeProfit<=0)tp = Bid+NormalizeDouble(50*Point,5);//My brooker run with 5 digits
[Deleted]
Hello, In mt4 when I press F2 I have the history center of prices. I choose the currency and the time frame. The mt4 give me the option to download the historical prices. The maximiun that I can download is 65.000 registers. Do you know how can I download more than 65000 registers? Can I do it in...
[Deleted]
I started using MT4 for strategy testing recently. In FT i can program in delphi or in C++. I have previous design- and programming experience in Basic and VB. In MT4, C++ and Delphi I have zero experience. I want/need to program in FT for sure and maybe also in MT4. Since I have a blank start with...
New article Tracing, Debugging and Structural Analysis of Source Code is published at mql5.com: The entire complex of problems of creating a structure of an executed code and its tracing can be solved without serious difficulties. This possibility has appeared in MetaTrader 5 due to the new feature...
[Deleted]
  Error130- help  (2)
Hi, I am a noob and I need your help... I have written a program which was working until last week. I didn't make any change and now it cannot calculate takeprofit and throws ERROR130. I know what this error means and i have already checked if my takeprofit is correct. I cannot understand what's
as above please help ^_^
I have been 'playing' with some code examples and I cam across if (!ExistPositions()) { What is the significance of the ! or exclamation mark?
Hi, I would like to compare 5min Close with 1H indicator value in my strategy. But I am not sure about proper shift. if (NewBarOpened == true) // In my case it is every 5min { double Indicator=iCustom(NULL, 60, "Indicator name", Parameter ,0,0); // What number should I use there instead of 0? With
Hi, I experienced strange charting behavior: 15min multi-timeframe moving average is charted good for historical data, not for new real-time data. Everything gets fine when I reload indicator. But for new data it will do the same... and again and again and again. It it standard MTF indicator I saw...
[Deleted]
In need some advices on how to remove/delete the unrequired custom indicators compileinside the interbankFX trading platform. I basically tried to delete/remove itbut it remain unsuccessful. Hope to hear your feedback.
[Deleted]
  Don't tell me that TA works!  (89   1 2 3 4 5 ... 8 9)
1. The account is real. 2. Initial deposit $113. 3. TA NOT USED! 4. During the month the capital to open a position is permanent