Good afternoon! Does anyone help me find my mistake here? It compiles, but does not separate the orders according to the ENUM: Buy, Sell and Buy_Sell ... In the 3 configurations it buys and sells ... //| Class=CPriceAction...
I need an idea (or a piece of code to starts it), about making my EA open an order if it catches de stop loss level, in the new direction. Coudn't find anything that helps on my searches. Thanks in advance!
Hi I am confusing in coding a simple EA, plz help The problem is : If a fast MA cross a slow MA that produce a golden cross condition, then I want it to buy when the tick(price) equal or below the slow moving average value after confirming the golden cross condition, and if the price does not equal
Ok so I stared experimenting with EA's and testing and so on. I understand the basics of programming and realize that if this was written in OOP style it would be a bit easier to navigate. However, I just wanted to start out and see if I could get an EA going with all the parameters I'm after. It's...
hi all, i'm trying to create my own expert adviser. However, i don't know the coding (mql5) that for close the opened position by (OrderType() == OP_BUY) or (OrderType() == OP_SELL). It is so much different with mql4. Kindly share a sample coding (mql5) for the below situation. if condition A, then...
Hi there, I have installed a few EA into MT4 and then drag it to the chart to let it start auto trading to try some demo. I can see a smiley face at the top right hand corner but i opened it for a few days, there is no single trade done? Why is it? I have no touch any setting and just want to see if...
// 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"...
[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...
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 =...
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?
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);...
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
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...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.