Download MetaTrader 5

MQL4 and MetaTrader 4 - page 135

To post a new topic, please log in or register
I made a simple EA following MT4 recommandations. I buy on the ask, my stoploss (SL = Bid -stoploss;) and takeprofit (TP = Bid + takeprofit;) are on the Bid,    just like MT4 say it has to be, this way we take account of the spread. if my SL and TP are 100 point, it should male 10 dollar profit if...
MQL Tutorial by Coders` guru in PDF: http://www.lightpatch.com/forex/mt_yahoo/MQL4_Tutorial/Lesson 1 - http://www.lightpatch.com/forex/mt_yahoo/MQL4_Tutorial/Lesson1.pdf (161Kb)Lesson 2 - http://www.lightpatch.com/forex/mt_yahoo/MQL4_Tutorial/Lesson2.pdf (69Kb)Lesson 3 - http://www.lightpatch...
Hi,  How can i avoid error 132 MARKET IS CLOSE when opening an order ? I need to check if market is closed before opening an order.
Hi All, I need some assistance in coding in EA. I've a variables that has a value after using a loop condition.   Is there a way to retain the value after finish loop the condition and use the value outside the loop? I would like to use the variables to compare with other indicator.   Many Thanks,...
Do you know which broker's MT4 sever is fast ? thanks .
Hello, I have a problem and I don't know how solve itI need data from different bars, data like: volume, close, open, high and low... I don't have problem with first 100 bars, the problem is when I try to get those values of bars higher than 100, I get the error "array out of range" I try something...
Greetings, Someone please code this for me, or point me to existing code that will do this: Plot this on a chart; simple line from open to close, with the result in $ by the close. Thanks very much for any assistance!! Joseph
Hi all.    So i would like to know how one Indicator performs when it's called by an EA. For instance i have this line of code on OnTick() Function. double Indicator = iCustom(NULL,0,"Indicator",0,1); My indicator works in the following way: First it runs all candles and makes all the necessaries...
Hi, I'm going to make my own EA, but, I have to be honest, I dont know where to start :P Its pretty simple: -I have 5% of my acc for lose - my risk -Every time I open a position, EA checks, how much I have free margin ( this 5% )  -no positions- It sets SL at 5% of all acc -there are positions -...
Hi There. I made this indicator which works OK, but will not continue after new bars appear. The only way I can get it to refresh is to switch between time frames.  It references the differential between 2 different charts  Any help would be greatly appreciated .   Kind Regards   David...
  Error 4029 Invalid array (16   1 2)
Hi all.   So i have this indicator to calculate Swings it's working just fine in all charts and in all time frames... all but one CHFJPY on 1D time frame. it gives me Error 4029 Invalid Array. what happens is that all calculations are done normally inside OnCalculate() but for some reason i get this...
Hi there Im using icustom to get the values from a indicator , but after some time it stops getting the values. here is the code Im using. any suggestions would be wecome. thanks //------------------------x-----------------------int start()  {   value0 = iCustom(NULL,0,"Ultimate",0,0,0);  // for...
  global initialization failed!!!!!!! (63   1 2 3 4 5 6 7)
If anyone could help...I run an expert advisor for 4 chart pairs, and for running it for the 5th, after loading succesfully, i have global initialization failed, and then removed... I would appreciate at least a guidance what to look for.. Thanks...
I'ma long time trader but a complete newbie on MT4. So... I am hoping someone here can answer the following questions: 1.Is there any way I can make text larger in MT4 (in 'Terminal', andalso the prices displayed at the side of a chart)? 2. Is thereany way to display 'cost per pip' when setting up...
b840+  Every entry in the terminal journal logs and the tester journal logs (the text .log file) is prefixed by a 0, 1, 2, 3 (some single digit).  E.g.   2       03:19:33        2015.12.01 10:47  [expert] EURUSD,M1: open #61 buy 0.12 EURUSD at 1.05988 ok What does that digit "2" at the beginning of...
Hello, everyone. Ich have coded this here: for(int i=0;i<OrdersTotal();i++)     {      bool select = OrderSelect(i,SELECT_BY_POS,MODE_TRADES);             //Iteration through every trade      if(OrderMagicNumber()==1 && OrderSymbol()==Symbol())                //if Trade==BUY        {...
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...
1...128129130131132133134135136137138139140141142...1249