MQL4 and MetaTrader 4 - page 1155

To post a new topic, please log in or register
I am running with a demo account which recently download / register from http://www.metaquotes.net/ . V4 Build 220. Point return incorrect value as 0 when play with EUR/USD and GBP/USD ? any clue?
Here is some typical code which prevents an EA from trading until enough bars are available. start() { ..... ..... //Are there enough bars to consider a trade? if (Bars < 25) { Print(" Bars < 25. Waiting for more bars."); return(0); } ..... ........
hey,if someone can build the 2 folling things: 1.bar countdown - meaning it will show how many time there is left till the candle is over. 2.alert every time the price get 7 pips away near bolinger band with deviation "3". thats all, big thanks if you can make it work.
I made a trading application in VC++ and couldnt figure out how to send trade signals to MT4 so im stuck trying to make an expert advisor. So I wanted to start out with something simple and to get a feel for MT4 so I came up with this, forsome reason it doesnt work and I have no idea why. I think it...
Hi, is it possible to write an ea where I can choose which indicator is used? double iCustom( string symbol, int timeframe, string name, ..., int mode, int shift) iCustom is using "string name" to select the indicator, that means that it should be possible to use simply code like: extern...
I would like to request help in modifying the Parabolic SAR indicator. This should be easy for someone who is familiar with the programing language. I can trade but am brain dead when it comes to programing language. I would like the Parabolic SAR to emit an audible signal when it flips to the other...
Hi, I have had this problem bugging me for two weeks and I just can't figure it out: Made a special 'compund' indicator with one combined output (graph)...works great. But when I run the same calculations in the EA (obviously using arrays instead of the indicator buffers)  and drawing it using...
Hi All! I want to be able to email the daily results to myself from my vps running MT4. Is this possible and can someone point me in some coding direction? Excuse me for being so noob. C
How can the EA perform sound in the case of a pending order? For instance, colourful sound for the close of take profit and sorrowful sound for the close of stoploss. And notice sound for the success of sending an pending order. can any one with kindness help me?
Is it possible to get periods  >  than 1mth in metatrader?  I have looked at the code of the period optimizer, but I can't fugure out why any attempt beyond a mth gives an unending  "waiting to update" message.
SimonTrader
Hi, I need to introduce in my EA a routine able to ask a password and to change it after a certain period. The password allows the EA to perform trades. I am looking for the magic words to write this simple procedure. Thank you all for any answer. SA
  A System: Test (100   1 2 3 4 5 ... 9 10)
Welcome Community, It is a pleasure in announcing that A System Test is beginning.I hope that day of the real activity will be very soon.I thank all the people for kindly collaboration. Best regards, Ais.
I have read that a GlobalVariable (Client terminal) has to be a double type. But can it be an Array of double? thanks a lot.
Dears! Charts of MT 4 indicate reversal bars(green cross). Does exist an alert per Email if this reversal cross appears and is confirmed by open of the next bar? I mean if there is programmed an exper advisoror script, which can trigger Email if this condition is filled, I did describe. Thanks
Hi. I ran an EA and got 29.59% Maximal drawdown (5315.90 $). As I know, maximal drawdown is the maximum difference between any top to any bottom. Looking at the back testing report , the maximum difference between any top to anybottom is 2701.40 (25547.80 - 22846.40) which are 10.5%. Can anybody...
I wrote the attached .mqh files and I wrote in my expert the following int start() { #include <punto.mqh> #include <decimali.mqh> #include <Lots_Long.mqh> #include <Lots_Short.mqh> .... } I'm not sure if I this is the right way. Could you check the attached files? Thank you!
How can an EA know when a position was closed by the stop loss? I need some sample code or location where to find it.
1] i am planning to buy ssd, does mql have problem with that 2]  since i planning buy a new one some question bother me     next year in China will look like this for the new computer     3*1g-ddr3 = entry level      3*2g-ddr3 = standard      3*4g-ddr3 = power     3*8g-ddr3 = high end it seem 64 bit...
Hi all, Is there a way to change the spread inside the tester? Some brokers changes their spread during news and I would like to test my EA using the maximum spread that my broker can apply. sb
On the website of the Automated Trading Championship 2008,an Interview with Alexey (FXPro) has been published. Alexey contesting in the Championship under the nickname FXPro first heard about Forex 6 years ago. For these years he has developed about 200 Expert Advisors. Now 6EAs are operating on...
hello forex experts! can you please help a newbie?  I'd like to know how I can use typedef struct in MQL4.  I don't see it in the documentation.  does it come in a different name? thank you very much.  Your help is very much appreciated. MQL4_ndewbie
I have an EA, there is no error in the code but the error messagefrom Experts shown that: can not open file. It doesn't open trade.Could you kindly help me and fix the problem. You can contact me in the following address: kwng111@gmail.com Thanks in advance for your help. Regards, K .W.
My broker loves to disconnect me after my EA places the first trade.  MT4 is then not able to reconnect to any server until I manually select another server to try. My Questions 1) Does MT4 automatically try to reconnect to the next available server? 2) Is there a way to force MT4, via an EA or...
  I need a help (7)
dear I ask abuot.....how i limited/place some point of a stop loss and atake profit in my new order tool that set a permanent case. because it take me aloot time to place it when i scalping excuse me abuot my english
Can Arrays be passed and returned as parameters in custom functions? I try this and it doesn't work: string someArray = returnArray(); OR string someArray; ArrayCopy( someArray, returnArray() ); string returnArray() { string a[3]; a[0] = "A"; a[1] = "B"; a[2] = "C"; return(a); } Any...
How do you view topics you subscribe to? I can't seem to find a link anywhere.
i need o know if any programer can write an EA IN THE ABOVE MENTIONED PARTERN. PLEASE REPLY WITH REALL80@YAHOO.COM THE EA works with fractal as well. Please reply.
I want to write a function to closeallorders based on a variable parameters input of Symbol and MagicNo eg CloseAllOrders() - close every orders CloseAllOrders(Symbol()) - close orders that are Symbol() CloseAllOrders(MagicNo) - close orders that has MagicNo CloseAllOrders(Symbol(),MagicNo) - close...
Hello, I have make a simple EA for the First Time. I used a ADX 14 Indikator on 5 Minutes Timescale. (chart = Candlestick). I have implemented a Short and Buy Signal. I test before i opened a Order the Active Orders, If i want to Buy i check the Sell orders and close this. Can anyone Help me to find...
I make a buy order but do not put in a TP or SL number, come back a little later and the order is closed at a loss! What gives?