MQL4 and MetaTrader 4 - page 285

To post a new topic, please log in or register
New article Rope Indicator by Erik Nayman has been published on mql5.com: The article reveals how the "Rope" indicator is created based on "The Small Encyclopedia of Trader" by Erik L. Nayman. This indicator shows the direction of the trend using the calculated values of bulls and bears over a...
Morning everyone   wonder if you might be able to help me. For my dissertation I'm looking at using volatility forecasting in the retail FX sector and have come accross many papers referencing general volatility forecasting. What I'm struggling to find is any studies specifically focusing on retail...
Hello, I wish to get Max and Min value in arrays. But I failed to get maximum value using ArrayMaximum using below source code. Does anybody help me?   int start() {     double b_oprice[3], s_oprice[3], Bprofit=0, Sprofit=0;     int Bcount=0, Scount=0;     int Distance = 10;...
Hi, I am making an indicator which will draw planet lines reading from a .csv files. I want the price longitude get drawn like a moving average on chart. Now how to pass the data into the buffer to draw lines. Thank you Regards     
Hello all, this is driving me crazy, i;m trying to purchase an indicator but there is no products in the market tap on my platform, cannot find an answer, sent a message to service desk but to no avail.
Does anyone know why when setting OBJPROP_RAY_RIGHT to true on an OBJ_CHANNEL it creates a channel with the point1 and point2 line correct (line extends from point1 through point2 and then to the right to infinity) but the point3 line extends to the right and left.  Why???    
Hi, I0m trying to code an EA which close all orders when a profit is reached on the whole account. The problem is with some orders (not all) the Journal says: ALert: order ... failed to close. Error 4200. And order is not closed, and at every tick the same alert. This error is for "object already...
  dynamic_cast (9)
At the bottom of Typecasting - MQL4 Documentation it saysYou can use the explicit casting to convert the base class pointers to the pointers of a derived class. But you must be fully confident in the admissibility of such a transformation, because otherwise a critical runtime error will occur and...
Part of my indicator uses USDCHF open price inverted to give CHFUSD open value which normally is 1/USDCHF. My indicator is working on one or two time frames but on others I am getting an error "zero divide" and it is pointing to this line of code?  double   Quote = 1/...
I guys!  I have checked everything a tons of times and i just can't get it... The Order some times get updated and some times get OrderModify error 1  Please help me! Thank you.   Just for information:  PipsToTriggerTS = 0.01000 = 100 Pips PipsToLockInTS  = 0.00500 = 50   Pips void TrailingStop(){...
hi, i want to have a clean install of the terminal, means NO ea, indicator, script, library or include... so i have deleted all these files from MQL4\... but the "technical indicators" cant be deleted here, they are still shown at the terminal: - Trend - Oscillators - Volumes - Bill Williams is...
Hi,   There are internationalization options to make the comments on the parameters, and of course, the messages run in the OS language?    Example : Need to make the default language at english, and change it according to the operating system. If not, use english.  
[see attached] current eurusd m1 data goes back to 19october2010. i would like to import data for mt4 history center from here: http://tinyurl.com/hoy4w25 - my goal is to have eurusd h1 data back to 2001. my question is in regards to mt4 period converter script. [1] do i import data into eurusd m1...
  Ocean theory based experts (49   1 2 3 4 5)
Hello all, Is there one of our fabulous guru can make a simple expert exemple, which opens only 1 trade per color change. The color change ----> it opens a trade -----> the trade close at TP ------> the expert needs to wait the next color change to open a new trade With this indicator. This is...
Hi, I have assigned my funds to an expert trader who claimed to have more than 10 years of trading experience. However the recent detailed report results made me very worried, can any kind soul please advice me based on the results? (2 weeks ago and today) 21/1/16       Closed trades :...
Hello  When using c++, is it possible to access the mql methods from within the c++ code? Or is it only possible to pass primitives between the c++ and mql?   To clarify, I am wanting the ability to call orderSend in c++ code.   Thanks 
New article Graphical Interfaces I: Form for Controls (Chapter 2) has been published on mql5.com: This article is the continuation of the first part of the series about graphical interfaces. The first article Graphical Interfaces I: Preparation of the Library Structure (Chapter 1) considers in...
Setting a goal to find the ea that automatically limit losses amount to $ 20. 200 pips profit target would be lost if the pips is also automatically adjusted to 200. Then it'll be automatically assigned 200 Pip loss of $ 20 million calculations allow me lots. Looking from five years ago, but could...
I've just installed MT4 on an Android Tablet.Can't seem to figure out how to place a ,"Stop-loss/Take profit?" Are these options available on the Android MT4? Thanks for any help :)
Hi guys   I have made an scrip to give me some information about the Market. Now i'm making an EA and i would like that my EA could call my Script.   I read about it and i think i must use #include and i try it but i just cant get it rigth.   Can you help me please. 
Hi, I'm trying to calculate the ima of an indicator, below code has been used for this purpose and it was working fine a couple months ago but not anymore after build 890. I basically take the indicator value to a double array, create a copy of it as indix_temp to change sequence by...
Hi all,  i am running my EA on a MT4 platform using VPS.  My impression is that it should continue running without any intervention or minimal supervision.  Recently,  i open up the VPS. it indicates the following: Connect Failed. Automated trading disabled.  Automated trading disabled because the...
Hi, I'm trying to plot horizontal line in the highest price in daily time frame, the line will consist of two things " highest price + Spread" The line it is drawn nicely, but i'm unable to add spread to it. Alse I would like to have the line "name" above the line (ex: DLine) "This is not...
Im trying to see why it is that the following Indicator code only creates objects on strategytester as and when each bar closes. But when I place the Indicator onto a chart it doesn't draw any previous objects? #property...
I set up a demo account with Forex.com after installing MT4 and attached some expert signals to several charts.  Now after about 3 weeks, all the charts have stopped updating.  I am tracking EUR/USD on all charts, but I'm not getting any new ticks over the last two days.  I tried logging back into...
Hello, Prior to build 600, I wrote a C# DLL that worked perfectly but it seems that build 600 broked my EA calls. The C# DLL define some functions like this (using RGiesecke library): [DllExport("loadAllDatabase", CallingConvention = CallingConvention.StdCall)] public static bool...
I am trying to call a function from dll written in C# named bool CyboLoadBuffer(double &buffer1[], int size, double &buffer2[], double &buffer3[], string symbol, double a, double b, double c, double d, double e, double f, double g ); from my expert it shows error Stack damaged, check DLL...
Is it just a problem with my MT4 or did the speed adjustment also disappear on your MT4?
Hello, I am looking for a script that would return the number of active symbol on the account (number of symbols that have active orders). Il would use this value in an EA to limit the number of active symbols. Thank you!
Win 2k8, R2 SP1 Quad core 2.5gb ram.  b920, terminal running for 2+ months continuously, AUDUSD pair.  No custom dlls used (only mql4). 2016.01.08 02:27:07.144 Access violation read to 0x1432BE9C in '[mt4 portable]\MQL4\Experts\[ea].ex4' I noticed this in one of my terminals.  The EA just stopped...