MQL4 and MetaTrader 4 - page 741

MT sometimes show the chart incompletely, for example as below charts, both are XAUUSD chart for the same time, period: 1h; the left chart is from MT, and the right chart from other place. just as you see, the right chart have 4 more bars than the left chart, and in the fact, the left chart lack
Hi there i just wanted to experiment with my "MACD-expert" a bit. Thats my whole source code : double MacdCurrent, MacdPrevious, SignalCurrent; double SignalPrevious, MaCurrent, MaPrevious; int init() { } int start() { Print ( "Account balance = " ,AccountBalance()); Print ( "Account balance = "
hello everyone,  Is everyone ready for the important news, which are comming out today? I'm looking forward to a very volatile market. But now to my question: I'm working on an Expert advisor and everythink is going well except from one thing. I have here my two functions BUY() and SELL(), with the...
Dear MQL community, I have a little problem to solve with MQL, and hopefully someone can provide the good answer, and maybe it helps others because I really can't find a reason and a solution. So I have developed an expert, and after doing some unit testing the second step has been to test over past...
[Deleted]
Hello, if i have 2 order open with idfferent Lotsize, how can i calculate at which price the both orders have zero win loose? I have here a exampel. Order one Sell open at 1.35000 and Order two Buy open at 1.3520 The first Order have 0.1 lot and the second Order have 0.25 Lot. The second order is...
[Deleted]
  Error Code 5004  (2)
Was trying to bring the value of ZigzagBuffer in my EA by writing the value to a file, in the indicator and then reading it from the file, into my EA.  Was able to write to file, but when trying to read, I get error code 5004.  Below is the code I used.      //...
I need to have EMA for my calculations in mql4, but the mt4 only has MA=moving average and not the exponential moving average!!! I need to be able to calculate the EMA for any given bar in the current chart in mql4 language. Does anyone know of any solution? ( need to calculate based on closed...
  Random Flow Theory and FOREX  (847   1 2 3 4 5 ... 84 85)
The idea of applying the apparatus of random flow theory to describe various processes occurring in nature appeared long ago. The most fundamental work in this field may be considered the work by Bolshakov I.A. Statistical Problems of Signal Flow Extraction from Noise. -M: Soviet Radio, 1969. Bottom
Hey there, I only have scripts which change all timeframes or templates but I need the symbol to be changed. It is pretty annoying to change the symbol of the charts manually when using six timeframes.  
ive recently made an EA based on the stochastic indicator and need some assistance to make the EA better. I am a complete dum dum when it comes to coding so I made the EA using an online EA builder. I now need to madify the EA so that it will only place one trade on each upward and downward cycle of...
Tengo el siguiente inconveniente y me gustaría si me pudiera ayudar alguien. Descargue la plataforma Meta Trader 4, tanto en mi ordenador, como en mi portátil y lo que pasa es que los perfiles que creo en mi ordenador no se reflejan en mi portátil.  Quisiera saber si hay alguna forma de copiar mis...
Hi all, i am playing dumping info to a csv file and i am wondering several things: //--- dumping file handlerint handle_file=FileOpen("values.csv",FILE_WRITE|FILE_CSV,","); int init(){       // Writing file headers       if(handle_file>0)       {            FileWrite(handle_file,...
[Deleted]
  iCustom Question  (7)
Can anyone tell / show me how to import the value of a buffer into an EA which is normally 0.0, becomes a certain value throughout the code, then returns to 0.0.  I've been using iCustom to bring the value of each buffer into my EA, but only get either 0.0 or empty value ( 2147483647.00000 )  The...
[Deleted]
Hi, I'm a newbie in programming MQL4, I'm just trying to create an indicator-oscillator to draw the % difference between moving average and price. Could someone give me the code for that: SMA = Simple moving average Indicator= (SMA / Close)*100 My time frame will be 1w, 1d, 4h or 1h for 89 or
[Deleted]
When I compile an old  indicator in build +600, Some errors are returned: 'Close' - constant variable cannot be passed as reference    fractal_dimension.mq4    160    52 'Open' - constant variable cannot be passed as reference    fractal_dimension.mq4    161    52 'High' - constant variable cannot...
Hi all, i've created an indicator with three buffers to manage color changing, but i've a problem about refresh of the last candle (candle in realtime)...don't work correctly in that candle (it's not enough a "Windowredraw" instruction). Thanks for suggest.
Hi, I was playing around with Chart Operations because I want create a script which applies a certain template to all open charts... I use this script below as a first test to get info from all open charts but the ChartSymbol() and ChartPeriod() functions only work for the current chart. if I use...
Hello, I am pretty new to mql4 programming. I've made some simple EA, and while testing it (with strategy tester), some positions are opened above the current price, and some stop losses are triggered even that price never reached into that zone. Here are some pictures: Picture 1: Buy position...
Hello friends I want my EA , that I have set my magic number, if you call the same magic number is equal to the don't opening of new orders, but sometimes get lost magic number. Thanks for yours answer. for(int pos= OrdersTotal()-1; pos>=0; pos--)   {    OrderSelect(pos,SELECT_BY_POS...
Hi there,  I hope someone much cleverer than me can help make this regression channel work on my MT4 build 670 - I have looked all over the internet with no joy in finding a version that works Many many thanks in advance   Mike ;) 
I would be very grateful if someone could assist me to convert the following custom indicator coded in CTL (Common Technical Analysis Language) to MQL4: indicator Wave_15_Min; input C=close,O=open,H=high,L=low, period1 = 5,period2=20,period3=80,period4=480; draw line1("15 Min"), line2("1 Hour"),...
I have not done any code for a while, but I restarted my EA's and was going to work on some ideas. The EA's did not have errors in the past but now they do. All of the Meta Editor error seem to be from the 3 || 5 digit adjustment code and are as follows: '.' - semicolon expected    Daily Rat...
hello could any one help me find function to find lot size enter with 10 % risk of my balance in usdjpy xx.xxx (5 digit broker) mini account thanks in advance 
could any one tell me please the logic behind that pattern , how to program it ,,, just the idea not the code
[Deleted]
Hi, This is just a short question: Where is the "Alerts" File on Metatrader Directory? I use the metatrader on different computers and know how to completely copy the metatrader files (templates, indcators etc) to a new metatrader on another computer. Now i am installing a new VPS , which will be...
Is there anybody on here who can help me please. I have had to update to the new alpari meat trader 4 platform due to getting a new pc as my last one blew up. I have installed and un-installed the new platform but I am unable to get the indicator to work or show up in the panel or folders. These...
  Question for connoisseurs  (203   1 2 3 4 5 ... 20 21)
Hello. Programming experts can help. Expert Advisor: Buy - crossing of stochastics and the signal at oversold area (below 25), under the condition that Pivot is below the price level (a kind of support); on the contrary, Pivot is above the price level. Testing has shown some programming flaws. 1)
I personally own an iPod touch , and a few months ago when MT4 update the apps on IOS I was , and still so fucking impressed with the new update. Being able to plot support and resistance line on the chart really helps a lot. My question is , is there any official news or even rumours that...
[Deleted]
Can someone add a label to this indicator at the end of the line where I can add text through the properties window of the indicator? link to codebase please pretty please... It should look similar to this price label but I want to add custom text.
I have an MQL5 & MQL4 community login & wish to unregister the MQL4 login. Anyone know how to do that?