If multiple EAs/Services load the same library (lets call Lib1), will there be one or multiple instances of Lib1 running and will any in memory global variables be shared or isolated? How do the logic differ among: C++ DLL C# DLL EX5
Hi, I was trying to find but I dont see such a topics before I have a parameter dependent on a date - in a real time its ok - I can just load it from file daily and use it What I was expecting from strategy tester : that I can upload the whole file format is date1,par1 date2,par2, etc OnInit()
Greetings! I have a problem with my trailing stop settings. The trailing stop is taken from 0. I want it to be taken when I already have 5 pips earned. Could you help me with that? That is, call the function when the price is above the 5 pips already earned. It's like it kicks in after 5 pips won
I have two questions in below code I found in MQL5 forum. Question 1 (Highlight in red): Why this needed? When "trans.type" is TRADE_TRANSACTION_ORDER_ADD, there should be no deal yet. Question 2 (Highlight in green): When there are partial fills, order ID on 2nd deal will be automatically generated
This is a basic EMA for Buy & SL. But I want to add TSL with the EA, can some experts help me solve this. This is the code as I want to add a auto trailing stop loss into this below code. *** This a a code I found on MQL5.com for trailing stop loss *** Can someone help me to merge this both codes
I'm sending an order but I get error 4756 with the Invalid request detail, I already tried the code in MetaQuotes it works fine but as soon as I put it in the mt5 of the broker it doesn't work, the code is as follows
Hi, I just switched brokers from Admirals, who had their own EA for MT5 called "Supreme Edition" which had a lot of useful statistics to review. One of the most interesting is the lot counter, that sums all trades and shows me the actual number of lots traded. The EA works only with Admiral accounts
Hello,
i need a simple code by simple steps to get the current open position open price and profit using mql5
thanks,
int OnInit () { //--- ObjectCreate ( 0 , "Name1" , OBJ_BITMAP_LABEL , 0 , 0 , 0 ); ObjectSetString ( 0 , "Name1" , OBJPROP_BMPFILE , 1 , "../Images/unchecked.bmp" ); ObjectSetString ( 0 , "Name1" , OBJPROP_BMPFILE , 0 , "../Images/checked.bmp" ); ObjectSetInteger ( 0 , "Name1"
I am new to MQL5 and am currently stuck with this issue: In my main mq5: // EA.mq5 #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> CPositionInfo myPosition; CTrade myTrade; #include <custom.mqh> and it my mqh "custom.mqh" ... bool MyFunction( void ) { ... bool result; result
Hi Is there any EA/script/tool which will prevent any order/trade entry/pending order without an SL. OR if you know where to look on mql5 library/function, please help
Hi, I'm having issues matching up data from EA buffers to indicator data window values. The indicator I'm using is the AMA Smoothe by mladen (which is really cool). You'll see from the below window that I printed the values from a backtest into the journal window. levu should correspond to Upper
Hi, I'm trying to compare indicator values from 3 different indicators to generate a signal to place a trade. However I'm not sure to go about it. What I'm trying to do is to check for: Any 1 of the 3 indicators to become true. Store this result , Once 1 of them has become true, continue checking
How to communicate among EAs and Services and send events and pass data etc? EAs <-> Services EAs <-> EAs Services <-> Services Services <-> EAs Same EA in one chart <-> Same EA in another chart Same Service in one instance <-> Services in another instance
Hi Im looking to backtest my EA but an error appears. In the journal it says the EA was not found however I've saved it under expert advisors. Can someone please explain what I've done wrong. Thanks
in backtest, it gives me 3 positions in date Dec 2, 2019, AUDCAD, 0.01 Lot at 00:00 as shown my qustions: 1- Is this error or real values? 2- if it's error, is it because of EA, Backtest or Chart? 3- is it possible to give the same value with negative? 4- How to avoid it if it's dangerous? while my
Hi, can someone give me a hint, why I get in visual testing the data that I can see in the indicator graph but in non-visual I get different data (or worse none data). It is related to the indicator, because some indicators work in both modes and some not. Example: SSL_Channel_Chart works, but Rex
I use this code from gitub of Udemy course to order my trades. After login successfully, all methods of mt5 like symbol_info(), symbol_info_tick(), etc returns 'None' for some of symbols. In some symbols like 'AUDJPY', it returns correct values but in some cases like ' GBPCAD ' it returns None. What
Hi all I developed an EA that works perfectly on every symbols except USOIL. My issues are 1) EA does not work if magic number is changed to "Zero". 2) EA works if keep default magic number "5258", but does not recognizing manually opened trades. This is very crucial as i open many trades manually I
Hi, I Have a EA that consumes 2GB of ram memory, this is a huge EA, it starts to consume this amount just when I start it and even not starting, I mean, on OnInit it starts to consume this Ram memory, is it possible reduce the consume? Thanks
Hi experts, Sorry, this might be a very basic question. I did some basic search. But, I didn’t get any step-by-step guide for this. I see one algorithm seems giving fair amount of success rate. is it possible to use that algorithm to make it automatic? What are the general steps to do this
Entry Order Program for Mt5? The current Entry Order Program has extremely limited pre-sets for Type, Volume, Stop-Loss & Take Profit. By the time I find my desired entry point and click New Order, I have to change the type from Market Execution to Pending Order, enter the Volume, Stoploss, and Take
I am trying to place XAUUSD order with Python/MetaTrader5 combination in my demo account. When "action" is mt5.TRADE_ACTION_DEAL, it is a valid market order, but I am unhappy with large slippage. So I changed the action to mt5.TRADE_ACTION_PENDING to place limit SELL order with price + DEVIATION
Hello everyone, I am pulling historical data from binance with csv and I want to create new symbols and backtest them on the strategies I wrote. If I'm not mistaken, I can't open any position and I can't get trade information because I don't upload tick data. Binance history does not share tick
Hello, I am developping an EA and sometimes when I try to buy or send, I get the error message (sometimes, the transaction is OK) : failed market sell 4.71 #TSLA sl: 42.86 [ Invalid stops ] CTrade::OrderSend: market sell 4.71 #TSLA sm: 42.86 [invalid stops] I understand than my stop loss is wrong
I want to try to put in a method switcher to the EA generated by the wizard. Indeed learning curve still lacks. //--- Creation of trailing object switch (Trailing_Method) { case 0 : CTrailingNone *trailing = new CTrailingNone; break ; case 1 : CTrailingFixedPips
[Deleted]
I am trying to backtest an EA the deals and orders are being shown but the report not showing anything, someone kindly assist. Thanks in advance
I have 2 EAs on the same chart, the magic numbers are different but one reads the floating operation of the other .. Some one can send me a code example to solve this problem? K.R Alex
Hello, I am wondering if the creation of an EA is possible without knowing the source code of an indicator
Here is the thing...I was wondering there is such thing on the market like a simple equity protector t will cut trades at certain percentage drawdown however it only applies to manual trades and most importantly is there such way that would not only cancel all running trades but forbid you from

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.