Download MetaTrader 5

MQL4 and MetaTrader 4 - page 362

To post a new topic, please log in or register
Hi, I used to test my data on my old computer and everything was fine. When I bought a new computer and installed MT4 on it, the results I get on the new computer differ drastically from the ones on the old computer. I transferred the same history data for EURUSD from old computer to new one, so...
I am looking for an order entry management tool for MT4 that allows me to split 1 lot into ten 0.1 lots (limit orders) with various TP and same SL. Ideally, there is an option to stagger the limit orders as well (e.g with 0.3 pip interval) If you are a price action trader, I am basically looking to...
Is there a way to delete the the content of a file (using the MT4-functions!) without deleting the file:  like delete and re-create?
Hi, i wanna handle more than one symbol ,  so i tried these code  :    string Forexsymbol[24] = {"EURUSD","USDJPY","GBPUSD","USDCHF","NZDCUSD","AUDUSD","EURJPY","EURGBP","EURCHF","EURAUD","EURCAD","EURNZD","GBPJPY","GBPCHF","GBPCAUD","GBPNZD","CHFJPY","CADJPY","CADCHF","AUDJPY","AUDCHF","AUDCAD"...
Hi The Martingale part:  I basically want to be able to  increase the percentage of equity/account balance risked if the last trade was profitable. Keep increasing the percentage by 1% to a max of 10%. I have managed to code this. In testing the first issue came as I then ran out of margin as soon...
Having some issues with creating an ECN compatible OrderSend The error is that the "OrderSend" fails giving me a different ticket # than it should even the orders are being opened - the order Modify also never triggers to set the stops (minStop, StopLoss and TakeProfit arguments are in Pips)   Code:...
When I try to subscribe to a signal inside MT4 it won't let me click ok & it says this: "The volume of copied trade operations may not coincide with the initial volume of trade operations at Provider side." Has anyone else had this problem? I tried changing the lot size & it still didn't work. Any...
Hi,   I have an issue whereby after downloading the latest version of the iPhone mt4 app, under settings there is no tab for messages. I wish to set up push notification form my desktop and need a metaquotes ID but can't access it on the app. See photo attached. Does it have anything to do with the...
Help for these two functions is not very helpful: CopyRealVolume():  The function gets into volume_array the history data of trade volumes for the selected symbol-period pair in the specified quantity.CopyTickVolume(): The function gets into volume_array the history data of tick volumes for the...
Hello,   I have a Wordpress-page with a member section. I would like to create an EA where the Users can login with their member details and will be able to recieve a trade signal with my predefined parameters. Is there a possiblity to connect Metatrader with my Wordpress-Plugin so that the EA only...
Hi folks, I've got a signal indi which refers to each session open, and then flashes red or green, based on whether price is below or above the session open. Eg; trading during the Asian session, my MT4 platform time is Time[i] = 3:30 and the Tokyo Session started at 3:00. I've got each session as...
How can i get Symbol Commission? I need to calc Commission for order, no issues with OP_BUY and OP_SELL, but with pending orders (OP_BUYSTOP, OP_BUYLIMIT, OP_SELLSTOP, OP_SELLLIMIT) OrderCommission() return always 0. Any solutions?
Hi,   I would like to ask question regarding to error 4109 when i try to use the function OrderSend. I keep getting this error even though i checked the 'Allow live trading' tickbox. Do someone know? I'm a newbie to MQL 4 coding so please bare with me =)  Here's the code by the way.  I just put the...
Is there any way to know the list of all ticks in the current bar? My EA lasts a lot of time, so several ticks can appear while my EA is running. Therefore, I need know the list of appeared ticks in the current bar. Is it possible in MQL4? Thank you very much!
Hi there, I tried to subscribe to a signal but when trying from the terminal it returns the following error message - any ideas? I tried the broker and they pointed me to support at MQL - so I tried them and they just pointed me to the FAQ sheet, which I had already read, so now I am at a loss....
I am looking for the ADXW (Wilder) Indicator for MT4. I know it is available in MT5 but require this for an EA calculation in MT4.
Hi all, I found a trailing stop EA, but I want to modify it for some specific expert advisor whose magic numbers let's say between 1000-2000. Please can you help? <code removed by moderator>
Here is what I am using (see below). Now keep in mind this works on metals and FX markets...? During back testing these are the parameters: 2014.06.11 22:53:35.016 2008.09.25 10:00  Trend Fishing XAUUSD UK100,H1:  Account # 16384 -- leverage is 1:100 -- Account currency is USD -- Minium Lots are: 0...
Hello, Does anyone have code for this? By searching google in previous topics I found something like this but it doesn't seem to work: for (int k = 0; k < OrdersTotal(); k --)    {      OrderSelect(k, SELECT_BY_POS, MODE_TRADES);      if(OrderType() <= OP_SELL &&  OrderSymbol() == Symbol())...
I'm using build 646 v4.00. Alert("TimeHour(TimeCurrent()) = ", TimeHour(TimeCurrent()));  //works  Alert("TimeMinute(Time[i]) = ", TimeMinute(Time[10]));  //works, alert displays minute value 10 mins ago Alert("TimeHour(Time[i]) = ",     TimeHour(Time[4])); //Doesn't work, alert displays current...
HELLO guys  i hope someone here can help me with these indicators  http://speedy.sh/mtZXn/afl-files-to-mq4-or-ex4-files.rar http://www61.zippyshare.com/v/74990531/file.html okay , I have uploaded 3 files < 2 links < download the files from one of the links after you downloaded the fils < you will...
Hello MQL4 folks - I've been coding in MQL4 for a long time... this morning I was writing some code and noticed some very weird behaviour...... in the end I wrote a billy basic test routine and quite frankly I can't explain what on earth is going on here...   Try this:-  int OnInit()   {...
I need to draw line segment to show buy open and close position, I've found ObjectCreate but there is no such segment available only Trend which is infinitive line which doesn't fit my needs. So is there such line segment in mql4, to clarify I want to make lines as in tester visual mode where it...
I am in the process of developing a signals service. Before the MT4 600 build the Master EA was able to send trading signals to the SLave EA between two different computers located in two different places. However, this has stopped working after the MT4 600 build upgrarde. The relevant changes have...
I can read and write files OK in one terminal, but they appear to be filed relative to the terminal. I want to be able to read a common file from any terminal/account. Can anyone show me in the 600 build how to file an absolute path or otherwise access a common file from other terminals/accounts?...
Hi, i am with dukascopy. They allow conversion of mql4 indicators to java to use with them, and as i am familiar with mql4 i like to code my indicators in that and then have dukas compile it in jfx. Now, dukas allows you to trade in individual units, e.g 1000 units is 0.01 lot. Now if i wanted to...
Thanks for your assistance. I placed orders to open short on the NZDUSD daily TF. The entry was just below the bar low and I wanted my code to close the orders if price invalidated the trade by moving above the bar high. It appeared that my code closed the orders before price moved above the bar...
Hi Guys, having issues with displaying the current spread (Bid - ask). It works fine for up to 4 decimals, but I need the spread to be displayed as 0.00005 for example. My code is quite simple (please see below) int start(){        double ask_price = MarketInfo(Symbol(), MODE_ASK);        double...
possible find gartley indicator for mt4?