MQL4 and MetaTrader 4 - page 1209

To post a new topic, please log in or register
  How to ... (3)
Hi! excuse for bad english How I can find Highest bettwen 12:05 - 14:10 in tester some day we have missing bars and when i wirte extern datetime T1=D'12:05'; MetaEditor give me some Errors I don t want to find for example T1=D'2008.06.01 12:05'; becuse this is for specfid day and not for...
hi, i 'd like to start new thread about pyramiding strategies. i am searching solution from few months, and this is my result : i ' ve developed an EA based on keltner channel and macd. if you are interested to develop my project tell me. this is my back test (2008) and screen giapel
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...
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...
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
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...
Is there any way to identify the color of the bars in Acceleration/Deceleration Indicator (AC) using codes. Thanks in advance....
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....
When an Expert Advisor is attached to a chart, the timeframe is manually applied by clicking M1, M5, H1, etc. This timeframe controls how often the EA receives a market tick. Each market tick runs all the code in the start() method. How can I programmatically change the time frame from D1, to H4, to...
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...
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...
would someone help me go throught the steps needed to copy an expert advisor and make it function ?? thanks John
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...
  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,...
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...
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....
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...
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...
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?
  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.
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...