Download MetaTrader 5

MQL4 and MetaTrader 4 - page 237

To post a new topic, please log in or register
Hello,   I want to program an object (horizontal line) that I can move. It will be like a takeprofit, but instead of closing the trade, the trailing stop will start. I am able to program this part.   The problem is, I want the actual takeprofit generated automatically by the system on the chart(The...
I have some custom indis on my metatrader 4.  The characters are not appearing correctly.  I have been told that the wingding that should be 158 is appearing as something else.  This is the case with another character as well.  Any ideas how to correct this?  There are many others on the forum I...
Hi everybody! Recently I was developing a simple custom indicator that detects divergences based on Stochastic Oscillator. I wanted to test one divergence condition. The indicator inserted the first arrow, but the second one (given that there was a clearly VISIBLE divergence) doesn't get drawn.  If...
Is there a simpler way to reset a string array than to loop through each individual reference? If I define that array i can write: static string sC[] = {"","","","","","","","","",""}; If I try to 'repeat' this later in the code:   ...  sC[] = {"","","","","","","","","",""}; I'll get an error and...
I think I know the answer to this already but am looking for confirmation: What happens on an incoming tick (in regards to code); will the stop execute first on the trade and then the code is executed, or the other way around?  Any links to "what happens on an incoming tick" will be very helpful....
any1 face problem tat mt4 not taking profit even when your trade had reach the take profit point? and hit set lost afterward  
Hello, I rewrote a pivot point indicator in OOP. At the time of the removal of the indicator I got error messages, how to avoid them? It seems that if I place the buffers out of the class, I have no more error messages. I wish I linked buffers and class without error messages, a solution? If...
Hi,   Could I change color of a customer indicator without use extra buffer? And how? I mean one indicator 4 colors.
I need to load values of previous bars of several symbols and timeframes. So I load the quotes and wait some time after the request. My question is simply: is it enough to request just time and open like (simplified code): int earliestBar = 500;string sym[10] = {"EURUSD",...};int tf[9] = {1,5,..}for...
MT4 is showing some crazy numbers in the JPY pairs on micro lots. Anyone have an answer as to why?
hello, big problems, Can anyone tell me where is the trouble with my code, since yesterday my plateforme going down. thanks ;) (ps : I tried to put code between code tags but It's not work, i tried to add a files too but I can see them ???? sorry)   #property indicator_chart_window #property...
Hi,   Does anyone know when in 2014 that Metaquotes added the spread selector box? What was the first MT4 build that included the spread selector box? This is an awesome feature!!!    
Yesterday morning, I was working on a EA, when all of a sudden, the trade that was opened, had a TP, when one wasn't entered.  I thought that maybe I had accidently entered one when I was working on the EA.  So I deleted it.  Later, in the afternoon,  I was working on a modified version of the EA...
Hi All MQL experts, I have been trying to code an Martingale EA based on past history P&L, however, my programming skills is just not up to mark, I am lacking an auto computation algorithm for the past few days, on a daily basis. It's difficult to segregate/differentiate orders and then calculate...
I use my EA for 3 different accounts on same system? from my laptop i installed mt4 for 3 different folders and run same EA i applied on all mt4 accounts. problom is EA doesn't place orders for all accounts. which places order in one account only? other accounts no trade? what could be the issue?...
I was checking to see if there is a mql4 function that can be used to rescan servers and/or login to a trading account?   I want to be able to automate this process of being able to a) rescan/ping broker server at certain interval. b) switch an account with the same or possibly different broker...
Hello, i want to predict/backtest Patterns. The Pattern are the last 1-5 Candles in the Chart. I want to have this price data in my backtest, but i dont get these data with iBarShift(date), because i just can get the data of the past in the backtest which have been tested. How i can get them...
Dear members: I have a client that I have sent an EA, but he is using WineBottler for Windows compability, and he is having difficulties to run the .ex4 Anyone knows how he can put the .ex4 file into the experts folder? Thank you! Luis
Hi, is that possible and how can it be done, that an EA checks 1) the latency to an server check the latency of its actual server mybe just by beg = GetTickCount();ord = OrdersTotal();latency = GetTickCount() - beg; decides: this os ok - do nothingdecides: too big check for a better one //...
As you can see in the file it says that consecutive wins are 21, while they are obviously 18 (on screen). Also the consecutive losses number is different, and from that, all the other streak statistics are different. Why does that happen ?
Hi, I have a question : How can I calculate the value of a pip on a given fx pair, at a given date ?
Dear help desk, I created a new account with a broker but I can't access it using meta 4. Is this a problem with meta 4 or the broker? I also prefer to use the previous version of meta 4 which I installed last year in October which the layout as per photo attached. Please send me the download link.....
Hello guys. I recently seen that the simple EA i've done to open trades when a custom indicator plots an arrow has been missing some trades. I've configured the indicator to give a lot of alerts, exactly for testing the functioning of the EA , and from like 10 signals the indicator gave, the EA...
I was told by my broker that Metatrader in the latest update did not include the MINI TERMINAL, one click open positions & one click close all positions. I sure miss this feature and would like it back !! As now, it takes 2 clicks to open, and many many more clicks when you have more then one...
Hi. I think your update is worst than old version. Actually really very bad. I want to write some matters about new version for phones (android - my phone is Note 3 ) 1 - When I want to close my position, I can't see my loss or profit in realtime at this screen.You changed this menu and add a...
Hi I'm learn programming I write a program but it have problem. it can not close all open positions at a point Please see Please solve my problem  thanks
http://www.maximintegrated.com/en/design/tools/calculators/general-engineering/ltpd.cfm
Hi all,  I'm trying to calculate how much I would lose in my deposit currency (GBP) if my stop gets hit. MT4 (using FXCM) does this automatically when you drag a stoploss, I want to replicate this in code. I try to use MarketInfo(Symbol(),MODE_TICKVALUE) , which is the  'Tick value in the deposit...
Hi,    Thanks guys! Maybe my post has passed several days, so that no edit/delete option.    What if I discovered something is not proper and it has passed several days? Could I have an option to delete it or edit it?    Cheers
Hello I want hidden some parameters in my EA , please help . What should I add code ? Thanks