MQL4 and MetaTrader 4 - page 1222

Hi all, I'm have a custom indicator I have developed, that have 7 buffers. The indicator runs ok, because I get painted on screen what I want, but when I want to get the buffers values using iCustom I allways get '0' as value. So taking into account that MT4 does not have a debugger, I begin to put...
[Deleted]
Hi, I am intending to run a tradecopier on my metatrader4 platform from FxPro brokerage and seems like upon registering the EA, the platform crashes with a seemingly weird message. this is all it got to say at the end of crash all the time: ------- There has been a critical error Time : 2011...
-
Hi all, in the moment i fight with a - for me - strange problem i cant solve until now. In an EA i have few indicators... also custom indicators... The same EA (Exact same!) and same Indicators are running on two MetaTrader Installations for 2 different brokers since November 2010 since few days...
[Deleted]
Greetings, I open a 1-minute chart, scroll back several months, and then go to open an offline chart, but there is not a 2-minute offline chart available to open. What am I doing wrong? Thank you.
Hi, In my downloaded history Files of various pairs with 3 different brokers there are data missing in May and June 2010. I can't find a way to fix the gap. Deleting and downloading with Administrator rights did not work. I hope somebody is so kind to give me an advice how to get the missing data so...
  Error in code  (1)
Hello friends this is checkmail and have an Indicator which is to display up and down arrows on adr levels but its not displaying it when attached to charts. Could anyone correct the code. Here is the code : //+------------------------------------------------------------------+ //|
Metaquotes should consider running both a 2009 MT4 AND/or a VERSUS 2009 MT5 Championship...because MT5 is a totally different platform and not related to MT4 in most ways...a side by side " Championship" challenge would show the possibilities of BOTH... WE all know MT5 would totally FLOP though...,...
[Deleted]
Hi I need help writing function. How to use MQL to calculate static TP for all open positions so that Tp was set price to Profit 10 pips or 10$?
On metastock the formula is and i call the indicator "Fund Groups": Mov(((Mov(C,3,E)-Mov(C,10,E))+(Mov(C,5,E)-Mov(C,12,E))+(Mov(C,8,E)-Mov(C,15,E)/3)),30,E); which is in few words a 30 period exponential moving average. first we have 3 differences between 6 moving averages, we add them and then...
Hello. Can youhelp with this?: Torefer toanopeningprice ofatrade,I use "OrderOpenPrice ()".But How do Imakereferencetothe opening price of a pendingorder, that has notbeen executed yet? (eg OP_BUYSTOP) Thankyou very much for allthe help you cangiveme. Greetings Trader201
The calculated values of symbol's volatility are placed in an array volatility[26].As symbols are string they are indexed and placed in an array idx[25]. but I do not know how to create a two dimensional array with volatility value as 1st element and index value as 2nd element so that I can sort the...
Hi i have some code that buys at either the close plus X pips or the high or low plus a certain amount of pips. What i want it to do is if current price goes above the previous bars high place a limit order at a certain amount of pips below the high or maybe at a moving average for example. This is
-
I validate my strategies using data from AlpariUK and Tadawul, but particularly in the M1-timeframe I can only access data back to November 2010. Can anyone recommend me another broker that offers more data for backtesting?
Hi there, I need to write a script that will close all the open orders when drop on a churt, I try to use the buildin script that comes with the metatrader but it is not closing the orders, so I wrote this code : int x=1;int i;int start()  {   if (OrdersTotal()!=0)   {     for (i=OrdersTotal()-1;...
New article Moving Mini-Max: a New Indicator for Technical Analysis and Its Implementation in MQL5 is published at mql5.com: In the following article I am describing a process of implementing Moving Mini-Max indicator based on a paper by Z.G.Silagadze 'Moving Mini-max: a new indicator for technical...
What do you think about converting profiles and templates from MT4 format to MT5 format? At least templates are not compatibile. I did not tried profiles yet. I think Metaquotes should suggest or prepare some tool, which will be able to do job. If not, at least to describe how to do it - MT4/MT5...
Hello, dear MQL-speakers!!! I am not very good at programming myself, so I am asking for help in writing an EA. The algorithm is simple: I want buy and sell orders to be placed at a given number of points from the High and Low of the previous candlestick. We also need to be able to set variables: -
  a box on the bar  (4)
hi.... am traying to make an indicator that plot a boxs or rectangles on each one of the  last 5 bar of the chart excludeing the recent bar(the box borders is from high to low of the bar).. i come across this code  but it will draw the box only on the bar befor the recent bar and continue to repaint...
[Deleted]
Hi, I'm having trouble creating a script that will change the stop loss of my orders.I keep getting error number 4109. Here is the part of the script that is givingme trouble. for (i = 0; i < ordersTotal; i++) { //select the order if(OrderSelect(i,SELECT_BY_POS,...
Hi, using excel and MetaTrader4 DDE, is it possible to reference a cell instead of "USDJPY" in this formula =MT4|BID!USDJPY ? I want a user of the spreadsheet to be able to type in a pair name that includes a suffix in a cell, such as A1, and have the formula in a different cell. This would allow
[Deleted]
how do i set aside profit once a succesful trade is made? id like to withdraw profit and continue trading with my initial depsoit but dont see any functions to do that.
  MATLAB | MT4  (2)
I wrote a basic function in Matlab, this function outputs anythng that is inputted. function co_int_function(c)c Using the Matlab compiler with the following instruction, 8 files were generated.  mcc -W lib:dlltest -T link:lib co_int_function The following files were generated, these files are...
[Deleted]
Hi all, I've got this error while compiling my robot after few updates and now refuses to compile: 'not enough memory for the program'... the previous program was not big in size, only 182 KB... i only added few functions to the new version... anybody knows what's the maximum size for a MQ4 robot!?...
[Deleted]
Hello I am using 5 numbers of SMA in H4 TF. When I look at my chart I cant remember which one is what . I always touch with mouse pointer to know their value. I think it will be very handy if I can put shortname beside of MA with same color and moving along with MA indi . I dont know how to set in
Hi All...I searched but can't find an answer. When backtesting an EA I'd like to see Moving Average lines from an indicator on the chart... I know that with Visualization "ON" I can drag the Moving Avg. Indicator onto the chart and run/see it... but when testing for hours, doing many tests...that is...
[Deleted]
Is it possible for EA to load its extern parameters from ".set" file? The issue is that we want to have the same EA/script ready with different parameters for immediate execution. You can attach a Hotkey to a EA/Script, but you can't attach a set file to the hotkey. So we would need to have compiled...
[Deleted]
HiI need to get high low and close value of last 12 hrs what I mean is at broker time 00:00 I want high of last 12 hours Low of last 12 hours And closing price of last h4 chart And at 12:00 broker time same for last 12 hours high and low and close of last 4Hr bar close valueIs it possible to do it...
[Deleted]
Hello, I developed some code into one big file : currently 1544+ lines. I saved it and compiled : a part of my code was removed at the end, and the 9 last lines are mixed code that could not possibly mean something. I could not find the max limit for MetaEditor Buffer, supposing that this is due to
[Deleted]
is there a way to add lots to an open order? can't find any mt4 documentation on this. thanks