Download MetaTrader 5

MQL4 and MetaTrader 4 - page 72

To post a new topic, please log in or register
Hello, Is there a way to make the body lines of the candlestick thicker on MT4? Regarding to this, is it possible to increase the distance from candle to candle?  And one more question, can you someone help me with this Stochastic, the problem is the fall of the end of the lines, which is bug...
Hi, I am brand new to MQL4 and this is my very 1st attempt at writing an EA. I have created two functions for trendLong and trendShort. If current bar's open is higher than daily open then it should open a long position and vice versa for short positions. 1- What I see is that it only opens long...
Hello I try to catch the '1,2,3' on semafor but  all are not catched. i use it int pos = Bars - countedBars;          if(iBuffer1[pos]==EMPTY_VALUE)         {          iBuffer1[pos]=iCustom(Symbol(),0,"3_Level_ZZ_Semafor",Period1,Period2,Period3,Dev_Step_1,Dev_Step_2,Dev_Step_3,Symbol_1_Kod...
Is this possible? Can an EA limit ontick function for indicators so that the indicators on chart recalculate on new candle only. For example: EMA and MACD on D1, EA recalculates indicators on new D1 candle. H4, freeze all indicators on candle open, recalculate on new candle H4, H1 Freeze chart...
Good day folks. Please excuse me if this is already posted somewhere, but I haven't found anything on this. In MT4, I have a running EA and one Indicator (spread widening indicator) in each chart. The problem is that whenever I switch between timeframes (M1, M5, M15,...) or turn the platform OFF...
hello, my EA loads its settings from a TXT File.  I am using MQL VPS. How can I upload this TXT file when I syncronize my EA? do I have to put it in a specific folder?   thanks in advance and best regards. 
  Attaching the ATR MA (14   1 2)
Good day, I wonder how do I attach a moving average to the ATR. My idea is to merge the two indicators causing the ATR scan the ranger average 14 period MA, is it possible? I've tried the simple way is to drag the MA ATR but failed. Notice the print and how the moving average is moving Waving as ATR...
Hello, Is there any safe method to check if history is current after error 4066?. THX!!
I tried searching for C++ Keycodes but nothing came up for C++, just different languages. I noticed the MQL4 help manual offers some examples, but I couldn't even find the ones that match up with the following example in the help manual: #define KEY_NUMPAD_5       12 #define KEY_LEFT           37...
Hi All I have an EA works on the last bar completed events, as described in this article: https://www.mql5.com/en/articles/1511. So I would like to test it with Open Prices Only (OPO) method. In the two pictures here, If EA places a BUYSTOP at the end of the first bar with predefined SL and TP, now...
Hi all, I'm quite new to mql, I would write a script that opens multiple charts (several pairs shown at same time) and on each chart an indicator should be automatically loaded. Can someone address me to the correct way to open them and load indicator? i.e. I would open AUDUSD, EURUSD, USDJPY,...
I just noticed that when I open the terminals on my VPS that there are no products to be shown in the market. The same goes for Purchases which is completely empty. This happens even though I am logged in to the MQL5 Community. Some of the tabs are also missing. I think it all happened after...
Hi, that's the thing, I've been writing a csv file but my expert always write on the first file line, there is part of my code: void saveLog(int _index){    string file_name=Symbol()+"-LOG\\["+Year()+"-"+Month()+"-"+Day()+"].csv";    int file_handle=FileOpen(file_name,FILE_CSV|FILE_READ|FILE_WRITE,"...
MT4 Live Update is executing fine on Windows XP when a new build becomes available. It is not executing on Windows 7. I get the pop-up dialog box from Live Update notifying me of a new build being available and asking for permission to proceed with the update, and when I click "Yes", nothing...
Hallo, since weeks I have a problem with the correctly calculation of the day before dayhigh und low directly after (the first! tick) change of day. Previously, this worked: if (oldday != StringToTime(TimeToString(TimeCurrent(), TIME_DATE)) {    //directly the first tick after change of day...
Hi All For years I have simply unzipped 'profiles' into the MT4 profile directory that I have had set up. For some reason now, these never show in the profile pop up at the bottom of the MT4 screen. Any ideas anyone? Cheers Steve 
This indicator is working except for that it will not update on each new bar. I have to reload the indicator for it to update. I know the solution is somewhere in the Start function, and because i am not a programmer I have failed to try and fix it. Could someone tell me what section of the code to...
I want to build an EA that sell 1 lot when I have a moving average crossover, no take profit or stop loss  First I check if there were no crossover in the previous bar  ( iMA(Symbol(),0,2,1,MODE_SMA,PRICE_CLOSE,0)  >  iMA(Symbol(),0,10,1,MODE_SMA,PRICE_CLOSE,0) then if there is a crossover...
Hi, I lost my beloved Marketscope platform, bc. of the FXCM mess. Now I'm trying to get used to MT4 and I'm baffled. Many things I took for granted are simply not available. Three things I miss very much right now and I would appreciate help, bc I am simply overwhelmed with the unwieldability of MT4...
Hi Everyone, I have 1 simple question if someone can advise.  For trade signals to be copied over to my MT4 terminal I understand that I need to maintain a established connection to the server. Does this mean I need to leave my laptop on 24/5 or is it sufficient that I keep the mt4 app on on my...
Hello, in MT4 there is a possibility to take a screenshot of the current chart. Now if I want to edit this image, add my ideas to it, analyse it...can I do that in MT4? Of course I could simply use a image editing software such as photoshop but maybe MT4 has a built in one which I couldn't find yet?...
Hi, if there are many thousands of trades in the tradehistory tab in metatrader 4 terminal (build 1045), the cpu utlization is always 100 percent. Unfortunately mt4 starts with the complete history loaded as default. Does anyeone know a possibility to start with one day history?   thx 
I'm working on an EA, and it's based on trendlines that i put on chart. How can i get the current  value of my trendline in my EA?  thanks.    int OnTick () { if (Bid < (trendline current value) ) // How can i extract current trendline value? { ...} }    
  Error 131 (20   1 2)
Is someone willing to review my code and help me figure out why I am getting Error 131. I have a new EA I am creating but keep reciving error 131
Hi, im fairly new to MQL so ive decided to build a trade indicator which displays an arrow for a buy and sell based on the conditions of two EMA's and an RSI. So far i have added the EMA's, im a little stuck on how to continue with the RSI as i want to say that if the 50 EMA is above the 200 EMA and...
int OnTick () { if (Bid > Close [+1]) { (Bid value saved forverer) } // How can i save Bid value that specific time? Thanks 
Hi. I need to create some label & some arrow, but when i use ObjectCreate() command, this object will appear in chart window object list. Is there any way to create an object, but the object itself will not appear in object list? so user will not remove of move it by accident. Thank you.
Hello Anyone else had this?  I've attached an Alert from this code: void afxSetAllChartsToPeriod(int _period) {         long chid=ChartFirst();         Alert("First chart is ",chid, "sym ",ChartSymbol(chid));                  chid=ChartNext(chid);         Alert("Second chart is ",chid, "sym "...
Hi everyone, I wrote an if statement to recognize left price labels, but for some reason, it doesn't recognize that the object is a Left Price Label. if (ObjectType(ObjectName(x)) == OBJ_ARROW_LEFT_PRICE){ } I have that if statement working with OBJ_HLINE, OBJ_CHANNEL, and OBJ_TRENDLINE, but can't...
Hi all, I'm having problem on the equation which will be one of the condition to my code. As you can see on my code below. I was trying to used counter "n" as a condition to my code. "n" can be n=n+3, n=n+2 and n=n-1 depend on the condition as below. But this equation seem not work at all. Please...