double task = MarketInfo(Symbol(),MODE_ASK); double ilastBuy = FindLastBuyPrice(); if(FindLastBuyPrice() != 0 && pipsDistFromPriceBuy(FindLastBuyPrice()) <= -10 && CountTradesBuy() >= 1 && FindLastBuyPrice() - task >= 10*Point() ){ OpenBuy(); Print("Down buy"," add
Hi I have a Zero Divide Error popping up in 2 areas of my code base, the just of the calculation is to calculate gradient. The differences between the Run (x axis, int bar position) is calculated and when that difference is 0, the algorithm automatically changes the variable to 1. However I am still
Good day. Please help. The code doesn't give a Alert for "Signal1" or "Signal2" Dont know what I am doing wrong: void OnTick () { if (!CheckIfOpenOrdersByMagicNB( 111 )) { int Orderbuy = OrderSend ( _Symbol ,OP_BUY, 0.01 ,Ask, 10 ,Ask-( 1000 * _Point ),Ask+( 200 * _Point ), NULL , 111 ); }
Dear all I want to ask this code is not working in mql4 ChartSetInteger (chart_id, CHART_BRING_TO_TOP , true ); I don't know why
Dear All Ho I Fixed lot zise=0.01 in my order (EA code) no need to increate lot zise Kindly to be advisor // extern int MagicNumber= 10001 ; extern double Lots = 0.01 ; extern double StopLoss= 0 ; extern double TakeProfit= 50 ; extern int TrailingStop= 0 ; extern int Slippage= 3 ;
Hi everyone, I am coding an ea and want to backtest it by avoiding all major news 30 minute before, can anyone tell me how to find past news bars(from 1999 to 2021 if possible) with code? Thanks in advance
Hello, This is my first post here and in general very new to the subject. Over the last couple of days I was spending some time getting into trading with EA and I have the problem backtesting the robot on 1 minute time frame. Meta trader 4 It only tests up to last 4-5 days, is there a limit of past
Attempting to install a product purchased in the market, mt4 gives the error message : failed to save product to '' where the problem I presume is the blank target string at the end. Can anybody suggest what the problem might be? Sezor
Let's humour here, because in the old thread "I can't hold on any longer
Hello Everybody; I have a robot program below. I want to make changes but couldn't succeed. Working system of the robot; trading in daily candles. When the daily candle is closed, the next day when the candle is opened, it opens both buy and sell. Puts 10 pips of profit. I do not want it that way
Hello, i want to use Renko, I try to install this : <Link to market product deleted by moderator> but it seems impossible... download can't start please can you help me
Suppose an old bar, say index 15 is bullish. The timeframe is 1H. I want to probe for the state (bullish/bearish) and possibly other data (iopen, iclose, EMAs etc.) on each 15M bar that existed inside that one bar when it happened. How can I achieve that? TIA
[Deleted]
Sometimes the function OrderOpenPrice return number with more digits than it should be and that's make problem because when i use that number inside of if statement like "Ask==OrderOpenPrice+50*pips" it doesn't make true the condition to execute the code at the brackets of if statement.I try the...
Hello Can you guys see what I am doing wrong? When I run mt4 on my desktop all is good, but if I shutdown the desktop it disconnects all. I am renting the mql5 vps... Thx Matty
Dears, This is presently my MT4 desktop, that I am looking to better organize. As you can see I have vertical windows with different widths and a lower horizontal indicator window. MT4 has only options to cascade, tile horizontally or tile vertically all at once, so that if I select one of these
The MetaTrader 4 platform update will be released on Thursday , December 10, 2020. This version provides error fixes and platform stability improvements. In particular, the update fixes an error in the optimization of data connections between client terminals and brokers' data centers. The new build
Hi, I have 2 MT4 real accounts at the same broker (ICM) and 2 EA. I want to run one EA on one account and the 2nd for the 2nd account. I've notice that they doesn't work separately. The EA's are overlapping when I switch the accounts. There is a way to manage this? Thanks
Hi experts, Im a newie in terms of programming in MQL and I have an EA in where I want ONLY to open orders in OPEN PRICE since my strategy would require this. Is there any procedure or mql part of code that I can use for this target?, or maybe some topics about functions? Thanks a lot for your help....
[Deleted]
Hello, Sorry if this is a silly question but I really am confused with the time on my chart (candles) and on the Marketwatch. If it is 7:45 am in London, and 16:45 in Brisbane Australia, my clock says in MetaTrader has 8:45 .. Does anyone know where this is set.. I imagine it is the server but then...
I am looking for Volatility stop indicator in ex4 format for Mt4. Any help I will appreciate
Hello. Kan anyone tell me why my mt4 app on my desktop changes to Demo charts and the wrong dates as soon as I open my live account. The charts are current and correct, in the demo mode, when I open the app but they change when I switch to my live account. Hope someone can tell me why. Thanks in
Hello, I just wanted to ask if anyone has the solution to my problem. I have an EA that I set the time to enter the first trade in the morning. When I adjust the EA when all trades are out in the evening, then it happens sometimes that the trade will not enter in the morning. What I have to do is
I’m very good with tech usually I’m a millennial and I can’t figure out how to actually purchase a product on here. I also have no clue how to login using meta trader 4 or 5. I’m looking all over. I’m trying. To spend money but cannot. How do I do this
Hello! I've been reading some great articles to build GUIs on MT5, such as this one: https://www.mql5.com/en/articles/7892 Can someone point me out to some similar articles building GUIs for MT4? I've been searching for several hours and haven't managed to find one. -Fernando
I have recently coded a convergence/ divergence Algo that is pulling variable data from different timeframes for potential trade analysis. The compiled code produces no errors and runs in the Strategy tester, however nothing is returned in terms of print outs and orders. Can someone tell me where I
double resulttotal; double resultaverage; int totalbar = 10 ; for ( int x = 1 ; x <= totalbar; x++) {resulttotal = resulttotal + iClose ( NULL , 0 , x); } resultaverage = resulttotal / totalbar; how the MT4 distinguish between the "resultTotal" before the = as a new total that will have a new value
Dear Guys, I need help to allow EA to disable automatic trading after closing a trade and enable automatic trading at a specified time. The EA should be able to monitor the trade terminal and once all trade are closed and no trade is open the EA disable the auto trade and wait for a specified time
Hi fellows, any way to get the values from the pitchfork or do i have to calculate the fork myself? Using normal ObjectGetValueByShift() returns 0, getLastError says 4205, but the fork is drawn correctly, so i assume coordinates are ok. I also made sure that only values after the beginning of the...
Hello, I have an encrpyted .ex4 indicator that is for buy/sell signals . I'm wanting to be able to put that into an EA to open and close trades based on my rules for opening a trade. Is it at all possible to do if the .ex4 is encrypted? Thank you in advance for any help

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.