I have included #include <Trade.mqh> in my code but I keep getting undeclared identifiers which are built in, what is the issue? 'OrderSymbol' - undeclared identifier Draft2.mq5 475 17 #include <Trade/Trade.mqh> #include <Trade/DealInfo.mqh> #include <Trade/HistoryOrderInfo.mqh> #include
Hi guys, During running the strategy tester this randomly started happening: It seems that the trade levels are drawn all over the place in the output window however the chart in the terminal is fine. Does anybody know why this happens in the strategy tester
Hi guys, I have the code below which I tried running in the strategy tester for both a demo account & live account with the exact same settings. The EA works as expected in the demo account strategy tester by placing trades. However, it does not work in the live account strategy tester. GetLastError
I need to know how to connect Laravel to MQL 5 in order to retrieve trader account information . Can you please explain the process
Comments that do not relate to the " Free hosting for algorithmic trading: Inquire with your broker ", have been moved into this topic
i made an EA for bull & bear engulfing. also stated to enter new trade when no orders running on both of them seperatively. Its still opening new trade when condetions are not true . for example entering a bear trade till it closes, then again enter new bear trade without condetions trade onw new
I would like to know if there is a way to have this in my program, as if it were a Cedit
hello my EA has lots of buttons that i want to display on subwindow1 i created a dummy indicator to display the subwindow everything work as expected when i place the indicator and EA manually how can i load the indicator to the EA to display the subwindow ? i tried to create a handle for the
I started trading in real with a bot about 2 months ago, and in that period, my bot in real made about 30% more trades than the backtesting bot in real. Of course I use the same parameters in both, even the same ping. I use "based on real ticks " for backtestear, and the bot I use on a vps 24/7. Can
Hello everyone, everything good? I have a doubt, I have the code below where I limit the use of my EA to a certain limit of Metatrader IDs, however for each new Id that I add I will need to recompile the code, I would like to know if there is any tutorial on how I can do to create a remote license
is it possible to send something (like a text, alert) on the cell phone with mt5? The MT5 terminal is sending information on transactions, but Alerts from the scripts/EA is not passed through. Is it even possible?
Hello, is there an expert that we can manually open a position in a specific currency pair, the expert can open three or four or more positions in the form of a pending order with the distance that we specify, with a specified lot size in the form of buying or selling open for us? metatrade 5
I am developing an Ichimoku based EA with the following rules as per attached diagram Buy Rules Rule 1: Chikou Span should be above Kumo Cloud Rule 2: Price close should be above Kumo Cloud Rule 3: Tenkan-Sen should be above Kijun_sen Rule 4: Future Kumo cloud should be bullish; The challenge I am
Hey guys. I wrote an expert advisor and I have a little problem. I made it look at the last 10 , 1min candles. It should enter at a break of the highest/lowest point of that time period. Break of a high is a buy and break of a low is a sell. Some days it does now even open up a trade, sometimes it
Hi all. My function SetSize is working on my own trading conditions, but not working on high leverage or low account balances as I extecpted. I expected on a smaller account the size to be smaller since I am making it a function of the balance. I expected on a large leverage account the size to also
Hello everyone and I hope you're well. I'm discovering the possibilities of its MQL5 language every day and I think it's magnificent, what a moment of possibility compared to other platforms. However, I have a small question: how can you study the history of a trading robot in depth? Let me explain
Hello everyone, I hope you're well 😊. I'm still a beginner and I see that the PositionOpen function can use different order types , trade.PositionOpen( _Symbol , ORDER_TYPE_BUY , 1 , SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), 0 , 0 , "CouCou" ); and if I've understood correctly, the ORDER_TYPE_BUY
Hi everyone I'm a beginner Is possible to get alerts and /or error notification from my EA ony own VPS to my smartphone? Best Regards 😃 ZeroCafeine
Hi everyone, As described in the title, I am having a bit of trouble when I try to control my EA to only open one position per hour. I just want one position per hour. If for some reason this position is closed, another one can be opened (if the condition is still true) in the same period (hour). I
OK, so I have made myself an EA and am very proud of it. So proud that I'm thinking to sell it to others. But I want it to be used only by the customers, not to be shared online or re-sold for less. Therefore it has to be sold as ex5/ex5 (ie encrypted) and it must contain an input field where the
Let's say that I open a position which is cleanly dividable by 10, with a hedging account. Is it possible to place orders that sit on the trade server ready to be executed, in such a way, that there are 10 de-facto (or actual) take-profits at 10 different price targets, each being 1/10 of the
Hello, This is for MQL5. I've made an EA and everything is working but my Position Modify, its all the right values but it simply doesn't go through. void CheckTradeAndMoveBreakEven() { bool selected= PositionSelect ( _Symbol ); if (selected) // if the position is selected
I need this script Trading Hour Enable Time Filter: if true enables the time filter Trading Start Hour: operating start Hour Trading Start Minute: operating start minutes Trading Stop Hours: operating end Hour Trading Stop Minute: operating end minutes Close Out of hours: close all orders at the
Hello! I have an issue with an EA. I have a function that modifies the current open position stops and I realized that m_symbol.Ask() and m_symbol.Bid() are not the real Ask and Bid prices. In order to debug it, I have this code to print the values: Print("M symbol ask1 ======================= "
Hey i'm new here.. can you please help me to count the no. of positions do i have open, and in which how many there are buy positions and sell , i need mql5 code. like.. totol open positions = 5 buy = 3 sell = 2 thank you
In the following MQL5 OnTradeTransaction() function allows me to retrieve 'deal' data and output it to a CSV file one deal at a time. (My EA simply works on the basis of opening market orders - no pending orders) This is outputting the data fine. void OnTradeTransaction ( const MqlTradeTransaction
Hello everyone - The function below has been designed to get ENTRY & EXIT deals and their associated position IDS. This is working fine. - I have checked that the arrays are getting populated correctly and they build upon every iteration of their 'for' loops. PROBLEM: The issue is happening because
Hi team. I need an MQ4 programmer to help me out with this. I am trying to write a good trailing stop expert with some specific features. 1. A starting stop for when the Expert is started. 2. A trailing stop, adjustable from 5 pips upwards 3. A take profit function 4. Profit trailing. If true it...
Good day Is there a way to identify if a symbol is related to a particular market session? In other words I want my EA to only trade EURUSD during the NY or Europe sessions. The only thing I could think of was to manually program a static array that relates all symbol pairs to their related sessions
Hello. If I rent VPS from metatrader terminal..can I run 2 metatraders on the same VPS which I rent from there? I am running an EA on a metatrader 1 and I want to copy the trades to metatrader 2.. S o if I rent VPS from here can I run 2 metatraders on that VPS? Thank you
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.