MQL4 and MetaTrader 4 - page 454

To post a new topic, please log in or register
if( Stop_Loss > OrderStopLoss() )          { Print("Stop_Loss and OrderStopLoss():",Stop_Loss,",",OrderStopLoss());            .........          } just as you see the code as above. what is surprising is that I see the values of Stop_Loss and OrderStopLoss() are the same in journal of...
Hello Programmers is it possible to draw 2 time frames like 1H and Daily in the same chart ? (1H in the main window and the Daily in sub-window) . Thanks in advance
Hi, I'm newbie in here. I want to make auto open position or pending position in MetaTrader using my custom expert advisor, but I can make open position or pending position, if user confirm to open position or pending position. My Question : i want to ask can I make open position or pending position...
We always try to improve the system of publishing your own programs on MQL4 web-site.The developers of the site express the following recommendations for the publishedcode: If your are the author of the script, you may leave the "Real Author"field empty. If not, please indicate the name of a real...
Hello, I got one issue that I need help with and not sure if it's doable. Is there a way to get historical equities (daily) for a certain account in MQL4? Please advise. Thanks
Hi one and all. I'm not a newbie trader but I am a newbie to MQL4 coding and I'm afraid my old grey matter isn't what it once was. I'm seeking some help to make an addition to an old metaquotes Fractal indicator below which has already been modified slightly and which I have re-named to avoid any...
I am looking for genuine proven MT4 indicators that can recognize the following: Patterns i.e. Candle stick formations, Raising Wedge, Falling Wedge, Ascending Triangle, Descending Triangle, Symmetrical Triangle, Flags, Channels/Rectangles, Double Head Top & Bottom, Triple Head Top & Bottom, Head &...
Hi all, I'm thinking about drawing a Text object, telling the time of a verticle line, this verticle line I'll move around MANUALLY, so the Text content would change. The problem is: I want it work at weekend, no tick coming in. Any idea? Afrikaans Albanian Arabic Armenian Azerbaijani Basque...
Hi, I thought I could run the same EA on more than one chart in MetaTrader I was recently told by a programmer that I could not. Is it possible to run an EA on more than one chart in one metatrader? If the answer is yes, what should be done to avoid the EA confusing the orders? Is the magic...
jeseravi
I created a simple indicator which shows pivot points and s/r levels (shown below). I would like to make it so a green arrow appears over a candle if the values for R1-P > P-S1 and if the candle closes below its open. For the life of me I cannot figure out how to make this happen . Any help would be...
hello people, sorry if this is not the right place for this post. tell them, I'm new to programming and design in EA in MQL4. when I finished and started to test my broker update the version of mt4 B574 to B509. when I compile my EA no errors but when I want to add the AE graph tells me "is an...
Hello All Im new to MQL4 and programming :) i just started to learn, i need to know how can i write an expert to 1) find the biggest body of last 20 candle 2) calculate the size of body i really appreciate if you help me to learn :) Thanks Mostafa
Doomanx
Hello people, I'm 16 and fairly new to programming. Have had a go at writing my first EA and I'm getting an error to do with passing values to functions. What I am trying to do is pass the boolean variables returned by my two long and short trade-scan functions into my trade execution function, but...
I am getting these parameters when trying to do offline backtest: - MarketInfo(Symbol(), MODE_LOTSIZE): 100.000 - MarketInfo(Symbol(), MODE_MINLOT): 0.1 - MarketInfo(Symbol(), MODE_LOTSTEP): 0.1 - MarketInfo(Symbol(), MODE_MAXLOT): 100 After I login to an account it goes to 100.000, 0.01, 0.01, 99...
Hi I have some problems with my magic numbers. I have one real live account with EA:s that has magic number 1117 and 1118 and 1119 And i also have a Demo account with the same broker, with a MT4 that's installed on another computer. The thing is that, if i run EA:s on the demo account. It doesn't...
I found that metatrader and backtesting is looking like a devil saying yes and laughing at me. I ran many expert advisors including the moving average that comes default with metatrader and when you run it over a few days with tick data or openprices I dont see the profit on report having the same...
Now I have made codes as below in " int init()" in my EA     ObjectCreate("a",OBJ_LABEL,0,0,0);     ObjectSet("a",OBJPROP_CORNER,2);    ObjectSet("a",OBJPROP_XDISTANCE,20);    ObjectSet("a",OBJPROP_YDISTANCE,20);    ObjectSetText("a","注:未计算平台交易手续", 12, "", Snow); when the EA runs, I can't see this...
After some research I have decided to try MetaTrader4 because I want to test some EAs. I need some help with getting started. I have an iMac so I had to buy Parallels 9 in order to install Windows 8.1 on it and download MetaTrader 4 on it (its better that way). I am now on the screen where I have to...
  Need Help for .ex4 file. (19   1 2)
Hello All, Hope you guys are fine. I have been facing problem with .ex4 files, more specifically indicators. I have got few indicators in a popular Forex forum. They are in .ex4 format. If I install them and trade manually then my chart freezes frequently. So it has become impossible to follow them...
Hello Coders & Traders; (this topic for research and development) I am looking for the answer of this question What are The Automated system need to be worth the programming of it? maybe the question look not simple but the answer is simple but to translate it we will find the difficulty not in...
Viaticus
This is a first post for me. I have very basic knowledge of MT4 as have only been trading a few years. So I have 2 different MT4 applications installed on my Windows 7 computer. (2 brokers). I have usually had no problem with placing expert advisor files into the desired MT4 folders (Experts,...
APeng
Hi! I draw a trendline into the chart and save the template as "tester". Then I run a backtest, when the price hits the trendline an order shall be placed. When the backtest starts, the trenline is drawn but shiftet to the right. I select the trendline and check the parameters. They are exactly as...
How do I get a stop loss to follow a sma, new to mql4 and trying to figure this out
Can we filter trades performed by an ea in account history tab in MT4?Can anyone help? Thanks.
When I want to optimize some parameter's value by select Optimization in tester, i will get the optimization result in the list of Optimization Results. then I select one from the list of results, and I set the parameters according to the selected result and test it again; What is surprising is that...
I am a new comer here. I have downloaded the MT4 from www.mql4.com. I want to get the DUKASCOPY data and practice.I do not know how to connect the DUKASCOPY ECN broker to do it . Maybe there is the MT4 in www.DUKASCOPY .com for download, but I do not want to download it to replace the MT4 already...
  MT4 EMA (2)
Hi Can anyone tell me what % is applied in MT4 EMA calculation? The literature says "P-percent exponential moving average". Thanks
How do we get rid of this? It only started showing up with the new update/build. It is very annoying because that is the space I use for my market quotes. Any idea how to delete this info.??
Charting currency pairs is standard. When dealing with indices each index is charted against TIME. Is it possible to chart one index against another eg CAC/DAX. These two indices move together very closely and it is possible to trade any disparity, but not when this disparity is not clearly visible....
Dear Colleagues, I am newbie in Forex Trading. plz Help