Download MetaTrader 5

MQL4 and MetaTrader 4 - page 43

To post a new topic, please log in or register
  OrderSend error #138 (11   1 2)
Hello, in backtest i get this order error 138.   This is my code.   RefreshRates();       MqlTick tick;       if(SymbolInfoTick(_Symbol,tick) == true)       {          double xbid = tick.bid;          double xask = tick.ask;          double point=SymbolInfoDouble(_Symbol,SYMBOL_POINT);...
Hey, I'm trying my hand at creating a simple alert indicator. I keep getting what look like simple syntax errors, but can't figure out what's wrong.    #property copyright "Me" #property link      "" #property version   "1.00" #property strict #property indicator_chart_window...
  Bid and Ask in backtest (13   1 2)
Seems to be the same. Is this generally the case ? Also MqlRates spread == 0.   Is this normal ? Thank you 
Hello, am i alone with the problem that my expert gets not updated for backtest when changing the code, compiling without errors ? This happens sometimes. Deleting .ex4, running backest throws an error "tester cannot load..." So the correct EA is adressed. After compiling without error, so new .ex4...
Does anyone know if there is a way to change the default lot size values in the pull down list of the Order window of MT4. I know I can change the default lot size in options and I know I can type in what ever value I want in the order window but I would like to just use the pull down list to speed...
Hello Unfortunately, I decided to migrate to a different laptop with a new windows 10 installed  The manufacturing are becoming fans of 64 bit operating system. Therefore, they sell their new product with one option ( 64 bit ) operating system and backup. Means you don't have a choice to choose...
I tested my code last week, bellow first picture.    And today I tested same timeframe, same period, but result has changed. I didn't change my source code. Why this happen?   
Hi, I have noticed that I have an old EA that sometimes stops to run. I mean I have to click compile button again so EA refreshes and restarts to run. After days it will kinda freeze again for sure. What can I do? Should I replace void_Start() by void OnTick() ??? Please help.
Hi, I have 1 variable times created this way: (picture attached) I need to calculated the time between now and the last time a news time came out. when I do this way... it works nicely: Print((TimeGMT() - GV_FxCal_News1)/60); => I got the time in minutes. This is working from the EA which creates...
Hi  All, Now it was 3 times (every night) that my MQL VPS was turned off...from beginning without any notification but today with notification #91328 MT4 201354*** (Tickmill) stopped, 3.6 Gb RAM. I already sent a message to service desk but without any response... I use only 9 charts so there...
So i have an array, with values equal 0 or equal closing price. I need to get all values with their indexes from this array, that are not equal to zero and do math equations with them.   For eaxample: I have Buffer named Array[], and I need to sum every array member, that is not equal to zero with...
  Binary Option (3)
Which is the most trusted Binary option trading platform in for U.A.E?
I'm somewhat frustrated but I'm getting the a. m. error but I can't find the souce. Proboblyblind to from staring so long. Here is the code that is causing it: //+   Select long positions     +    for ( i=OrdersTotal()-1;i>=0;i--)       {       if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES))...
Hi, I've received the same issue as one year ago; both of my desktop & mobile MT4 apps stop receiving any news update since 18th February 2017. Can somebody please assist on how to solve this?   Thanks and regards,  bubble.tppg 
Hello, I am bringing some of my indicators over from NinjaTrader which are C# written and have a couple of questions regarding array management I am hoping someone can shed some light on.   1.) In c# I use "foreach" to search a double arrray to count how many times a particular double exists in the...
Приветствую всех участников лучший ресурс на планете, с лучшими профессионалами, которые бесплатно помогают в нашем не легком деле!!!!! :) Я хочу видеть, кого не жалко, конечно, хотя бы один работающий советник с настройками , индикаторы и шаблон для коллег по работе...
Hi, everyone. How do I check if the content of a variable is numeric, especially the content of a text box object on the chat? I tried the following but it did not work: ObjectSetString(0,"SimultaneousReleaseIndex",OBJPROP_TEXT,"Four"); if (MathIsValidNumber(ObjectGetString(0...
Dear friends,   I am trying to adding bollinger bands on inchimoku rather than simple MA yet the graphs created by my code is just so stupid.  the last lines of my codes (that I have altered) is   //--- main cycle    for(i=pos; i<rates_total && !IsStopped(); i++)      {       //--- middle line...
Hello MQL5,   I hope you can provide assistance.  I cannot see why the signal keeps getting terminated.    I am on XM UK MT4 - Version 4.00 Build 1045 (3 Feb 2017) I have attached a screenshot.  If there is anything further required, please let me know Ama     
hi im learning to code and for that im checking EA codes so i have this with a EA based in envelopes   Env_upper = iEnvelopes(Symbol(), PERIOD_M1, Z_period_328, MODE_LWMA, 0, PRICE_OPEN, EnvelopesDeviation, MODE_UPPER, 0);  Env_lower = iEnvelopes(Symbol(), PERIOD_M1, Z_period_328, MODE_LWMA, 0,...
Hi guys I have tried several times now to install MT4 on my Mac, having first installed Wine and PlayonMac.  I can get the platform installed, but am unable to access all currency pairs in the 'New Order' function.  When right clicking on a chart, no trade/new order option is available.  Please help...
Hi, Can anyone suggest what is the best way to keep MQ (Metaquotes) and Broker data separate and really do keep them both? I don´t want one overwriting the other and vice versa. Thanks a ton for suggestions..
Sirs, In connection with another problem, I am trying to write a piece of MQL4 code in an EA that gets the closing values of the last eight hours and loads them into an array. After one hour, the code reloads the array.  However, printing out the array values indicates that the values in the array...
Hi. Recently I have devoloped simple EA, code seems to be ok in my terminal, no errors so far, but when I'm trying to upload my EA to MQL market it doesn't pass automatic validation, error 131 appears - invalid trade volume. have anyone idea what it could be? here's the code :  
Only curiosity about the predicting power and the accurancy of the autochartistautomatic analisys... But I only took a view of the site, this the first time ihear of it. SA
hi guys, first i need to say that i use a separate folder for back-testing, in my "mt4/history/" is a folder "backtest", the full path is "Program Files (x86)/MetaTrader/history/backtest". if i want to use mt4 with broker data, i login to normal account / demo-account, if so the history is taking...
  How used MT4 (4)
Hello everyone, I downloaded a platform from this site MQL5, I think I have downloaded the Mt4, but I have some doubts, above it says HalifaxPlus live, I tried to connect the codes of a broker of a demo Mt4, but I can not activate the orders. Practically, I have left off-inactive NEW ORDER. What...
Let's say in the same MT4 terminal there is one EA running on a EURUSD chart and one EA running on a GBPUSD chart. If there is a new tick for EURUSD, the code inside of the OnTick() function of the EURUSD EA will be executed. Under certain conditions I want it to make a call to the GBPUSD-EA, so...
Hi dear friends Is any one knows how to make the below code that it work?? It should read from "Callouts1.csv" (File is located in ...\experts\files\) ------------------------------------------------------------------------------------------------------------------------- int Handle; string...
Hi, I am already trying to read the values of an indicator with iCustom, but always I get only 0 with this kind of indicator: test.mq4 extern ENUM_TIMEFRAMES   MA_TF            = PERIOD_M30; extern int               MA_Period        = 50; extern ENUM_MA_METHOD    MA_method        = MODE_SMA;...
1...363738394041424344454647484950...1245