MQL4 and MetaTrader 4 - page 854

Hello, I would like to generate a simple query in the other Timeframe. here an example: if (Open[pos+2]>Close[pos+2]) LongSignal [pos+1] = Low[pos+1]; This query i need for Period_H4 how is the Syntax ? if (Open[PERIOD_H4,pos+2] > Close[PERIOD_H4] LongSignal [pos+1] = Low[pos+1]; Thats false !!!...
[Deleted]
Hello, In addition to the MetaTrader 4 platform, what additional tools do you use? Thanks, Pierre8r
Hey, So, if MT4 is restarted, the EA will repeat the most recent available action. In my case, if price is >= exit prices, it will close out the desired lots again, when in fact this has already been done (as I use OrderClose() function). How can I get the EA to remember that OrderClose() has...
Hello I am making an EA to put pending orders a distance from current price, if the current price for EURUSD 1.38243 and buy limit at 1.38253 as example, i see the price on the platform flip very fast and passes the 1.38253 and does not activate the pending . i used normalizedouble(1.38253,4) but...
[Deleted]
I want to draw Drow label Start at Chart shift. haw can i get pixel coordinate ? Or can i move a group of label with mouse...? thank for your help
Hello i want to know when to use sleep() instruction or at what condition, because mostly i do not use it but some EAs i noticed used in the codes.
Hi Friends, I have developed one EA in which I have fixed take profit value say 150 pips. Now I want to change my take profit based on some condition like close buy order if macd goes in negative. Another issue is my trade lot size is calculated on % of capital & fixed stoploss. But I want to...
How to make 1379.000000 => 1379.0000 ??? in MT4?
Hello, I am looking for a script or something that update the chart every second or shorter. I need that for an offline Chart that run with extern Data into the .hst-File but which will not update the Chart by itself. Thank you C4ME
[Deleted]
Hello, I am currently writing an EA (have a small amount of programming experience in other languages but nothing worth mentioning) that has a section for opening orders. In the open buy orders section, the code works perfectly with no erros. In the open sell section, the code was copied, pasted and...
I've seen in alot of indicators that if there is any sub-indicator, like an indicator based on moving averages, stochastichs or so, those sub-indicators inside an indicator either have the symbol set to NULL or to Symbol(). Whats the difference between it
the fuction is mean,what's read his for binary 's principle
So the strategy I have is based on a pattern. The pattern can be found across all currency pairs. So, thus I'm interested in trading all the currency pairs that my broker offers. I believe it is around ~30. I have an EA that will be trading all of these pairs. With trading that many pairs using...
I have made a custom indicator on window, and a EA to test the indicator, but instead of read the result from the report, I think it's better to show the result on window with some special shape, to indicate the order is stop loss or take profit, I just set the order sl and tp, without manually...
[Deleted]
  A little help?  (34   1 2 3 4)
So I'm learning mql4 after a few other languages, and I (or so I thought) just finished the first version of my first EA, a simple moving average trader. I left it to run throughout yesterday with no concerns, entry and exit were as expected, and I thought it was ready to go. This morning I have
Good morningeveryone!! Oneof my teachers used to say to the students: "The class is wise", referring to the knowledge of all the class is enormous. The same feeling I perceive in . That’swhy I want to propose you the creation of a trendautomatic system. With the experience of everyonewho wants to...
  50:1 leverage?  (1)
HI All, I came across a robot that will only trade on the above leverage, the trouble is that when setting up a demo account with the brokers I have come across I don't see such an option in the lverage drop down list. How can I set the leverage for the robot or is there just a select number of...
  this is mean of%  (11   1 2)
tm -= tm % 44;
[Deleted]
Hey guys, i'm searching for an indicator. should be very easy but i can not do that :( maybe someone can help or post a link. indicator should plot 2 lines. previous High + x and prevoius Low + x. For x a variable "x". thx
[Deleted]
hello guys! sorry for english, because I'm using the translator ggogle (I speak Portuguese) would help to get a expert that I am trying to program. it works well in texte, but does not work in the demo account. * In texte he buys and sells lots usually with increased * In the demo account he buys...
[Deleted]
Many of you should know that the forex market is intevened frecuently by bankers. Some of the mayor banks are under investigation for some practice as delay for 6 seconds the incoming orders to know this information 6 seconds before than other users and take adventages of the situation. So there is...
[Deleted]
Hi all, I'm using Fcharts pro and there is a facility to use a DDE to link to MT4, could anyone help in this matter, really confusing, thanks Rob
Hello. I have normal CCI period 84 on my chart. But still the movment of CCI is quite zig zag. I want to make the zig zag smoother. Plz tell me if any changes needs to make in code. //+------------------------------------------------------------------+ //|...
[Deleted]
Hey everyone, This is my first post as you can probably tell and I am having some issues: Could somebody tell me how I can create a block of code or use some kind of function (or whatever is necessary) to make my EAs operate so they only run at the opening of a new bar and don't run on every tick....
Dear friends, I am having quite a hard time normalizing double prices for certain instruments, for examples, cfd's, because the broker only allows certain values. For example, some indices allow only SL, TP and TS values which floating value are multiples of 5. Ie: 5000.05, 5000.10, 5000.15, 5000.20...
New article MQL5 Cookbook: Sound Notifications for MetaTrader 5 Trade Events has been published: In this article, we will consider such issues as including sound files in the file of the Expert Advisor, and thus adding sound notifications to trade events. The fact that the files will be included...
[Deleted]
My account show disconnect on iphone ipad. It show error code in this attach picture. How can i do continue? Help me please. Thank you.
New article Technical Indicators and Digital Filters has been published: For several years, Code Base has accumulated a large number of indicators. Many of them are copies of one another with only slight modifications. After many hours of visual comparison of indicators on the chart, we could not...
Please help me, I tried to reinstall application MT4 but I can stay online 5minute after that MT4 could not update data . My IOS=6.1 [Normally I used to trade every day,but today I can't] Help me please Ratchapon
Is there any posibility to decode JSON(prefered) or XML in MT4? JSON/XML are simple, several entries of key-value.  It can be 3rd part library, doesn't metter, it just needs to work correctly.