Download MetaTrader 5

MQL4 and MetaTrader 4 - page 751

To post a new topic, please log in or register
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.
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?
I have a problem: when I download Forex Indicators, there are message: Cannot open .mq4 files on your system How od I solve the problem ? Could anyone give me the link to download free software to solve it ? Thanks in advance D
Looking at some optimization results, I asked myself the question: Is this profit worth this drawdown? Placing the results into a spreadsheet I figured a simple ratio of drawdown (in cash) to cash profit would more meaningfully describe which result is actually optimal. Thus, a ratio of 1 means that...
Does anyone know of a free ea that will open a buy order with one pair, and a sell order for another pair at the same time? And also close the two orders at the same time when the right time comes? For example: I am overlaying two charts... (could be any two charts, like EURUSD /CHFJPY, or...
Just wanted to get an idea of what others consider to be an unacceptable drawdown. To me, when I look at a testing result, anything above ~20% is a deal breaker, however, losing even 20% of your account, I would imagine, would be psychologically traumatizing.. I think I would find it hard to stick...
I have this in code: #define SIGNAL_NONE 0 #define SIGNAL_BUY 1 #define SIGNAL_SELL 2 Could anyone tell me in laymans terms what this code does please ? thanks in advance
Hi, I am new to MetaTrader and MQ4, so please excuse any obvious questions. However, I have failed to find the answer online. Here is my question: I wish to develop my own 'EA' running on 2 different MT4 instances connected to 2 different brokers. Under certain circumstances, I would like one EA...