Hello! i personally need an urgent help on how and what can be done in a situation where my robot files and name is not enlisting just underneath the navigator/experts Advisors section. Just to generally put, my EA is not installing, i help any best expert advice. is there any best way out. i am
https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradeorderdelete Why OrderDelete() is doesnt work? please help me bool DeletePendingOrders(CLOSE_PENDING_TYPE pDeleteType) { bool error = false ; // Loop through open orders from latest to oldest for ( int order = OrdersTotal
I have been working on an update on one of my programs, The code to validate lot size seems fine mostly as I have used it in several programs in the market. Error: test on EURUSD,H1 (netting) 2021.02 . 05 00 : 00 : 00 failed instant buy 0.05 EURUSD at 1.19628 , close # 2 sell 0.05 EURUSD 1.21301
My EA isn't taking trades on demo. I works in Strategy Tester. I've checked the three more obvious culprits, live trading, auto trading, allow automated trading. I've tried three different accounts on three different brokers. It should look like this pic from tester. The closes you see there are
Hello, why this error ? kindly have a look at the screenshot attached. I have no clue why this error ? And what's disconnected in that error ? What step I need to solve this error ? Someone please help! In case you need specific code to check, let me know I can post here. Since 2 days but this error
Hi there! Dear friends, I like automated gold trading using a bot, and very often I reach through technical analysis to the conclusion that the gold price will move intraday inside a price span that includes an upper and lower price. These points (prices) are most likely where the trend will
I don't have any confidence in MT5 testing and always go back to MT4 testing. Is anybody else of the same view or am I'm doing something wrong? My preferred platform is MT5. regards G
I would like to ask if there is any chance to use my own historic data in MT5.
Is it true that I must have a broker and try then to get the historic data from him?
thanks
Hey everyone, I'm facing an issue that’s been driving me a bit mad, and I’m hoping someone here can shed some light. I have a simple Expert Advisor (EA) where I'm using the MACD indicator. When I run the MACD inside my core module , everything works as expected. The MACD values are retrieved
// Khai báo toàn cục về rủi ro và số tiền thua lỗi double Risk_amount = 10.0 ; // Khởi tạo với giá trị mặc định gấp đôi Last_loss_amount = 0 ; // Biến lưu số tiền bị lỗi void Tính toán Rủi ro () { // Choose toàn bộ lịch sử giao dịch if ( HistorySelect ( 0 , TimeCurrent ())) { int
I am creating a trading EA based on the martingale method. However, the following order is not being calculated according to martingale to offset the loss from the previous order. I would greatly appreciate your help, as there seems to be an error in my EA. Thanks
Hi I am building a custom EA for MT5 When it is attached to a chart, the Socket Connection is made in OnInit() function & the connection is closed in OnDeinit() function while detaching the EA. My code is: int socket = - 2 ; // Socket Variable bool soc= false ; int OnInit () { if (socket == -
Hi, I'm a TradingView user and thinking of switching to Meta Trader. Quick question - is it possible in Meta Trader to create automated trading systems using chart drawing tools? For example, say I drew a trend channel over the price and wanted to create a program to buy at the bottom of the channel
Good day Trust that you are all well. I have tested numerous EA's i would like to know why some EA's take hours to do a 6months back test and some others do the same test in minutes even if they have more setting options. The same goes for optimization I only optimize 1 or 2 parameter at a time. I
Hi, i´m running 10 MT5 instances on my Win11 Laptop. To get an live overview regarding my profit/loss of each account i actualy open every instance of the MT5 with the Toolbox open and resize the terminal window to the minimal size so that i can see at the right bottom the live P/L. If i want to
Good evening! I am a beginner in MQL5 coding and am experiencing a significant problem when trying to identify my orders and positions, as well as making changes or cancellations to them. I have already studied how OrderSelect , OrderTicket , etc., work, but the problem still persists. I am using
Hi, I have an EA that performs trading tests. It is my desire to save customize results data into a CSV file. I found out the function that is called right after a test is double OnTester() , so I created the following code to write the results into a file: for ( int aaa = 0 ; aaa < 100 &&
Hi, I need to test my EA, but I expect to draw trend lines or a fibonacci on the chart before I start it. How do I draw them on the chart in the test environment, MT5 does not allow me to do anything. Thanks Francesco
Hi every one. I need to close a group of open positions automatically when the the value of equity reaches a certain limit. Is this feature exist in metatrader 5 ? and if not. Is this feature can be generated by a certain code ? Please help. thank you
Hi, I need to test my EA, but I expect to draw trend lines or a fibonacci on the chart before I start it. How do I draw them on the chart in the test environment, MT5 does not allow me to do anything. Thanks Francesco
My ea doenst trade so i looked at journal and see this:trading has been enabled - hedging modehow can i fix this?
Hi Experts, I have trade news filters that I think can be better coded for multiple EAs usage. Currently copy paste for each EAs I am aware it is a bad practice. Tried doing a library for it but this function required global variable so that does not work Below is one of the function. In this case
Hi, I try to create a simple EA with MQL5, when I run my code I get this error:',' - open parenthesis expected. , I don't know what the problem is , would you please help me to solve this error? Here is my code://+------------------------------------------------------------------+ //|
Hi, does any artical talk about MT5 build in EA Sample ExpertMAPSARSizeOptimized?
It is wriiten in pure OO style, but metaeditor is not excellent enough as Eclips or VS studio now. Sometimes i feel reading MQ5 OO program using metaeditor is just like using Notepad. :)
I cant get the point of the...
Hello everyone. I do optimization based on real ticks. When it finishes I try running single tests and compare with results I see in optimization table. They are not the same. What could the problem be
Is it possible to share data between MT4 terminals on the same VPS? Is there a location that both terminals could access? For example, I have Terminal 1 using Broker A, and Terminal 2 using Broker B. Broker B has a market that is not available with Broker A. So I want to send the price data for this...
Hi, Lets say I want to write an EA to trade SMA 21 as a baseline on a daily chart, whenever the price crosses the baseline, I want to open a position. I could easily create a Boolean condition and open a position based on that: bool buyCondition = (PriceInfo[ 1 ].close > BufferMA[ 1 ]) &&
i apologies for my subject topic .Am having trouble with two pivotal logics of my project here is the code i am to enter a trade if there is a squeeze of bollinger bands and a crossing of two moving averages, fastma or rma and slowma as yma if the second crossing happens during a breakout happens
Hi All, need help with transforming a Source File into a running program for MT5. It's my first time. Thanks
Hello guys. I'm very new to coding started a few weeks ago. And I have build the following EA. But the EA only opens buy trades. Can you guys help me out? What is wrong with the else if statement. Please explain in detail because I wan't to learn as much as possible. #include <Trade\Trade.mqh> //
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.