Download MetaTrader 5

MQL4 and MetaTrader 4 - page 780

To post a new topic, please log in or register
Hi, I try to implement an indicator which is showing my outstanding orders for a specific EA. But I am trying as well to get the total lotsize in case there are more outstanding orders for this EA, but I am doing something wrong because it's not returning any value for the OrderLots. Can anyone help...
Hello, i have few questions, if somone will know answer to any of them, please dont hesitate to answer. Thanks 1) Is there a way (maybe via WIN-API) to get NAME (or filename) of an EA attached on ANOTHER CHART than my EA is? 2) Can i get array of all opened chart-tabs? 3) Can i somehow get "initial...
Hello. I've been using Managetpv2-3 EA for a bit and i like this ea. I would like to add more Target Stops to it and would like help to it. This is what Is currently in it.... extern int First_Stop_Target = 120; extern int First_Stop = 100; extern int Second_Stop_Target = 220; extern int...
I just did a LiveUpdate to Build 392. Now my Strategy Tester has a problem with Visual Testing - When my EA test stops, the indicators that are used in the EA are shown...but now they are blank with no data or lines. This creates major problems and wasted time in needing to delete theblank...
Hello, I'm currently writing an EA which works with trendlines. The algorithm for these work now and I was trying to backtest the EA with the strategy tester. However, it seems that there is either a huge bug in the tester or I have a wrong configuration of it. I have two log files from the tester...
Hi, I'm having trouble with Search function lately. Even if I search for "Error codes", it still gives me no documentation results. For the record: I was looking for this page https://docs.mql4.com/constants/errors Anyone else having trouble finding things in docs? Because "array" returns no results...
On my new laptop running Windows 7 Liveupdate does not work. No problems in the recent past on computer running Vista. Can anyone help?
Hello I'm new on the block. Not new to programming but new to MQL4. I'd like to access a specific candle in a chat. I'd like to analyse the last closed bar. I think it has the index 1. For this particular bar I'd like to access High, Low, Open and Closing Price. If one of you guys has an idea where...
  Help with code (12   1 2)
Hi all I have been trying to solve a problem I have on a code, without the results I want. The code is (only part of the code): if (Ordem==OP_SELL) { Ordem1 = 0; Ordem2 = 0; while (Ordem1<=0) {...
I'm new to coding EAs and have a question regarding the best (as in easiest and most robust) way to manage orders. My strategy will open up either 2 or 4 different orders with: a) 1/2 set with a TP (set with the order and held on the broker's server) b) the other 1/2 set for other exit criteria as...
  image test (2)
Hi everybody, I'm currently working on an EA that use bollinger Bands and would like this EA to only take one trade per day. In other words, If a position is close on a day T1, I do not want the EA to open a new position (Short or Long). I tried using the following "function": int TotalOrder =...
When I close MT4 and start it up again, I have to go into the tools menu and check all of the tools that I want to have on the screen. What could be causing this?
It would be awesome if there was an indicator that you could have a gif floating at a particular point in the background that was stationary to spice up boring charts.
Hi, I'd like to code the Adam Theory by Sloman and Wilders, but I don't know how to code mql4 or mql5, I'd like to find some coders that I can explain the theory to and they'll code it out, the theory is using velocity and inversion symmetry to show the future price structure for a given time range...
int ArrayResize( object&array[], int new_size)  can Sets a new size forthe first dimension.  but if   the array[4][][3]  i want tochange the size of second dimesion of it. how to do that ? thank you.
i got the "error 1" on ordermodify function. i searched the error code, it means that no error but my ea still showing this error. how to fix it? please help.
My history data shows the last closed position below the table while all the previous were above it.Total=OrdersHistoryTotal()"for(int i=0;i =0;i--) "Please which of this will select the last close order if the table is as aboveor can someone explain how the history table...
Hi all, How can I stop https://www.mql5.com/en/code/8126 this report expert to flood? I mean everytime I refresh the html file, page goes long and long.. Any idea how to stop it ?
the pic is a trade from last nite.a pending order I put in. green line was my sell entry,red line a 20 pip stop.look at the history - got filled at 11:42 gmt at 0.98384 (candle under red line) stopped out at 12:00 gmt at 0.98541 on the next candletrade lasted 13 minutes...
Do you, and if so how often do you reboot your production-level systems? So far, I've rebooted my systems every night. However I reduced this to a weekly reboot 2 weeks ago and had no problems so far. I'd be interested in your experiences - thank you.
i tried to open an order using script but got this error "uninit reason 0". what is it? how to fix it? please help.
I was writing a deinit() to try and delete all the objects associated with the indicator that created them on close of that indicator. All the objects created by the indicator start with the letters T16 followed by some other identifiers including a number for each arrow. I wrote this short code to...
It happens very often that we get unwanted calls in our life but you can do nothing about it. It maybe someone you are familiar with or someone you never know, it maybe a relentless salesman, or an annoying ex, or a harassment call from freaks. It is disturbing, it is torturing, you are totally...
Function "Trailing_Stop_Handler" is not referenced and will be removed from exp-file Function "Trailing_Stop_Handler" is not referenced and will be removed from exp-file Function "Trailing_Stop_Handler" is not referenced and will be removed from exp-file The above where WARNING message...
Please coding of EA i have done keeps opening same position as the one closed before it instead of waiting for the next opposite signal. i want order history control that will select the last closed order that has same ordertype andsymbol with that of which is to be processed by the EA for...
can someone help me with an indicator. 3 vertical lines drawn on markets open. ( adjustable time would be a good idea as times of metatrader changes from broker to broker ) Tokyo - London - USA Using 15 mins chart, the high and low is marked with horizontal lines. eg. using FXCM... a screen shot...
New article Using Pseudo-Templates as Alternative to C++ Templates is published at mql5.com: The article describes a way of programming without using templates but keeping the style of programming iherenet to them. It tells about implementation of templates using custom methods and has a ready-made...