Hi there, Thanks for checking this out and offering your advice. My EA places orders according to levels I manually specify. I've only been using it on US share CFDs until yesterday when I used it on a AUS share CFD. It looks like the function that calculates lot size doesn't work on AUS orders as
Hi friends. I hope you are enjoying a nice day. I have an EA with an strategy, that I want it to only open positions. Of course there's rule for closing the positions in emergency situations. However, I want to be able to close the positions myself, because I'll probably be able to avoid a profit...
Hi, I'm trying to check for a buy/sell position on 2 chart indicators and then attempting to wait X bars for rest of indicators to be true. When I check the bars visually after a backtest , the trades seem to be totally not what I coded. I try to get the true condition of 2 chart indicators and then
int OnInit () { string result= "20140201" ; // The seperated strings must be ---> 2014 02 01 but the result is ---> 2014 20 20 Print ( "The date = " ,result); // ----- Seperate Year ------------------- uchar date_yearx[]={}; StringToCharArray
Is it possible to create an EA from indicator in MT5 (Indicator is also MT5) when there is no buffer but data are displayed in MT5 chart window and additionally alerts are sent to output when there is a signal from indicator ? Because I would like to see a portfolio backtest on MT5 within EA from
Hi, I hope I can get any help I have been using a free well known software for copying trades from master/sender account (plaform 1 MT5) to slave/receiver account (platform 2 MT5) I use a lot of pending order and something strange happens when the order (pending) is triggered to a position
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

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.