Download MetaTrader 5

MQL4 and MetaTrader 4 - page 742

To post a new topic, please log in or register
Hi gurus here,my ea couldn't add position correctly,before it run add positon's code, it would close the former order, //here is my sell conditionif (m1<m3-0.00005)       {       ticket1=OrderSend(Symbol(),OP_SELL,1,Bid,5,Ask+1050*Point,0,"SELL#1",MAGICMA,0,Red);return;/*it will open continuously 2...
Hy, I would like to set custom limit orders based on 1 minute candles. I would like to set a buy limit order 10 pips over the high with a profit take at 15 pips, and the same on the short side. My question is could this be programmed in a way that I have to click only once? As you might guessed I...
OK....I am working on my first EA and already have figured out the conditions etc and coded such. Please note that I have been using the Expert Advisor Builder here http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ because I do not plan on becoming advanced in MQL or making any other EAs. I tried...
I have an account with Oanda and they offer many different file formats for historical data. I contacted my broker and they instructed me to post the question here. That is, What format should I request the data to be in and how do I insure that it is formatted so it can be use with MT4 for back...
My customer asked my to write an EA optimized for gold trading. I used to write EA in MT4. Recently I tried to switch to MT5, but I cannot find the symbol for gold in Meta trader 5. Does the gold is supported in MetaTrader5? Is it really neccesary to switch to MT5/MQL5? Can I continue to use...
Hey all =) I'm having some trouble with the stoploss and takeprofit in OrderSend(). it seemsto be correct, but when i run my ea, it says that i'm sending wrong parameters to SL and TP. This is my code: if(TakeProfit<=0)tp = Bid+NormalizeDouble(50*Point,5);//My brooker run with 5 digits...
HEREs some example of MM & Leverage calculation that i've been use now... take a good look....... //+------------------------------------------------------------------+//|                  calculate optimal lot...
Hello, In mt4 when I press F2 I have the history center of prices. I choose the currency and the time frame. The mt4 give me the option to download the historical prices. The maximiun that I can download is 65.000 registers. Do you know how can I download more than 65000 registers? Can I do it in...
I started using MT4 for strategy testing recently. In FT i can program in delphi or in C++. I have previous design- and programming experience in Basic and VB. In MT4, C++ and Delphi I have zero experience. I want/need to program in FT for sure and maybe also in MT4. Since I have a blank start with...
New article Tracing, Debugging and Structural Analysis of Source Code is published at mql5.com: The entire complex of problems of creating a structure of an executed code and its tracing can be solved without serious difficulties. This possibility has appeared in MetaTrader 5 due to the new feature...
Hi, I am a noob and I need your help... I have written a program which was working until last week. I didn't make any change and now it cannot calculate takeprofit and throws ERROR130. I know what this error means and i have already checked if my takeprofit is correct. I cannot understand what's...
as above please help ^_^
I have been 'playing' with some code examples and I cam across if (!ExistPositions()) { What is the significance of the ! or exclamation mark?
Hi, I would like to compare 5min Close with 1H indicator value in my strategy. But I am not sure about proper shift. if (NewBarOpened == true) // In my case it is every 5min { double Indicator=iCustom(NULL, 60, "Indicator name",Parameter,0,0); // What number should I use...
Hi, I experienced strange charting behavior: 15min multi-timeframe moving average is charted good for historical data, not for new real-time data. Everything gets fine when I reload indicator. But for new data it will do the same... and again and again and again. It it standard MTF indicator I saw...
In need some advices on how to remove/delete the unrequired custom indicators compileinside the interbankFX trading platform. I basically tried to delete/remove itbut it remain unsuccessful. Hope to hear your feedback.
In this article, https://www.mql5.com/en/articles/1492, the author present the following method of computing Z-Score. Z=(N*(R-0.5)-P)/((P*(P-N))/(N-1))^(1/2) where: N - total amount of trades in a series; R - total amount of series of profitable and losing trades; P = 2*W*L; W - total amount of...
Hello, Does anyone know to do/have an indicator or script that just alerts when the moving average crossover? the EMAs paramether´s 3 and 19. This probably already exists (or is simple to develop), so I ask if someone has it or can tell me how do it. Thanks.
Thanks to Paco Hernández Gómez (http://www.hernandezgomez.com), it is possible to work up on the idea of self learning PNN. In its original form, there are 2 EAs, 1 for the PNN training and another to trade acording to the examples learned. What I am trying to do is to combine the learning EA into...
Patrik Polak
  1 bar/1 trade (3)
Hi all, how set my ea when i need enter to position only once per bar. 1bar/1 trade (sell or buy) If will be take SL or TP next enter to trade in same bar must be prohibited. Thank you.
Hi, I know about Wine and emulating Windows on Linux for operating MetaTrader with Linux. Is there any plan to develope a MetaTrader version for Linux, because with many EA´s the Performance decreases significant, so Wine is inefficent. or maybe MetaTrader based on Java, which would also work ...
can I use #property indicator_chart_window in an EA, and if not why not and what do I have to do in its place / do to make it work ? I have copied it from a Pivots_daily indicator where it already draws to the main window so why will it not work when being used in an EA ? (in laymans terms please...
  vino (1)
Hi
Dear all I would like to ask for your help on two questions: 1) this seems to be an old question but I still can't find answer from this place : how can Playsound and Alert command work simultaneously in an "indicator"? Does it can't be solved in MT4? 2) If an indicator plays multiple sound files...
  PIP vs Profit (6)
where do I go to find out more about pips vs profit? What I want to know is if 2 different pairs that are priced way differently, move in the same direction the exact number of pips, does the profit move the same? Example: Eurusd right now is 1.44286 and Eurjpy is 119.93 (Friday 15th, 2011 after...
I want to put an Old LOG.file in the experts/files folder and built an expert advisor that places trades at the same 00:00:00 hour/minute +/- 10seconds from the previous day, week month etc. The purpose of doing this is having "trade automation" based from a previous trading day's activity. **...
Hi everyone, I am trying to figure out how to implement ordershistory to get my EA to go to the next day regardless of what whether its a gain or a loss. Right now i am using seprate subs to go to the next day but it is becoming cumbersome. I thought I could simply use the orders history function to...
Patrik Polak
Hello, how i set stoploss on open price of current bar in my EA? Thank you
One of the best indicators in financial world is Dollar index Because dollar is the opposite currency of the most assets . So if we can make an indicator of USDX that can be plotted in the screen together with the asset we wand to trade, then we can predict a significant moves but it must be in the...
I have a ideea for a EA but I don't know mql; somebody can help me?