I have a program that contains 3 EA's, is it possible that P 1 has three trades, P 2 has five trades and finally P 3 has ten trades all in all 18 Trades
I hope someone have a solution: 'Ticket' - undeclared identifier its used here: if(!m_trade.PositionModify(m_position.Ticket(), newSL, m_position.TakeProfit())) also the trade.mqh and Ctrade m_trade; are ok, since im using in other parts of the code. but i got this error to compile, any idea? the
Hi! I'm really with some doubts in selling agents to Meta Cloud Tester. I'm using META5 and I had enabled AGENTS via terminal, indicating my account number and checking the "Sell Computing Resources" box. So, my questions are: 1) Is my computer really enabled to sell time/processing to cloud? I can
i print the Ask(),Bid() in the ticks,but sell stop is invalid. for examp: Ask:2920.69 -- Bid:2920.63 ,i send the sell stop in 2920.54, is invalid price , Would you mind tell me the reason
I'm trying to automate placing orders starting from an external file. The parsing of file is working well. The issue is on create order. I'll show you the code used to creare a Request for and Order: MqlTradeRequest request; double point= SymbolInfoDouble (orders[i].symbol, SYMBOL_POINT
Hi everybody, I would like to ask for help here, please. I have an EA that generates good results in Strategy Tester yet does not take any live trades. Any recommendations what to check / what could be the reason behind no real trades taken ? Thanks in advance for any feedback. Alex
Hi guys i create a gui but when i load in chart if chart is not open full screen , the gui mix all input box button and other , why ? not understund this si my code i attach it, anyone can explain me ? thanks
Hello, How can I set fixed spreads in MT5 backtesting ? It's always floating? Thank you.
Hi all, newby question, so sorry if this is dumb! Is it possible to create an EA that scans the whole market and ranks by Top 10 for some criteria (e.g. RVOL, % change from open, etc)? So far all the documentation I've seen seems to point towards EAs only being used on 1 specific stock at a time
Hi! is there any software or app that can test a function or a block of code? I want to write and test along, block by block or function by function so that I know when am getting it right. it seems MQL built-in strategy tester tests the whole program. I will appreciate a help. I am still new to EA
Hi all I have a problem when counting pending orders using C trade. It opens too many pending orders instead of one. If you know what the problem is, please help. int OrdersPending() { int Pending= 0 ; for ( int b= OrdersTotal ()- 1 ;b>= 0 ;b--) { if (m_order.Select(b)) if
Hi guys, I am trying to find initial Balance of account working with Deals history and simply made a code to take and Print Deals data like this: void FindInitialBalance() { if (! HistorySelect (EAStartTime, TimeCurrent ())) {initialBalance= 0 ; return ;} datetime Day0 = iTime ( Symbol ()
Hello I am trying to restart OnInit() when I click on the OK button of the standard configuration panel of mql5 even when I have not modified any parameter in my configuration Do you have any idea in which base class of mql5 I can go to modify this behavior Thanks in advance and have a nice day
Hello! Please I'm trying to migrate my account to the VPS server but I keep getting the message below Migration to virtual hosting failed: debug versions are not allowed. Please recompile " Ziz zag arrow.ex5" and migrate again. Please I need help on how to get this fixed. Thanks
Hello all, I just created this script to compare overnight and premarket activity over a certain number of days, and tell me the percentages when: 1. Premarket high breaks overnight high - does the US session break the premarket high and/or the overnight highs? if so, by how much %? - does the US
Hello friends when I am trying to upload a product on mql5 market . I receive a message. It says your file is compiled for profiling and gives me a version and date and flag. anyone has any idea how can I solve it. Thanks
Hi, during optimization I need to calculate the Sortino indicator, but for Equity. For Balance it is simple: based on the history of deals. Please suggest strategies on how to collect equity data during optimization, so that the data can be processed in OnTester(). Thx in advance, Koval
#property script_show_inputs input bool allsymbols= true ; input bool alltrades= true ; // All Trades(pendings also) void OnStart () { int total = PositionsTotal (); double profit= 0 ; for ( int i= 0 ;i<total;i++) { ulong tick= PositionGetTicket (i); if (
i need help please. im trying to prevent the ea from making multiple trades at the same time. i have tried it with a for loop but had no luck.can someone please help me to solve the problem. my code look like this. its the buy section //-------------------------------- Buy
hi i try to understund panel (example in indicator ), why edit not show ? PanelDialog.mqh //+------------------------------------------------------------------+ //| PanelDialog.mqh | //| Copyright 2000-2024, MetaQuotes Ltd
in the mt5 strategy tester agent , in the above snapshot, do the agents have permission to work for the cloud on Sunday or Monday
with this tread we can know what happens with our platform ( specific for strategy tester ) so we don't need to open new tread and you have a journal.
1. bold your problem subject.
2. attach your terminal screen shot show us which your problem ( with version ).
3. if your problem fixed show us...
Hi, I tried using the following method for taking chart screenshots, but it's not working, I have searched the MQL5 folder for any pictures of the screenshots and I haven't found anything. https://www.mql5.com/en/docs/standardlibrary/cchart/cchartscreenshot Bellow there is a code snipped of the
Hi! I have tried to have my EA close my position according to the magic number (1 is for long trades and 2 is for short trades), whenever I try to print the value of the current magic number the value is void and thus my trades can only exit based on time. Does someone know where I might have gone
Hi, newbie here. I'm trying to synchronize indicator values (for example: RSI) with EA. Here's the code #property strict #include <Trade\Trade.mqh> CTrade trade; input int RSIPeriod = 9 ; int rsiHandle; int OnInit () { rsiHandle = iRSI ( _Symbol , PERIOD_H1 , RSIPeriod, PRICE_CLOSE ); return
//+------------------------------------------------------------------+ //| Z3alth MT5 Trading Bot | //| Uses swing high/low and support/resistance logic | //+------------------------------------------------------------------+ #property strict
Hi everybody :) I would like to invoke the 'common' tab of an EA via MQL5 code and change the state of an individual EA's algorithmic trading ability, i.o.w set it to enabled or disabled. I have seen someone posted a solution for MQL4 in the past but I was hoping that someone could guide me to do
Hi, I recently finnished making an EA, tested everything using My [Broker A] account It worked pefectly in both backtests and on a chart. When I try using the EA on a different broker, [Broker B] it does not work, the panel never updates. I don't understand whats causing this. I attached a quick
Do anyone know which broker's historical data is being used as everytick backtesting option. As I have built a EA based on everytick data but in real time it is making lots of losses and then I found out that it is becuase of difference between everytick and everytick based on real tick . So, if
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.