Hello, I have an EA that is set to check on a hundred of symbols but the problem is that it seems the more symbols I set the EA to work on, the more the processor is being eaten up. To the point that the processor has barely any % left in the task manager and it frozes the computer if I put it to...
hello guys, i'm looking for a way to install the Eas that i bought on MT4 on my mac. There's no 'market' menu in my mac MT4. Also, i can't download directly from my mac browser... When i tried copy/paste the EA files from my virtual windows computer to my mac, i always had the message "can't load...
Good day, How can i use the function Line, It is in clase CCanvas. For use this call a library #include <Canvas\Canvas.mqh> after i give name a objet CCanvas miLinea; For draw adk the follow parameters (x1, y1, x2, y2, color) all integers. know what x1, x2 are times and y1, y2 are prices, how i...
I have a problem with a bool variable. I did the global declaration (outside the void OnTick() function) and then I need to use it later inside the void OnTick(). It's important because after checking conditions I will use the variable in the IF for checking the conditions to open a trade. For some...
Hello guys, help me please, what mt4 script Should looks like if i need this option for expert:MaxSpread=30 Step for spread=10 So if spread is going more then 40 or below 20 - ea stop trading Thanks in advance
I have an EA that enters in a pyramid type grid. When DD hits a certain percentage it closes the first order opened in the basket, I tried coding this but it just seems to hang the EA. Can someone find the culprit in this code? Thanks in advance. //---if(ch_b...
How to remove a warning in MLQ4? In this code used to close operations, void CloseOrderbuyl(){ int orderstotal = OrdersTotal(); int orders = 0; int ordticket[][2]; for (int i = 0; i < orderstotal; i++) {bool sel = OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if (OrderType() !=...
I suspect a bug with the Strategy Tester when using Fast genetic based algorithm. After a few passes which can either generate zero, negative or positive profit, then the following passes always generate 0. I tested the values of one of the pass which generated 0 by disabling the optimization and it...
Hi, I was trying to upload to the Market a free EA that does not open any trades automatically, but does help users to open/close/control their trades. For example, a EA that puts trailing stops on trades that are already running, using only mouse clicks (there are buttons for that on the chart). Or...
Hello, Does anyone knows what is the function that gives you the possibility to run an EA or an indicator on just one broker?
BUG: Imported DLL Functions Receive Only First Character of Strings Passed By Value (MQL Build 237)
(4)
Hey
It appears there is a serious error in invoking external DLL's from MetaEditor (MQL5: Version 237). The bug appears when external DLL's are referenced and are passed MQL string types.
I have already reviewed https://www.mql5.com/en/forum/122 and allowed importing DLL's.
I was not sure about...
Given: a) disconnected fromserver, historical data only b) 1M bars used to createall other timeframes using period converter c) Model=Every Tick,Period=Daily, Sym=GBPUSD d) UseDate=checked, From2016.02.12 - 2016.02.15 I ran into some quirkybehavior on my EA and started to drill down into the...
Hi, Im writing a function to calculate my lot size based on risk and sl, pretty standard stuff so far. Now where I am struggling is my account is a GBP spread betting account on Oanda convert everything to USD, so my question is how to I get to the price of 1 lot for my account. So far I know Oanda...
Hello,I would need help please. My problem is that my EA does not work while all my settings are ok,autotraiding is enabled, my one-click trainding is enabled, allow auto traiding is enabled, and it does not work with strategy tester. and it's a second trading account on the same network. a big...
Hey How i can use a Custom indicator like PARABOLIC in my own Expert?
Hi I wrote a program that works well in the tester strategy. But when I run it on the real market, it does not work.(I don't Know , why???!!!) My strategy: When the price falls below the order open price, buy again. Can you guide me? Thanks....
Hi, in my EA I use an indicator stored as a resource. My code to use it is: #resource "\\Indicators\\volumes.ex5"handle_volumes=iCustom(NULL,IndicatorPeriod,"::Indicators\\volumes.ex5",AvgLength); In this way when I add the EA to the Graph window, the embedded indicator is displayed. -Is it possible...
Hello, Who could fix the code to make full transactions sellstop and buy stop. Now only the sellstop deals are opened and the buy stop deals are blocked by hedge or else. This code was made 2013 year, and now not working on Metatrader 4. Please FIX problem. #property copyright...
Hi, i have bought an indicator with several parameters (about 100). Among them, there are 9 sinput, should i consider them to the iCustom on my EA? I know they are static, but i am not sure if they must be considered when i fill in all the variable. In other words, should i use all the 100
Dear,My EA has problems with optimizations. It locks the computer and also by Google Coud. I thought that the MT5 self, but I realized that it only happens with my EA.After that, I realized that the out-of-memory error is due to array storage.Can someone explain or help me?About the OnInit source...
Hi! I'm trying to develop an E.A. but when the price trigger the StopLoss it execute with the wrong value (one tick below when it's a buy). I appreciate any help.
I want to know what base currency of the Symbol. I need this because depending of the base currency I will use a Risk % per trade. My broker have stocks from UK, US and EUR. Each one of this is in different currency and my money function always is considering my account currency (USD), so is not...
hello im trying to code an expert with multi orders for 1 pair the idea is opening x amount of orders and when one or more order closed at the same time, the EA will collect its ticket numbers and deal with each order separately. i tried arrays and files, even both together the problem EA some times...
[Deleted]
hello guys,i wrote a simple code to get the High of the current candle but it gives me the open price instead. double Maxima_Candle[]; CopyHigh(Symbol(),PERIOD_CURRENT,0,1,Maxima_Candle); MqlRates rates[]; CopyRates(Symbol(),PERIOD_CURRENT,0,1,rates); Print("OPEN...
Hi all, Thank you for looking at this thread. I want to know whether or not it is possible to change the comment on MQL5 to trades which hit a stop loss or take profit? I have a comment added to trades which closed based on my exit condition, but if a stop loss or take profit is hit that comment...
This is my M1 scalper expert's 3 month result. You can see big drawdowns. (I tested with commission and Dukascopy variable spreads) Examples of loss positions: The robot expects the RSI to come to the oversold/overbougt zones in the M1 chart and use 490 pips trailing stop. Most trades make profit in...
I'm subscribed to a signal that has opened 21 trades, all but 3 are losing. How can I stop any new trades from being opened by the signal but let the open trades run their course?
Sorry if this has been asked before. I am looking for an EA that will close multiple trades from multiple currency pairs instantaneously. Hopefully something you have had personal experience with and something you rely on Ideally you could place a dollar value in it and the trades would all close...
Hi All I'm using Buy/Sell like the following example. The problem is that although PositionModify return TRADE_RETCODE_DONE , it seems that the order does not have SL/TP assigned to it. What needs to be fixed with this approach? Thanks, if (m_trade.Buy(lot,m_symbol.Name(), 0 , 0 , 0 ))
Hi, I'm new to mt4 but not to programming, I'm working on a EA and one thing I've noticed is that the value for ATR from the EA is different to the ATR on the chart window, see attached screenshot This is my code in the EA double atr = iATR(NULL, 0, 14, 0);Print("ATR FROM EA = ",NormalizeDouble(atr...
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.