Download MetaTrader 5

MQL4 and MetaTrader 4 - page 499

To post a new topic, please log in or register
  coding help (4)
#property copyright "Kang_Gun"#property link      "http://www.free-knowledge.com"#property indicator_chart_window#property indicator_buffers 8#property indicator_color1 Yellow#property indicator_color2 Yellow#property indicator_color3 LimeGreen#property indicator_color4 LimeGreen#property...
Hi to all. Im new in MQL4. I wrote a little EA that save some information on a csv file. I don't want to keep in mind to execute EA or to attach it on graph every login!  There is some technique to avoid this? can i set up my EA to be able to auto start with platform?  There are other tecniques that...
How can i have the same indicators set(or properties..) in one desktop(MetaTrader4) in another desktop or devices using my same trading account?
Does this give you the highest value over the past 24 hours only only the highest value since midnight?   iHigh(0,PERIOD_D1,0)   If today is Wednesday, does this give you the highest value of Tuesday or does it give you the highest value between 24 and 48 hours ago from now? iHigh(0,PERIOD_D1,2)...
hi all, sorry, I'm a beginner in the world trade. just few, I know a programming language. but, I have tried to create my own EA by MQL-4. and I have compiled it, no errors found. but, I always failed the test in the chart. how is this??? any help, please. 
Does anyone know of a free EA that can do the following:  1) Let you set a pending order with initial entry, TP1 and SL 2) lets you input TP1, TP2, TP3, TP4,....,TPn (each one definable by user, per trade).  For example: TP1 = 20 pips TP2 = 40 pip TP 3 = 100 pips TP 4 = 150 pips  in one instance....
Hi all, instead of the default - Pass, Profit, Total Trades, Profit Factor, Expected Profit, Drawdown, How can I obtain Profit Trades (%) in the Optimization Results? Or can I derive the profit trades from these parameters? Thanks.
Yo, juste a simple question, how to know the opening date of a selected order ? I mean I got 5 orders open and still not clotured, and I want to know the date when my EA opened a selected order... Thanks in advance
Уважаемые разработчики. Просьба прокомментировать ответ брокера : Цитата : "Отвечаю на Ваш вопрос по поводу отсутствия минутных котировок за 2-3 года. Разработчик программного обеспечения MT4 установил ограничение на количество отображаемых тиков на графике и то что мы выводим на график, это тот...
Why I've differents results in 3 PC with same parameters in entry, same dates range and same broker ?  I've the follow results.  - Backtest in First:   - 2nd Backtest: - 3rd Backtest   
I thought this might be helpful. I found the original somewhere on the net and expanded on it. It should be noted that many of these commands should not be used because the MQL4 language provides better, cleaner, alternatives. Occasionally though, you find you need to accomplish a particular task...
I have installed MT4 manager to a Windows 8 based laptop. It has an error of public key not found but i already put the appropriate registration entry on the manager. Does it means that the MT4 Manager is not applicable with windows 8? Thanks
How is it possible that an EA has more than one condition for opening orders.Advise ,Example appreciated.
i made EA with simple strategy but it not work it dont open position and i dont know why its strategy works well with most pairs and time frames (not more H4) please help me extern int MagicNumber = 0; extern bool SignalMail = False; extern bool EachTickMode = True; extern double Lots = 1...
Hello all,  I am trying to write a very short indicator that I can run in back test that will show me how deep a draw down goes during a set of tests. I am looking at Martingales type of trading systems in some EA's. If the draw downs are not too deep they will close out as profitable in the MQL4...
you know how on the charts, you can apply one indicator onto another by clicking, "apply to first indicator's data?" how can you do the same for programming in mql4? For example, I want to create a strategy that involves bollinger bands on RSI values. 
H1 EURUSD FROM 2001 with 2% risk per trade. I am looking at the areas that need improving. Test has been confirmed with a tick test (EA uses open prices).
Hi there! I'm new to the community and to the idea of algo trading, and I'm in need of help with coding my very first EA! What I did is that I downloaded EA from this link: https://book.mql4.com/samples/expert and tried to modify 'Trading criteria' in order to meet my expectations. Of course my...
Some of the EAs I have a lot if inputs. Example 20 symbols, 10 ten frames and 32 patterns. The configuration with in Metatrader is a not pretty. So I had a QT app built currently it is a EXE app( later in the summer I will tackle it for a real time interface. Right now it reads and writes data to a...
The biggest (greatest) ticket number always corresponds to the last (the newest) order of the account. Is it true ?  Ticket(order A) > ticket(order B) ---> Order A was opened after the order B was. Is it true ? 
It is inconvenient not able to modify the order magic number. The order comment, too. 
What folder which MQL4 keep history data ? Thank you
Hi, When testing EA's, are you more concerned about the max or relative drawdown, perhaps both? I think max drawdown is more important as this determines the drop from the "balance" whereas relative determines the drop from the "equity". This way I know what I could expect from the worst possible...
Can somebody explain to me how iRSI indicator really work. pls check attached photo & code.       double sarMA1=iSAR(symb,0,0.02,0.2,1);    double sarMA2=iSAR(symb,0,0.02,0.2,2);    double rsiMA=iRSI(symb,0,14,PRICE_MEDIAN,1);    double marH=60.0;    double marL=40...
Hello all, On currency tickers (e.g EURUSD)  I get the chart and the H1 or H4 data is bar aligned on the hour so I get bars that are timestamped as 15:00, 16:00 or whatever. The problem is that for some tickers (#AA and #C) I get the H1 and H4 data bar aligned on the half hour, so the bars are...
As humans, we can readily tell when we have live data feed and when we don't.  But just try to write a code for insertion into a custom indicator that can tell, during times when there is no live feed (weekends, holidays, etc.) that there is no live data feed!   I don't think it can be done, but if...
If  PC run at sleep mode . EA can work or not.
Dear Guys I wrote a EA with a logic that trade with different symbol. Like logic looking for trade in EURUSD if logic not find any trade in there then it looking trade in GBPUSD and many more symbol look one after by one. But I am going to back test  using strategy tester I found a problem. Strategy...
Hi guys,       I am looking for two answers here. First to partially close an open order automatically on a specified profit target. I know that i can do that manually at market value by right clicking on the 'order', going to 'close order' and change the 'volume' as desired and close the partial...