Download MetaTrader 5

General - page 603

To post a new topic, please log in or register
i have attached price crossing moving average EA and i have manually seen and evaluated it performance. if following amendments are made, it will the most profitable EA, i have ever seen --Show settings parameter should be removed --Risk parameter should be removed --Account Micro parameter should...
I am using MT5 Build 470 and I am getting "tester agent synchronization errors" when I try to test my EA's. The terminal is connected and my Time is ticking, so everything looksok, and I also use the built in EA samples and I get the samesynchronization errors. How do I fix this "tester agent...
 Hello i use this indicators with  metatrader 4  but I want to use them in metatrader5. Can somebody help me
with these parameters: BUY if EMA8>EMA21>EMA55 SELL if EMA8<EMA21<EMA55 CLOSED POSITIONS when EMA8 across EMA21; same value no buy/sell. Mangement stop loss, take profit, trailing stop, lots, etc. Thank a lots.
Hello everyone, I'm Spanish and do not write very well English, forgive if spelling. I'm a newbie with MQL4 MQL5 and I am trying to run this function of the MQL5 help book. void OnStart()   {       uchar An;              for(char A=-128;A<=127;A++)       {          An=A;          Print("A = ",A," An...
Hello, iam writing an EA and i use a custom indicator, that custom indicator script includes another file #include <SignMod.mqh> In that file is a function, called: int getSignal(int cVal); Normally the indicator calls the function and works with return value from getSignal(). How can i use...
Hello @ all... I have a for while, 0-19 steps an i have 20 functions to call: getDate_1(); .... to ........ getDate_20(); How can i call that with 1 Call() in that while? // Daten for(int sc=1; sc<21; sc++){  // Signal  test = "getDate_"+sc+"()"; how i do the call??? } thanks for your help ;)
First of all, thank u for all MetaQuotes programmer to deploy some debugger option for programmers. but, iam bit confused, about watch window, could somebody to help me or explain this: Simply define a loop with internal variable, and i add the "watch" variable to the watch window for(int i=0;...
I'm tryng to design an Object Oriented EA for quantitative analysis and I'm in trouble with Timeseries. I'll try to explain: -I want to store in an object the history of a symbol for a timeframe from a certain date in the past (startdate) to date of initialization of object (initdate) to an...
How to Calculate with date and times? On several places there are comments like the following (https://www.mql5.com/en/forum/688): datetime t; MqlDateTime mdt; TimeToStruct(t,mdt); mdt.day += 45; //or mdt.day = 50; //50 days from the beginning of the month //or mdt.hour += 134; //134 hours...
  Magic numbers (1)
Hi, I am having some difficulty understanding the way magic numbers are used in MQL5. If I declare a global variable my_magic = 12345 and then in the onTick() function if I try to place only one buy order would the POSITION_MAGIC, ORDER_MAGIC and the DEAL_MAGIC be the same as my_magic? If magic...
Hello, I have MT5 Demo with Build 468. Local Time: 19:10, 2011.06.22, Berlin Time. The bid price line on the Charts of EURUSD (20 minutes and 2 hours) shows 1.44039. The Market Watch window shows 1.43987. The price line on the Charts (EURUSD) is not correct. What is the matter? The price...
Can someone help in coding an indicator that draws horizontal lines when prices are fibo numbers. For example using EURUSD, the indicator should be able draw lines when price are levels: 1.4144, 1.4233, 1.4377,1.4610 etc; Note the fibo numbers in red colours are the ones to be drawn on the chart...
  Best strategy for a beginner? (50   1 2 3 4 5)
Hi, I only started trading in Forex and I've only used stop loss and take profit risk management options. I've not really used a known Forex strategy. So, I was wondering what's the best strategy for a beginner? Something that is simple and easy to understand. Regards, Cortney
Hi I am lookong to code an exponential moving average 14. I know a litttle about coding and I am trying to use the Moving Average ea that comes with the mt4 download as a guide. that one is set at 12. How do you decifer simple ma from exponential in the code, and what is extern double...
  Funding forex accounts (14   1 2)
Hi, I have a basic question on funding and trading: If I fund my account in EUR and would like to trade USD/CHF (buy) does that mean I will have my initial deposit exchanged (with an unknown rate) to USD first? And when I sell I'll get USD again and when I withdraw the amount will be exchanged...
Hi everyone, i'm here for share with u an EA that i've develloped for forex (or others). You just drop "SELL", "BUY" or "CLOSE TRADE" on the "Action" shield. It will place automaticaly SL/ TP and TS according to the set you use. here you can find a screen and the EA. Sorry for my English, i'm a...
High i have a mql4 EA that uses the iMA() function to trade using moving averages. In mql5 ive noticed the function misses a key parameter the bar shift which is the last parameter in the mql4 version and i cant figure a way to do this alternatively. Can someone please tell me how to read moving...
I want to calculate the profit of last closed position as it would by traded with 0.1 LOT, but have a problem with understanding the MQL5 concept. I try this code but it doesn't work, could somebody help, or refer to some code where is discused similar problem bool...
hello all attache is a simple trade management script( goes in script folder) for MT4 Once open a trade just drag&drop it to the chart and you can move SL/TP my mouse It also have trailing stop (optional) SL/TP are Hidden for broker. It has magic number to manage trades. However i like to somone...
Hi Guys, I'm sure this must have been asked and answered a hundred time before but somehow I can't seem to find the right answers... I am looking for an MQL4 code snippet or preferrably an existing EA that closes trades in two parts based on the ATR. Let's say I open a trade manually. The EA must...
I am stuck with this error 4802. When I try to get value of the custom indicator handle CustomIndicatorHandle=iCustom(...); it says in the Experts tab: cannot load custom indicator (... )[4802] The indicator is put into C:\Program Files\MetaTrader 5\MQL5\Indicators Please help! Thanks.
I am trying to modify the following code to return the last deal price by order type in history. Can anyone help. The code as is, is returning the last open price, but does not distinguish between BUYS or SELLS. //+------------------------------------------------------------------+ //|...
When I run strategy tester, it runs all 1 month for like a seconds. What I need is to see each tick and price is moving visually.  I do not know where to check this option. Please help. Thanks. 
Hi, I have a problem that the latest release does handle DLLs containing unmanaged exports from C#. Try to compile and run any example found in following articles for reference Exposing C# code to MQL5 using unmanaged exports and Using MetaTrader 5 Indicators with ENCOG Machine Learning Framework...
Is it possible to add local time for the calendar event? We can rename the current "Time" column to "Server Time", then add a column "Local Time". And also is it possible to add a right menu item to go to the next event directly instead of scrolling down the list to find ourselves. These new...
is there a chat room on irc for coading help
I have an EA that seems to be working fine on my demo account with FXDD but it will not run on my live account with IBFX. I get a error code 103. Any suggestions???
Hi Everyone, We're going to be posting our statements here everyday. It's always good to keep track of trading and be able to look back and see where you were and where you currently stand. Our Goal is to make High profits Safely! Our Results till now, in about 1 Week Gain: 46% Profit Factor 3.2...