Download MetaTrader 5

MQL4 and MetaTrader 4 - page 547

To post a new topic, please log in or register
Hello all, On currency tickers (e.g EURUSD)  I get the chart and the H1 or H4 data is bar aligned on the hour so I get bars that are timestamped as 15:00, 16:00 or whatever. The problem is that for some tickers (#AA and #C) I get the H1 and H4 data bar aligned on the half hour, so the bars are...
As humans, we can readily tell when we have live data feed and when we don't.  But just try to write a code for insertion into a custom indicator that can tell, during times when there is no live feed (weekends, holidays, etc.) that there is no live data feed!   I don't think it can be done, but if...
If  PC run at sleep mode . EA can work or not.
Dear Guys I wrote a EA with a logic that trade with different symbol. Like logic looking for trade in EURUSD if logic not find any trade in there then it looking trade in GBPUSD and many more symbol look one after by one. But I am going to back test  using strategy tester I found a problem. Strategy...
Hi guys,       I am looking for two answers here. First to partially close an open order automatically on a specified profit target. I know that i can do that manually at market value by right clicking on the 'order', going to 'close order' and change the 'volume' as desired and close the partial...
This was an indicator that I am trying to make into an EA.  I am trying to do one thing at a time.  I am just working the buy side.  Pls notice that strategy tester placed a buy order about 16 pips above the high of the bar.  Why? I am using Ask in the OrderSend function.    Journal 2013.04.12 23:09...
Hi, does anybody know whether here bool expr1,expr2,expr3,expr4;..expr1 = High[1]>High[2];...if( expr1 && expr2 && expr3 && expr4 ) { ... } a) all expr1,..expr4 are tested to be true or b) only the first and if expr1 == false all the others were skipped as if will be false? Additionally if the...
Hello all,  I was trying to make a scalping EA, but I can't figure this thing out: It immediately closes all it's positions. Been looking over it for hours now, hope one of you can see it. I guess it has to do with the TP/SL. The reason I don't use the OrderSend function for that, is because my...
Hi there,  I was wondering the if the community could help me out in respect to defining what 'current chart' means in https://docs.mql4.com/series/iBars.  We have the following in our code: int bar = iBars(symbol, PERIOD_M5);   What we don't understand:  When we loop over the symbol set, we get a...
Is there a "in" function in MQL4? Something like  if( Var in 1,2,3 ) ...  It is pretty common in other languages but I haven't been able to find it in MQL4 yet.
  MT4 on TAB (4)
Can i run desktop version of MT4 with custom Indi's/EA's on a tablet PC like the following: """""""""" Acer ICONIA TAB W501 (Wi-Fi + 3G) •  AMD Dual-Core Processor C-60 (1.0GHz with Turbo-CORE Technology up to 1.33GHz) •  3G WAN •  Genuine Windows® 7 Home Premium 32-bit •  Integrated Bluetooth...
hii ... are someone can help me .. i trade with manual  scripts .. open pending stop buy/sel 9 level ... if price move up all pending buy stop have 1 TP ... if price move down all pending sell stop have 1 TP i want haves ea can monitoring if all open order hit TP .. then EA can close all pending...
I just downloaded MT4. Trying to add support-resistence to my charts. (want support-resistenc for 15-30-1hr-daily).  Tried to add one support - resisticen to Custom Indicators., Failed at that. Do not know what I am doing wrong. I cannot find instructions on how to add a program I found. Would...
Hello everyone, I recently upgraded my OS from XP to Windows 7 and experienced CTL+C crashing MT4 editor. I looked everywhere on the web and few people suggested a solution but it didnt work for me. So I want to share how i solved this issue completely so other people don't have to google all night...
I have been using this feature for years but this problem just came up since a few days when build 482 was installed.
2013.04.12 11:39:04 MTFMACross_v1 EURUSD,M5: i =477 T= 2013.04.11 05:50 cf 1.30541099 cs 1.30539989 pf 1.30539149 ps 1.305394612013.04.12 11:39:04 MTFMACross_v1 EURUSD,M5: i =485 T= 2013.04.11 05:10 cf 1.30536063 cs 1.30535464 pf 1.30534094 ps 1.305349872013.04.12 11:39:04 MTFMACross_v1 EURUSD,M5: i...
Hi I'm trying to get an email alert to be sent once an hour but I can't quite figure out the coding for it. Any help would be greatly appreciated. 
Hi all, I am curious if there is a reason that OrderTotals() loop doesn't work in strategy tester(MT4build445).. My expert is written that when there are no open orders, i'm expecting the ea to print to journal - that it did not select any orders(in strategy tester). Just trying to get an order out...
This code should only place arrows when an ma cross has occurred.I am testing as I build the code.the statement >>> if (FastMAValueTF1 > SlowMAValueTF1 && PrevFastMAValueTF1 < PrevSlowMAValueTF1)should indicate if a cross has occurred...It doesn't seem to work that way... advice?...
I've been using this great system (for me) called Megabreaker. I dont know if it is working quite the way it is suppose to - it doesnt appear to be using trailing stops only on profit. Does anyone know who made it or where I can get a hold of them?  If not, if anyone has a clue if there is another,...
Hi, How Can I reffer to each row of Client Terminal -> User Interface -> Terminal -> News using MQL4 syntax ? Rgds,
I know how it's calculated: Close = (Open Price + High + Low +Close) / 4 Open = (Average of Open Price and Close Price of the previous bar) High = (Maximum value of the (High, Open, Close)) Low = (Minimum value of the (Low, Open, Close))     But I don't know how it gets a blue color or a red color....
Does any one else have a problem with the new trade window? My EA puts things in the comment fields, now  It does not display properly since this update.. Can some one please tell me where is the option to turn this off. thanks
Hello, I used to be a computerprogrammer but I am new in MQL4. I wrote my first program, but several things do not work, here is the program: int start()   { int ticket=0;       if (Close[0] < Close[1] && Close[1] > Close[2] && Close[2] > Close[3])         //  Go short                      {...
Hi, Could someone perhaps direct (link) me to the best tutorials to learn how to build custom indicators. I am trying to learn how to build something quite similar to the "Money Flow Index". Thanks, Brian
Dear fellow forum members, I am a newbie in mt4 and I've no knowledge on programming. I am seeking help from you. How could I add a moving average in RSI indicator that will work with RSI signal line. Please anybody help me. Thank you.
hello mql4 users i need to how i can get RSI OF a chart on another chart ?? and get like a cross of lines
I am obtaining certain values on one time frame. As an example, I may want to know when a fast ma crossed a slower ma. Then I may want to go one time frame higher and get the value of a stochastic  or a ma.  Since I am using a variable 'i' to reference a bar on the lower time frame, I cannot use the...
Hi there , I am currently working on a pivot point indicator which should display some signals to a user via the use of arrow symbols. I am trying to find out if it is possible to enable the bars on the charts to interact with the pivot lines so for example: If a bar touches Support Line 1, a arrow...
  I recive an e-mail..  That MetaQuotes is closing, the use of experts and trailing stops. The FX-PRO platform. I think it's fake. Rather, they are about the FX scammers - PRO. They do not want to use experts .. Rats ..