Expert Advisors and Automated Trading - page 126

To post a new topic, please log in or register
// I would like to access that chart that opens AFTER the backtest is complete.   // Not the one created for the visual mode, this one: https://youtu.be/VqyxCRXdCls    // That one that shows all the orders / deals outside strategy tester   // I would like to automaticaly access it as soon as the...
How many metatraders can run on one desktop PC concurrently? Thanks.
Im a MT5 user trading futures and I'm seeking an option on MT5 where whenever I place an order, there will be a take profit amount set to the number of ticks I want my order to close (take profit) is met. So I place an order (sell or buy), and my TP is set to 2 ticks, my order will close once the...
We know FileWrite can used in EA and Indicators , But when I use Strategy Tester to output something in file , I find FileWrite can not used. Anyone used FileWrite in Strategy Tester? Do you find it can't use? for example: void OnTick()  {    int fileHandle=FileOpen("My.csv"...
Is it possible to send a new trade order to a terminal by email?
[Deleted]
I am trying to download the signal history using WebRequest function and the following function bool SavePageFromInternet(string url, string filename){   string cookie=NULL,headers;    char post[],result[];    int res;   bool returnResponse = true;   ResetLastError();    int timeout=5000;...
i want to build communication between two MT5 via share memory, i try to call windows API, but i faced GetLastError() =6 error, invalid handle a part code as follow: #define INVALID_HANDLE_VALUE            -1#define BUF_SIZE                       256#define FILE_MAP_READ                    4#define...
I am currently looking for a utility or EA that closes all the open positions when the equity of the account has made profit above the above the balance.   Example EA automatically closes all orders on the account when it reaches amount of profit on the equity and restarts trading of the original EA...
Suppose a situation where the EA places an order with lot 2. If this order is partially executed then a full execution should produce two deals. The first one is notified in the OnTrade() method as being related to an order with status ORDER_STATE_PARTIAL. What about the second one? Will it be...
i m using mt5 and the in the exchange execution i m facing very weird problem. can any one see the issue in my code it make in and out in and out 2 or times to close the position void CloseTradesifNoVolume(string symbol ,double &volume[] ,string &ArrFileSymbol[]){double masterbuylots=0; double...
Hello everyone I want to save time by testing an expert advisor Can you tell me how to test an expert advisor with all the symbols in parallel. What is the mql4 code and the mql5 code to test an expert advisor with all the symbols of the strategy tester? Or What is the website to test an expert...
Even when zooming ... the red arrow is the re-entry but why is the blue one shifted ?
I am trying to complete a function which can identify the chart patterns for double bottoms, double tops, head and shoulders and inverse head and shoulders. The upper and lower fractals are shown on a 15 min chart of Brent Crude here with the help of the fractal Support Resistance indicator...
Hello, In some cases, when a try to copy a price, open price for example, the time to return is too long. This is a part of the code. Here I want to copy just one open price (one day). It works well, but sometimes it takes too much time to return an error. Even when the data doesn't exist. nOpen =...
I tried to compile the following mql4 code in mt5 Metaeditor #import "user32.dll"   int      PostMessageA(int hWnd,int Msg,int wParam,int lParam);   int      GetWindow(int hWnd,int uCmd);   int      GetParent(int hWnd);#importint start(){         bool blnContinue = true;      int intParent =...
  modifing ea (2)
hi ı have an ea and ı want to be lot size like below; lot size: account/acount*10 ( for example for 2000 usd 0.2 and for 2500 usd 0.25...) when my account growth it will be change automatic. can someone help me please?
  Mql5 coding (1)
Hi guysRecently I have decided to learn coding  MQL5 but I dont know where to start. Can anyone introduce me a reference for beginners? Any help would greatly be appreciated. 
Hello. I was building my first EA and I have problem with opening a trade. Even when I write such simple code like this one :           Trade doesn't open. #include<Trade\Trade.mqh>CTrade trade;void OnTick()  {   double Ask=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits);...
  Archives MT5 (9)
i have .csv archives (time,bid ask,volume ask,volume bid) more accurate than my broker. how can I integrate this files ?? thank's
Hello All, Does anybody heard about EA which just close order whet loss each of order will reach the customised pips loses? or a little more complex one: EA which can recognize magic numbers and can count losses and close orders in the customised pips reached all the best for all m.
What are these Timeframe flags that can be used in Refresh function? What is the difference between Refresh (-1) , Refresh ( ), Refresh (0), Refresh (1)?
Can anyone tell me what is the best expert advisor to use for Automated trading?
I want to know about the door to buy only when it change from 0 to the number.Ex) 1.072222 If you know about this, or know about ea using related information, Please answering my question..
hello people.. please could someone explain why i have 0% history quality when i run my results . i am using a demo account with activtrades MT5 Build 1596 this happens with any ea including sample ea's changing broker to fxpro fixed this but produced  an error for ORDER_FILLING_FOK - invalid fill...
Hello, I working on an EA that trades for breakouts. Learning lots. Just recently, the trades get made, show up briefly on the chart and then disappear. Have no idea what is going on. If you could point me in the right direction for a problem determination procedure I'd appreciate it. Thanks, MM
Hey guys I'm new to the mql5 programming and I want to modify my open positions. But if i run the EA in a Backtest, I always get the "Error: Invalid Stops". Can anyone help me with this? //+------------------------------------------------------------------+//| Modify an open...
Hi, I wonder if it's possible to do a check from mql5 code if trading of certain instrument at a given time is possible. The reason I'm asking this is, because my EA, opens multiple orders of different instruments, it is some kind of "hedging" strategy. So the problem I've faced when testing it on...
Hi I have an EA but when i want to add my product to the MQL5 market i receive this error: test on NZDUSD,H1  2016.03.30 19:00:00  Tester: not enough money for sell 0.20 NZDUSD at 0.69096 sl: 0.79096 tp: 0.69046 [2016.03.30 19:00]  2016.03.30 19:00:00  Tester: PrevBalance: 1.00, PrevPL: 0.00,...
I need a large number of bars (E.g. 1000) of indicator data in my EA. When the EA starts, obviously it will then need to copy 1000 bars from the indicator in an array. On subsequent ticks (or in my case, subsequent bars, since it is stopped from doing the copy every tick), should I copy 1000 bars...
I load many symbols and send quotes and indicator data to database, but I need when I call ChartOpen() command automatic run a script or I need read MqlRates from another window with chartId. There are someway to do It ?