MQL4 and MetaTrader 4 - page 1571

Hello. I was wondering if there was a quicker way to download historical data (all time frames) without clicking each symbol one by one. I saw this thread in the forum but it did not help me. 'Historical Data' It's okay when I only have 20 or so currency pairs to download, but if I'm downloading...
Hi, today I learned about setting the preferences of MT4 in a config.ini, this is really awesome! And it really works! ;) The only thing which I cannot get to work is `DllConfirm`. When changing this key's value it's simply ignored! It just takes the input of the last setting manually made by the...
[Deleted]
Hello, I'm trying to find a way to have my EA limit its trading after it gets a winner over a user defined threshold. I am using the following code //---- check for successful trade for(cnt = OrdersTotal(); cnt >= 0; cnt--) { if (OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY)) { if (OrderSymbol() ==
How do I program the condition/signal (with an indicator) so that it is triggering the acoustic alert only if s predifined condition is true FOR THE LAST BAR in the chart? (now the alert is triggered as soon as I add the indicator to the chart window (due to previous signals in the chart) I'd...
[Deleted]
hello,pro,im a new bies, after i compiled an EA from the online library,then add to my navigator window, from there i attached it to a chart its show the EA on the top right corner of my chart with a dagger and i enable it and smily comes out the wait for the EA to work but its not working,pls can...
New article A Pattern Trailing Stop and Exit the Market is published: Developers of order modification/closing algorithms suffer from animperishable woe - how to compare results obtained by differentmethods? The mechanism of checking is well known - it is StrategyTester. But how to make an EA to...
Hello,I'm planning to refresh a repaint indicator from inside the indicator, it's similar with using a keyboard shortcut.How to do it? I found an information about it on http://www.metatrader.info/node/167, but it's not working. Anybody know why?Thank you
[Deleted]
Hey all, Great forum here, lots of great people and advice. Keep it up! First Q: Currently playing with this app, and just wondering, in the demo, if I can change my stop/profit loss to be lower than 100? Currently I place an order, then modify it, and try to change it lower than 100, but its not...
[Deleted]
Is there any way to identify the color of the bars in Acceleration/Deceleration Indicator (AC) using codes. Thanks in advance....
[Deleted]
hi how to complet this ? when i compil it, i still have 10 alerts . how i can do ? //+------------------------------------------------------------------+//|                                                            N.mq4 |//|                      Copyright © 2008, MetaQuotes Software Corp....
[Deleted]
Hi all, I'm trying to add PlaySound() to MFI BW indicator to alert me a change in bar color following the article here. Unfortunately, the article doesn't have an example code for this type of "compare" indicator. Could someone help and point me to any similar example code or if someone can help to...
[Deleted]
Not sure what I did but now if I try to activate either the indicator or object list, they do not appear but my system locks up just as if they where pulled up someplace. The only way to get out is to cancel the entire program with the Windows task manager. Any ideas. Just noticed someone having...
New Version: MetaTrader 4 Client Terminal Build 217: MQL4: Fixed a compiler error that caused crash in Windows Server 2008 operating system.MQL4: Fixed an error in the FileReadArray() function. When reading array lines, the number of read lines is returned now.MQL4: Changed the calculation algorithm...
[Deleted]
would someone help me go throught the steps needed to copy an expert advisor and make it function ?? thanks John
[Deleted]
built an EA for a new strategy im testing out, and it works really well untill it tries to open a 2nd trade. for some reason the EA will not open a trade after the first one closes, unless the ea is restarted or mt4 is restarted, it doesnt return any errors during the compiling or while its running...
[Deleted]
  OnOrderClose Function?  (11   1 2)
I'm looking for some way for MQL4 to be notified that an order has been closed, at what price it was closed at, and at what price the order was opend at. For example, a buy order was initiated at 1.56.  The take profit is set for 1.565.  The price reaches 1.565, the order closes.  Automatically,...
[Deleted]
Can somebody help me with expert advisor. I am new in this forum and I would liketo know how to make an expert advisor that will send me an e-mail on my pocketPC. I would like to have an alarm when my 9 period EMA is egal to my 36 periodEMA on different time frame. Thank you very much for your help...
  2/3 hrs charts  (3)
Hi, Just a newbie on the MT4. How can I view 2 and 3 hrs charts on MT4. ckmoied
  Global vars in EA - good?  (12   1 2)
In my EA, I am examining MACDs for the last few bars. Originally I had these defined within the start() area. However, I have need to create a function that actually does the logic and places the order (Order_It) In previous programming experience, it is not a good idea to use global variables....
[Deleted]
I'm not 100% comfortable with EA's in general but like to use custom indicators. Only issue is I have no idea how to edit an indicator to suit my needs. I have tried to read through the book provided on this site but again I only require one thing and not a full blown EA and still can't get my head...
I have written an EA that opens orders and when the price reaches 1:1 RR ratio, moves SL to Breakeven. I need the program to remember this SL and I store in in a file that I retrieve later for my calculations. This works well in forward testing. However while doing backtesting the EA does not seem...
[Deleted]
Does anyone know of a DSL or Cable Modem Failure Alarm or Connection Failure Alarm besides the "No Connection Alert" used in the platform? ... The purpose is for night trading alert should the connection fail while asleep. ??? The platform's "No Connection Alert" would be inadequate to wake someone...
[Deleted]
Anyone have a little chunk of code that would tell you say the high between 3am-6am ( local time on my computer) when the current local time on my computer is 10am
[Deleted]
  A new trader  (1)
Please,i want you guys to help me out.I am a new trader and i want to know the best and reliable indicator to be using.please,do assist.
I will appreciate help from somebody regarding entry point in to the trade as always i get many loosing trades when i trade eur/dollar pair, though i am in correct trend and enter around the entry point . I use 10 pip s/l . How other people use different methods any help.
[Deleted]
  missing entries?  (1)
i dont really know programming of any kind but reading thru the material in the help section i came up with a simple program to practice different things for a EA. the one im trying right now however doesnt seem to be working as it returns a few warnings for things that "should" be in the EA but...
welcome to help testing this MetaTrader 4 Expert Advisor.... About the System. Opensignal - is a kind of black-box system. Signals are generated on server side, client software reads them using http protocol. The system is always on the market, there is always one trade per chart open (EA opens...
Hi All, I run an Expert Advisor on my live account and it will suddenly be removed from the chart. This happens only in my live account. There appears an error message in the log file namely "uninit reason 1" which seems very suspect. Does anyone know what the cause is of the removal of my EA and
[Deleted]
The buy order was sent with this code: ticket=OrderSend(Symbol(),OP_BUY,lots,Ask,3,Ask-range-10*Point,Ask+range+10*Point,NULL,MagicNumber,0,Blue); But I keep getting errors like this: 2008.06.24 05:44:18 '703994': requote 1.9662 / 1.9665 for open buy 0.10 GBPUSD at 1.9666 sl: 1.9648 tp: 1.9684 2008...
[Deleted]
Forex trading signals. Trading signals - is a set of rules written in a special language Trading Language (Mql4), which formed the team and a warrant for opening and closing of positions. The signals are an important part of trading strategies