MQL4 and MetaTrader 4 - page 1177

To post a new topic, please log in or register
Hi, for(int i=barsBack;i>=0;i--){      bool MACrossedUp;      int event;      MACrossedUp=true;      event=10;} I would expect both these variables to initialize to their default values (false, 0) in each for loop iteration, because I declare them inside the loop. This is how other languages (like...
Have you issued login on same live account number + password etc. using two or more separate computers? Or maybe even, as above but two separate instances of terminal.exe on one computer? and of course - been placing trades from both logins. If you have, please say... Thanks
Hi, is there a way to get my investor password in my metatrader plattform, or do I have to ask my broker? Thank you scratch
Hello Im having a little trouble with the iCustom function, my code so far is as follows - string open_pair;string pairs_names[2] = {"EUR", "GBP"};open_pair=StringConcatenate("\"", pairs_names[0], pairs_names[1], "\"");Alert(open_pair);double final_check_ma1 = iMA(open_pair,PERIOD_H1,15,0,MODE_SMA...
New article Using Neural Networks In MetaTrader is published: This article shows you how to easily use Neural Networks in your MQL4code taking advantage of best freely available artificial neuralnetwork library (FANN) employing multiple neural networks in your code. Author: Emsi
New article On the Long Way to Be a Successful Trader - The Two Very First Steps is published: The main point of this article is to show a practical way to implementan effective MM. This can be achieved only by using a certain kind ofstrategies that we need to identify and describe first. In...
  Modifying EAs (3)
hello everyone, can you help me to modify EAs for followings: -if an order closed by any reason ( hit TP, hit SL, closed manualy ) EA should not open new position till new reverse signal comes up. -exiting part of position at multiple targets (for example exiting 1 lot of 4 at 10 pips, 1 lot of 4...
I am getting the "Expert is not custom indicator" error when attaching the EA to a chart? ANy ideas why? #property indicator_buffers 2//---- indicator buffersdouble ExtMA10Buffer[];double ExtMA80Buffer[];datetime TouchLipsFlagUpdate =...
can some one tell me what i am doing wrong this ea does not want to trail
I want to block my EA after 2 or 3 consecutive trade, or put am max operation limit like max trade in an hour is 3 or max trade in a day is 5...or in a specific candle How i can do it? with something like that?? static datetime LastClosedBar =D'1980.01.1' LastClosedBar = Time[0];
I'm trying to program my stops so that if profit is greater than 30 (pips), we will have a stop equal to the 55 Period MA, if profit is greater than 60, we'll use a 21 MA, if profit is greater then 90 we'll use an 8 MA. The problem is when profit goes above 60 (so it reverts to the 21 MA) and then...
From the docs it's evident the order code which relates to the server is on a different thread. From the docs it's also evident that indicators work on the same GUI thread. What about different EAs? Is there a different thread each EA attached to a chart? My issue is that I need to know if I am...
Hi everybody doing good work here, I am new here and also a trainee programmer. Pls I need a perfect code to limit the number of trades my EA will make in a day. Hope experienced people here will help me out. Thanks.
Hello, if trades are canceled or they expire without opening, in "comments" there is the text "canceled" or "expired at xx". Is it possible to see there the comment I wrote when I set the trade, instead ? Thanks, Burdi
During applcation of the indicator "DeMark Trendline Trader",Idon't know what the following mean.Can any one give me an explanation ? sent to my email:mjmljqmjmljq@163.com Question 1: UTL Break >1.1144 on USDCAD60 @ 1.1249
Hello Im having a little trouble with the string concatenate function, my code so far is as follows - string open_pair;string pairs_names[2] = {"EUR", "GBP"};open_pair=StringConcatenate("\"", pairs_names[0], pairs_names[1], "\"");Alert(open_pair);double final_check_ma1 = iMA(open_pair,PERIOD_H1,15...
Hello all, MetaTrader Version: 4.00 Build 224 (15 May 2009) Metaeditor Version: 4.00 Build 224 (14 May 2009) I have encountered a very strange bug in MQL that has me completely baffled, so much so that I am looking back at ALL my old code to make sure that it is written to avoid this problem. I hope...
I'm working on a new theory. It may help, or it could be a shot in the dark. I've rewritten elements of the MACD so that is will monitor the difference between the MACD and its signal line. I am operating under some assumptions, and would like opinions on whether or not the MACD could be used for...
Hi all When you attach an expert adviser to the chart, or when you right click on the chart and use "expert adviser, properties", you get the properties dialog with the "common" and "input" tab. In the common tab under "common" you can set the drop down combo box to Long & Short positions, Only...
Hello, I would like to present you the best EA program that I possess and programmed myself. My best programm, because you can let the program almost run like a real money printing press without watching the whole time to it. Although this is a strategy where the Lotsize raised after loss trades,...
Hello traders and programmers! i have been searching the web the past few weeks for an indicators that recognizes potential reversals using fibo chart patterns. if anyone hase something like this or wants to take a crack at programming it, please shoot me an email. :-) thanks ZealousCapital@gmail...
Hi, During using the Meta Trader and my EA, the following problem occured: STOP There has been a critical error Time : 2009.03.10 08:57 Program : Client Terminal Version : 4.00 (build: 221, 05 Mar 2009) OS : Windows Vista Professional 6.0 Service Pack 1 (Build 6001)...
  Great EA!!! (9)
Thanx guys, with all the good advice here and help from the coders I have managed to put my idea into practice... here us a graph of how it trades...I cant wait to forwards test it on a demo account!!!
when testing ea in mt4 strategy tester, the spread equals to spread now,not the past spread in the testing period so i want to ask how to collect the spread for backtesting? 'FXTticksCollector' i have try this, but the size of .fxt is too big, just run 2 day of it, it already 600MB~ ~ Do any one...
Hello, How will be traded an order at "instant execution" with a SL and TP ( stop loss and Take profit ) can you explain how it will be done ? what Take profit value is useful for ? in both case BUY and SELL thanks for the explanation of How it works in META TRADER, Regards Antoined
  Mt4 broker (1)
Who can help me to find a good mt4 broker for scalping strategies without hedging restriction in Canada or US?
Hi, I'm trying to create a log file for an expert advisor, but I'm having a problem writing the data to a file. I'm testing it in the strategy tester right now. The problem is that when I open the log file, there's only one line of text in the file - the last line that was written. It appears to be...
  Expert Advisor that work (13   1 2)
I have found this expert that is really impressive! ForexRobotGain Have you tried it ?
Hello everybody, I'm new to both forum and MetaTrader. I use the XTB-trader-platform from X trade brokers. Writing to a file using the fileopen filewrite etc. functions does work (no negative values returned by fileopen-function), using fileread I can even read from the file established yet fail to...