in the below mentioned code,i want the labels name to be displayed on my chart, can anybody help, its in mt5 #property indicator_chart_window #define count_buffers 9 #property indicator_buffers count_buffers #property indicator_plots count_buffers //--- plot buffer 1 #property...
Hi friends, how can I know if a concret broker let me use a "symbol name?" how can I search if the symbol exist with mql? Thanks!
Whenever I try to leverage any of the servers I have in my friends network we get the following error tested with error "cannot load expert [539]" I'm testing against a few EA's from the market ticksniper good santa saad scalper and others all the demo version. Each remote host fails with the above...
Hello I have an indicator that for example send alert for buy or sell How can i use it to EA for auto following of indicator ? I mean how can i force EA to follow indicator alert ? For example: if(indicator-test-alert==sell)ordersend(buy position)else if (indicator-test-alert==buy)ordersend(sell...
I'm optimizing my EA and at the bottom left of the strategy tester it says 796 / 8 892 (235 200). So, how many more tests do I have to go? Yes, I looked everywhere for this answer and I can't find out how to decode those numbers. :)
Hi friends I know that to include a library I should put in my code "#include <ghttp.mqh>" but when I put this in an Expert Advisor that I am doing the MetaEditor show me an error: "can't open include file". What and how I should do to use this library? Thanks you so much for your help!
hi is there any easier way to write this: if (A == 1||A==2 ||A==3 ||A==4 ||A == 5 ) {Do Something;}
can you explain ?Thanks I think can work very well and perfect.
Sounds stupid, but I have problem to close positions. Since MQL5 does not offer any function to close position, all you can do is to open opposite one. The same thing you will find in provided sample Trade\Trade.mql.
If I start from beginning.
I have EA that trades every day once or twice. It...
I am wondering if there is any MT4 or 5 addons that allow the user to set an open or close price based on the current timeframe candle close. I am obviously aware of the built in functionality of stops and limits but they do not function on candle close and are simply triggered by price movement...
Let's open a position in a Hedge account with a given Magic_Number on the current _Symbol. void SendOrder( int command, double lots, double stopLoss, double takeProfit) { ResetLastError (); MqlTick tick; SymbolInfoTick ( _Symbol ,tick); MqlTradeRequest request; ZeroMemory
Hello,
How should I implement immediate position close in MLQ5?
The only way to close something that I found is SendOrder with request action TRADE_ACTION_REMOVE. But removed pending orders, and not active position.
Thanks
I am coding an EA and want to back test it. While I want it only run within London hour. As London hour will be changed during different season. So how should I code to determine it? Thanks
Hello, I am new to Forex and EA's. I understand and welcome that it is going to be a long and difficult path to success. I am currently in testing with a few EA's the typical ones. Beyond the standard EA's I have added some tools like. - Watchdog to re-log back in if the EA does not get tick...
Hello, is there a way to sort a struct based on an element inside it? struct MyStruct { double _High[]; double _Low[]; string Symbolname; }; MyStruct Str[]; int Size=10; ArrayResize(Str,Size); for(int i=0;i<Size;i++)...
Hello,
I place a trade with MqlTradeRequest structure and i want close my trade (Order = 123456 example)
When i write it :
MqlTradeRequest request={0}; request.action=TRADE_ACTION_MODIFY; request...
Hi Coders, Traders, Master and Mentor, I'm looking for a simple EA. tried looking for everywhere but can't seems to find any. I can find stochastic, MACD, etc but i can't find for Bollinger Bands. Price from lower Main BB cross over Main BB will Buy. TP Upper BB and SL Lower BB. Price from higher...
Hello, I mirgrated to a new VPS and installed MT4 and configured all options and connected to my accounts. Now I experience that I cannot download EAs from the market within my clients. Why? Can anyone provide a solution? I already did the following: Close MT4 clients, delete C...
Hi guys, i'm new in programming and mql5, i also have english as a second language so i apologize if i write something wrong. I want to get the high of a period that starts when the close of the previous candle is above an ma and ends when it is below it. The opposite for the low. For example: I'd...
Can an EA get too overloaded with functions and algorithms, so that it will influence its performance? Regards
Set different width of histogram on MT5, get same results (width=2, width=3, etc.), Bug?
Hi, starting a few days ago, I can't use the Cloud anymore to run by optimization tests. My terminal refuses to connect to any of the 3 Clouds available in my region (MQL5 Cloud Europe 1, MQL5 Cloud Europe 2, MQL5 Cloud USA).I sent a message to the service desk with my log file, to no avail. Have...
Comments that do not relate to the "The EA I wrote three months ago can not pass the strategy testing now, but it used working well two or three months ago!!", have been moved into this topic.
I am developing an indicator based on comparing candles, two to two, on a number of candles (period). I'm having a hard time finalizing the math calculation so that it works and it is possible to change the number of candles directly in the display, for a fixed number of candles it is easy to...
This is my code: double openPosition( double price ) { MqlTradeRequest mrequest = {0}; MqlTradeResult mresult; mrequest.action = TRADE_ACTION_PENDING; mrequest.price = price; mrequest.symbol = _Symbol; mrequest.volume = this.lot;...
If I test EA with EveryTick mode I get 99% Modelling Qualitiy. If I test with Real Tick mode I get n/a modelling Quality. Why? (Same EA, same settings, same period) Thanks
[Deleted]
Hello guys, What is the code to delete the last ticket pending order, but it is important to do this, just one time! For example: EA opened 02 orders: 1) Sell Limit 2) Buy Limit If one of thoses orders had a deal (Market hit the price) and become an "open trade", imediately EA will delete the...
i have 100 charts in meta trader. i wanna have a list of the charts in which 20-day moving average is below the closed price. how can i have this list?
Hi How can I gain the pip value of any currency pair ? its not problem if its with 1 , 0.1 Or 0.01 Lot is there any prepared code for it in MQL ? Or I should write code to calculate it ?

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.