MQL4 and MetaTrader 4 - page 1212

To post a new topic, please log in or register
Is there a way to flag orders once they are placed so that my EA will handle some orders differently then others? I want my EA to be able to place an order, and once it has reached a set take profit level, flag it somehow. Then later have the EA search the open orders for this flag. I thought I...
I would like to ask if anyone has successful EA's that generate a 20% or better. Trying to find a good existing EA is like looking for a needle in a haystack. I would like to see a listing of EA's that I can test out on back testing and demo runs. If you have something that is working and would be...
Hi there, I would like to know your experience in live accounts about execution time of orders made through an EA. I'm testing an EA in three different brokers. Two of them no problem so far, the third one is giving me some trouble with a server busy error once in a while, so I wonder how your...
How can I get a script that will execute buy and sell orders from alerts made by my indicator?
What's the best way to export MT4 statement results to a database? Unfortunately, the magic number and comments fields appear on separate lines from the rest of the trade transaction, so, just copying/pasting from a Web browser to a spreadsheet isn't sufficient. 
Hi All Attempting to master or at least get proficienti at MQL4 ...not easy! Is there a master list of compiler error messages which explains their meaning? Also is there an overall index for the site/documentaion/Olegs book. I'm finding it really frustrating to find specific items, particularly...
Hi there, i am pretty new to coding in MQL4 and tried to create a test-EA to check some things up. (I have a huge amount of crapcode in between the interesting parts, which i  will cut out - only the parts that have effect on the variables are posted :) ) extern int StopLossTolerance=10;...
Hi, till now, one of my scripts imported several ex4 modules written by myself but today I wondered why I am doing this... I mean, is it important for code protection? AFAIK, you could just publish the one big compiled ex4 module which includes all the other mqh's...Till now, I had to publish the...
HI, I would like to insert in my expert advisor a DAILY LIMIT LOSS (different from a stoploss used by the trade committed). Idea underlying permit to lose a few pips per day to EA, it stops during the day when it overpass this limit, then it starts again the next day. How to codify the language...
Can anyone help me how to execute an EA on receiving an email alert. I am struggling for many days but no success sofar. Can one one help? Thanks,
This is a Simple Moving Average EA with a Market Timer and a MACD filter. I can only get the filter to work in one direction and the filter input needs to be able to go down to .1.
This is a very simple Ea that trades on the direction of the last bar. Preliminary back tests don't look too bad but some of the programming is kind of rough. Just wondering if there are any programmers who might be interested in taking a look at it and contribute to polishing it up a bit. Seems to...
Has anyone had any good experiences (show profit) with an automatic forex trading system?
I'm searching and not finding the documentation for all of the errors that are generated. For example, I'm getting an Error: 4109 while running a script to close all orders at one broker and don't get the error running the same script at two other MT4 brokers. Where is there a listing of these...
Hi there - i am wondering if anyone can help. I am new to MT4 and totally fresh to programming (wouldn't know where to start). I used to use GCI Trading and they have a great feature on the Chart Window. When you enter into a position - the following happens on the Chart screen which makes it VERY...
How to find total number of symbols traded. eg. I am trading buy and sell GBPUSD, EURUSD, EURJPY and USDJPY and I want this to return total of 4 pairs traded. Anyone know?
  A real puzzle (1)
Hi: how to make a indicator without the function Bars? for example:I want to make a indicator (Macd),use the newest 1000 bars, so don't want to use the Bars,and the Indicatorcounted(), could you give me an example? Thanks
How does the "every tick" method work in the strategy tester? If I have an order like this: price-StopLoss-TakeProfit 1.5000-1.4995-1.5005 and the bar after I place the trade looks like: Low-High 1.4990-1.5010 Does the startegy tester count this as a gain or a loss?
Is there an example of how to call the AccountProfit function in an indicator anywhere as I can't find it? Yes I am a frustrated NEWBIE ! How can this be so DIFFICULT ?
Hi all, After months of testing with demo account, I just started my expert in a live account. For my surprise it just started to open orders incorrecty, I guess that the problem is with the history data (it was empty and some of my calculations gave false results). So I decied to alter the option...
if u have got this error via GetLastError() then how you handle it? // (functions of OrderSend(), OrderClose, OrderCloseBy, OrderDelete or OrderModify) // can fail, for a number of reasons, and return either negative ticket number or FALSE. // One can find out about the reason for fail by calling of...
hi in my EA, I try to print my two variables but it's not working: ********************************************************** double m_10 = iMA(NULL, 0, 10, 0, MODE_SMA, PRICE_CLOSE, Current + 0); double m_20 = iMA(NULL, 0, 20, 0, MODE_SMA, PRICE_CLOSE, Current + 0); for(int i=1;...
Re: moving average expert advisor sample supplied with mql4 LotsOptimized () is used in OrderSend functions but not defined as to how to calculate LotsOptimized is not in the help dictionary What am I missing? I am not sure why the file compiles without error. Rudy double LotsOptimized() {...
I tested the COM dlls and the ACTIVEX DLLs,failed! and i am now testing dlls made by the VC++? can sombody tell what kind of DLLs can be imported into the MQL? which IDE shoud i use to make this dlls? thanks!
Hi to all, this is my first topic and post and I'm here because I'm learning. I have a question for the community hoping that you can help me. I've created an EA that when receive signals, should open some position. For example, if I receive a signal of BUY on EUR/USD, my EA should open 3 orders...
Hi, I am not receiving any emails either from the forum, i.e. the threads I subscribed to, or the newsletter. Did you disable the feature? Sincerely, Daniel.
Older than 2008. Where can I find it and are there easy to follow directions for a non programmer? douglasjmorgans@yahoo.com
Hello, I'v sent data to a file through the following code, int deinit() { //---- int handle; string name = AccountNumber()+Symbol(); handle=FileOpen(name, FILE_CSV|FILE_WRITE, ';'); if(handle>0) { FileWrite(handle, l, s, InitialShort); FileClose(handle); }...
New article Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization (Cont.) is published: In this article the author continues to analyze implementationalgorithms of simplest trading systems and introduces recording ofoptimization results in backtesting into one...
  Holy grail exists? (14   1 2)
Hello all, I am a beginner in MQL, but I just have one question to start. Is there such thing as profitable EA, aka Holy Grail ? I am trying to find some motivations before starting to work on it.