Hi everyone, I wrote an EA that seems to not be working all the time. I do not think the code is the problem so I was wondering what are the current technical problems that may cause an EA to stop working. 1/ Is it possible that after a certain number of tests, the EA needs to be restarted? 2/ Is it...
How do I draw rectangles on the top of the chart? I also want them to stay there if I zoom or unzoom.
Hi The double open[] gives the open price of a bar. As in https://docs.mql4.com/predefined/open Is that price bid or ask? Thanks
I think it is not possible to develop en EA that connects to another account different from the actual running one, but I want to be sure of this.. thanks!
Hello coders, I'm trying to implement a partialclose function to my trade manager, but I don't actually know how to make it work as expected. With this code I get several partial closes at specified ClosePrice, what I need is to partial close at distance from the OpenPrice for first step (this does)...
Used to be https://storage.mql5.com/!/#.
The indicator setting is like this: 1. Moving Average Period:5 Method: Linear Weighted Apply to: Close 2. Moving Average Period:5 Method: Linear Weighted Apply to: Median then change Apply to: Previous Indicator's Data How to create a indicator that can give us signal when this two MA crossover
https://www.mql5.com/en/code/14085 I used this code as a base and modified it to close the last trade of either OP_TYPE before opening the next. However, after a while the trade copier stops placing trades altogether. My modified source code is posted below.
Hello, Recently, something wrong happened to me from Metaquotes. Back in February 2015, I had discussions about the gateway between me and the sales team from Metaquotes. I was not sure what the gateway was. Metaquotes is claiming that this gateway was added to my license but not added to the...
Hi, I couldn't find a MTF version of the Fisher Transform indicator so i decided to create one and post below. Please note, this is only a quick mock up, so there could be various bugs etc. Example interesting results can be seen on the following for EURUSD: Set colours to None for indicator buffers...
I am trying to write an indicator that plot the volume, its moving average and its standard deviation. When I compile it, there is no error. However, when I try to plot it onto the chart, there isn't anything. What's went wrong? Thanks in advance. Below is the code. #property...
Hi, when I open a chart with the OpenChart() function the checkbox "allow live trading" in my EA's properties is always disabled. But when I open a new chart manually, the EA's properties are correct and live trading is allowed. I don't understand that because the function OpenChart() uses the...
Hi all! I'm trying to display in an indicator the current profit level and the % of equity that it represents. Actually, I'm testing it across 17 pairs and it this moment there are open trades on 14 of them, so I would expect to have information displayed for all of those. However, for some reason,...
Hi all! I'm trying to build an indicator based in ADX and a MA attached to it. In MT5, when I use iMA I can apply it to a handle. How can I do this in MT4? This is how I'm doing it: for(int i=rates_total-14-1;i>=0;i--) { adx[i] = iADX(NULL,0,14,PRICE_CLOSE,MODE_MAIN,i); ma [i] =...
Hello experts...! I'm new to MT4 platform and I've been trying to create an EA, I managed to come up with an indicator which is fine but when I try to make it as an EA I receive the following error: MT4 Journal: 2019.04.03 11:05:47.286 'testEA' is not expert and cannot be executed Meta Editor: 0...
Dear MQL4 experts, I am learning MQL4 and building my first expert advisor. I tried to learn as much as I can in the beginning but would need some help with my code Trade Setup: -------------- Open Buy Order on Fridays at market open, if the D1 Candle open of the previous day AND todays open are...
I had this EA working perfectly last week. I had to reinstall the MT4 terminal on my PC. And now I can not get it to load. Every time I try to load it onto a chart, it tells me to contact the EA admin. I have sent him an email. But sometimes it takes a week or more for him to respond. So I'm hoping...
[Deleted]
I have just begun to get to grips with learning the mql4 language from the downloaded tutorial when mql5 rears its head. Not much point in continuing with 4. When and where will the mql5 tutorial be available? Thanks
Hi all, I just recently activate my Email Alert in MT4. I set up the smtp using online service by GMX.com. Everything works great. Alert got sent to my email, etc. I am wondering whether this email alert thing works just like EA; that it will remain active as long as the Computer running the MT4 is...
Hi. I am trying to derive the formula used by OrderSwap(). Is it like so: Orderswap = (MarketInfo(currentsymbol,MODE_TICKVALUE)/MarketInfo(currentsymbol,MODE_TICKSIZE))* MarketInfo(currentsymbol,MODE_POINT) * OrderLots(); ?
Hi all, i'm trying to add alert to an indicator, but only on certain levels: if (Extend_Line) { for (i = 0 ; i < Maxbar; i++) { if (UpBuffer[i] > 0 ) { level = UpBuffer[i]; for (c = i; c > 0 ; c--) { if ((Open[c] > level && Close[c] < level)){
Hi, I am trying to backtest but I am unable to download sufficient data into MT4. Oanda says you are the owner of the data. I am looking to backtest 2016 data for the following pairs. EURCHF AUDCHF CADCHF USDCHF EURUSD AUDUSD NZDUSD NZDCHF How can I get more historical data into MT4? Thank you,...
Hi everyone, am creating an indicator for MT4 and I need to be able to dynamically change the line colors when certain conditions are met. Unfortunately, once I specify property indicator_type1 DRAW_COLORLINE the lines disappears entirely and are no longer visible. However if I change...
Hello Coder If anyone have idea or advice for an issue I am facing, it would be very appreciated. When I place buy trade, I use previous candle open price. To ensure Buy Limit order is triggered. I need to use Open Price + Spread when placing Buy Limit order. I have coded below to place buy limit...
Hi guys, I want to count the total number & separate new line from the multiple of label (string) that have same value. Example: Sun Opposition with Mercury & Venus Opposition with Mars. At the moment, my code use OBJPROP_YDISTANCE & plus the range to separate the lines. So how to separate the same...
Hi all, I need to use the fractals indicator , but I need it to use 3 bar config - lower high, higher high, lower high and higher low, lower low, higher low. Is it possible be used this way, and if not, is there any way to achieve that ? 10x
[Deleted]
I came across this interesting EA in the archives but cannot get it to trade on backtest. Any assistance? Or is it not able to be traded on backtest? I didn't bother posting in the original thread since it is too old. Thanks
I have the MT4 and Im on the 1M GBPUSD and I downloaded the latest data but when I get backtest the last day it says the data for that period isnt available.
I have 2 accounts in MT4 with 2 different EAs. But it seems I can only enabled 1 at a time, as it disables the other when I switch accounts. Please help!!
Important Update for MetaTrader 4 build 1080 The MetaTrader 4 platform update will be released on May 12, 2017. We strongly recommend that you install this update. A month ago, Microsoft released a major update of their operating system Windows 10 Creators Update (version 1703). After installing...
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.