Hi friends. I developed an EA similar to Semi Martingale style. I am getting good results. I am trying to put this EA in the market. Unfortunately, Ordersend always has errors 4051 and 131. Please help me. How can I eliminate these errors. Please check the codes and tell me what to do
int SmallSMA=9; int BigSMA=17; int OrderNumber=0; void OnTick () { string signal =""; double SmallMovingAverage1 =iMA(_Symbol, PERIOD_H1, SmallSMA, 0, MODE_SMA, PRICE_CLOSE, 1); double BigMovingAverage2 =iMA(_Symbol, PERIOD_H1, BigSMA, 0, MODE_SMA, PRICE_CLOSE, 1); double
Hi, working on a new EA idea. This is long term trading, where trades last something like 50 - 500 bars. Therefore I have no interest in intrabar ticks, even Trailing Stop is done from bar to bar. And this Ea is slow in processing so testing takes too long in Tick Mode so I want to use OPO mode as
hi guys i try to close a trade at time , i open the trade at time and it works but when i try to close not close i create a script like this extern string StartTime = "11:00:00" ; extern string EndTime = "12:00:00" ; if ( TimeToString ( TimeLocal (), TIME_SECONDS )> EndTime) { Print (
Hey guys, I’m encountering a problem. When I enter in my MT4 Platform the toolbar is just grey, I can’t click on anything. The charts updates themselves only. Can’t operate. If someone could help me understand why it does that and resolve, I would really be thankful for that
Hi, My indicator use (ShowAlerts) Comment, and the comment shows a buy or sell signal. How do i translate these buy or sell comment, signal, into an expert advisor? Ed
I have several thousand mql4 files of various EAs, indicators, and scripts that I would like to sort quickly. How do I do that without opening each in the terminal first, then placing each one by one individually in specific folders by type (e.g. "Experts", "Indicators", or "Scripts")
Hello, I have the following code... maxLots = AccountFreeMargin () / MarketInfo ( Symbol (), MODE_MARGINREQUIRED ); lotStep = MarketInfo ( Symbol (), MODE_LOTSTEP ); maxLots = floor (((maxLots / lotStep) * lotStep) * 100 ) / 100 ; maxLots = NormalizeDouble (maxLots, 2 ); With $1,000 in Free Margin
About a month ago, I started trading using an expert advisor on mt4's virtual platform and now am not able to manage the trades. If I try to close the trade, it says "Trade is Disabled". How do I close the trades
Hello! I'm a newbie trader from Portugal and I'm very enthusiastic about automatic trading. Whe I leraned about ATC2008 I was very excited to participate! Of course there was a problem: I'm not a coder! So I found an online expert builder and started working on it. I aplied to the ATC2008 and waited...
//+------------------------------------------------------------------+ //| EA_TrialM15.mq4 | //| Test | //| |
how to calculate the price range of a number of candles with same color(bullish or bearish)
I'm running my expert on mt4 like I normally would then noticed something fishy this week, it froze for about 10 minutes, 2020-12-17 01:15:00 to 2020-12-17 01:25:00 GMT on some pairs only, affected GBPUSD EURUSD GBPJPY EURJPY, VIX... what could have caused this? Like is it a broker server problem
Hello traders, am building an EA that place a market order and also a pending order at the same time, once the pending order got activated and become a market order, The ea will place an opposite pending order. But Now i want to Attach the Ea to more than one currency pair, How do i know when the
My computer updated windows and am unable to drag indicators into my mt4. What can I do
Please help me for this EA I want that the martingal willl be applied per pair Eg: If the gbpusd was lost for the last trade, so the martingal will be applied on gbpusd only once gbpusd will appear Thanks in advance sir extern double Lot= 0.01 ; extern bool Martingale= true ; //martingale extern
I want to know when the time changed to next day. I think I can use Hour()=0, but If (Hour()== 0 ) Alert ( "Next day comes!" ); But I guess when doing backtest, it is skipped this code when I don't use every-tick mode. Any good idea
Hi, I'm new in MQL4. counting the number of new candles. I need, every time a new candle formed. Add a number to a variable. I use the following code to find a new candle: bool NewBar() { static datetime time= 0 ; if (time== 0 ) { time=Time[ 0 ]; return false ; } if
Hello, I use EAs with a martingale money managment where there is no hard SL set. To fulfill requirements of certain funded trader programs, I need to have a Hard SL set on each trade of the basket (i.e. a separate EA which just closes all trades when specific DD is reached will not be enough). Is
Hello I'm a beginner in Programming. need to return the same Price in last order every time I lost order let's say my buy stop Price (1800) and my Stop lose (-10) when I take lost the Buy Stop go to (1800). The price open direct when I run EA No extern my Code ** Sorry for my English :) extern
Hi people, I ran windows update and then i lost my VPS how do i recover my VPS? It went back to basic 120ms ping without any option to go back to what i am actually paying for. Regards Martin H
Dear Friend I am working to create a function to store High / Low Bar Index values for previous N period. However my array does update only with one value a 0 bar. Can you please help me identify the error ??? extern int MajorSwingSize = 3 ; extern int PeriodsInMajorSwing = 13 ; extern int
Are there anybody with knowledge about programming mq4.I want to add a sound alert my zigzag indicator .mt4 will give the sound alert " BUY PİYASASI İÇİN UCUZ FİYAT"or" SELL PİYASASI İÇİN UCUZ FİYAT" when Arrows apper I'm sorry for my english is poor. My language is Turkish
Hello I startinf to learm MQL4 and I have problem input int SmallSMA=9; input int BigSMA=17; void OnTick() { string signal ""; double SmallMovingAverage1 = iMA(_Symbol, _Period, SmallSMA, 0, MODE_SMA, PRICE_CLOSE, 1); double BigMovingAverage1 = iMA(_Symbol, _Period, BigSMA, 0, MODE_SMA
Hi,friends I code an EA imports ws2_32.dll, call functions e.g. connect, recv, send etc. After a period of time on some different vps, one of these vps receives an error "Access violation write to 0x00300080 in 'C:\***\MQL4\Experts\***.ex4'", this error without code line number or anything useful
i use custum indicator for zigzag in my scanner int limit, bigshift= 0 ; int GrossPeriod= 60 ; int ExtDepth= 12 ; int ExtDeviation= 5 ; int ExtBackstep= 3 ; int counted_bars=IndicatorCounted(); //---- if (counted_bars< 0 ) counted_bars= 0 ; if (counted_bars> 0 )
[Deleted]
Hi, i can't find history 2010-2012 for EURUSD 1 Hour Timeframe in my MT4. it is possible to get it? How? Please help me
hi everyone as far as i know the usual way for Send Email function doesn't work when you want add attachment i want to know anybody know a way to make achievement to an email and send in the mql4. i found the Xpmail in the forum but it seems it's outdated
hi i downloaded mt4 and playonmac, installed it on macbook pro (macOS catalina), seems to work all fine, it asks me for login but no matter what broker or login data i use it results always with this: can you tell me if this just doesnt work or do i have to get the login from metatrader? where

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.