MQL4 and MetaTrader 4 - page 17

Hi! I've downloaded tick data from Dukascopy and whenever I try to backtest any of my EA's in MT4 I get the below error "tester cannot calculate prices". If i remove all the data from Dukascopy and simply get the historical data from my broker (IG) I can backtest the EA just fine, although just the
Hey guys, I have an issue with my EA/server (I don't know where the issue is from...). Last couple of months, I've used an EA through MQL5 vps service. The EA + 1 custom indicator worked fine (I could backtest normally) and it did work fine for a few months but then it stopped taking trades (without
0 19:00:00.105 '229232': instant order buy 0.02 NAS100 at 18386.9 sl: 18351.9 tp: 0.0 0 19:00:00.105 '229232': instant order buy 0.04 NAS100 at 18386.9 sl: 18303.5 tp: 0.0 0 19:00:00.105 '229232': instant order buy 0.01 NAS100 at 18386.9 sl: 18303.5 tp: 0.0 0 19:00:00.105 '229232': instant order
I got this error message: "12 leaked strings left" when I remove my indicator. What do I do wrong? Thanks for your help
Is it just me, or can 0.07 not be stored accurately?    Example double number=0.07;Comment(number);   This displays as 0.07000000000000001, therefore I can for instance send an order using a lot size of 0.07.
I have a question from a newbie regarding the MT4 platform! If my computer shuts down when I have an active order or position, will the trade stop? Or are they still on broker servers
Hi, this indicator working for audusd, can anyone help me to work for eurusd or gbpusd too... Why only working on below 1.0 price pair. Above 1.00 price pair not working. Please help me //**************************************************************************// //*** ZZ 2nd Coming ***
I am a somewhat newbie, been programming Mt4 for about 2 months. Anyways, I developed this Custom indicator , not sure if its relevant but calculates everything from BAR 1 to +, basically always ignores BAR , calculation is only relevant on closed bar. I have a developed an Expert Advisor that uses
Any body know the code for this strategy When I Click The EA the following steps i want its possible? Step 1 : Buy Order TP-20 pips SL-24 Pips Step 2 : Sell Order TP-20 pips SL-24 Pips Step 3 : Pending Order Sell Stop Price (First Step Buy Order SL) with TP-30 Pips SL-24 Pips Step...
Hello, How many Letters/Characters does MT4 OrderComment() supported. I noticed, if i enter big comments, than it became empty/blank?. What is the Limit
OrderProfit() - This will return only Pips value or Final Profit/Loss after calculating swap and commission also. Default Code : double CalculateTradeFloating( int A_magic_0) { double CalculatePL= 0 ; for ( int pos_12 = 0 ; pos_12 < OrdersTotal (); pos_12++) { OrderSelect (pos_12
Is there any code, function or something which is able to return Account Balance of an specific time? For example at the beginning of the day.
Hello, I encountered a problem where MT4 shows a "no connection" error and cannot find a broker, despite having found 10 VPSs, because I rent a large number of VPSs for my clients to deposit and run MT4 on. However, it keeps showing "no connection" without any apparent reason, even though the
  Mql5 login  (9)
Hello.. few days ago since I cannot login to mql5 on my mt4 platform… so I can’t purchase nor download anything… I can login on website, I can login on mt5 account but not mt4.. don’t use vps, everything else has been checked as I said same pc logins on mt5 but no mt4… Any help
I have tried to create my own EA and it is currently working (although not profitable yet in demo account) so i know that trades are opening and closing but I'm struggling with the trailing stop loss and back testing. The trailing stop loss seems to come in but its not coming in at a point where a
// Define input parameters input int ADX_Period = 14 ; input int RSI_Period = 14 ; input int RSI_Overbought = 70 ; input int RSI_Oversold = 30 ; input double Risk_Percent = 2.0 ; // Risk percentage per trade input double Max_Lot = 0.1 ; // Maximum lot size per trade input double Slippage = 3 ; //
can anyone help me with M4 IEXPOSURE please I added it to my chart and its all bunched together, any ideas please
  Need Help with my Bot  (14   1 2)
I got bot working to some extent, however it still does things awkwardly and I've been at this bot now for month and two weeks. #property strict // Define input parameters input int rsiPeriod = 14 ; // RSI period input int maPeriod = 20 ; // MA period input int bbPeriod = 20 ; // BB period input
HiI am looking for an EA/TOOL that would send the trades opened on mt4 to my discord channel Can I find one
Greetings everybody! I have been working on a meta trader 4 trading bot for a while. When tuned all the algorithms and parameters I get a impressive results as shown below in the screen capture. This is for the time period Jan 1st 2024 to Today (14 Mar 2024). It gives similar results for any time
Hello all, I'm new to coding and I'm really not finding a way to get what I'm looking for. Maybe one cool/savior programmer out there can help. I'm trying to find out the high/low for a certain period. The period is fixed. Let me explain a bit better. I'm trying to find out the highest high and the...
Hi Is it possible that when our DD reaches 20%, all our positions will be closed? If possible, friends can help
I'm wondering, is it possible to use an EA on unusual timeframes in MetaTrader4 (different than the classic H1, H4, Daily) like H8 and H12? I know it's possible to visualise them but is it possible to trade live? Do you have any solution to trade H8 and H12 timeframes? Thank's for your help
Hi, is it possible to get seconds timeframe charts on mt4? Like 15 seconds timeframe, 30 seconds timeframe and so on...?
Hi every one , I have some strategy in mt4 I want to make a automate trade system for qxbroker unfortunately this broker doesn't support mt4 It's possible to make my order and chart in mt4 and send it with python to
Hi guys, I am facing wired problem when I am trying to use WebRequest() function on Windows. Here is the simplest code which could be written: void OnStart(){   string url = "http://server.com";   string headers = "application/json";   int timeout = 5000;   char post[],result[];   string...
How can I get the value of the position, which is marked in the picture, in the EA code
When I set “Long Only” or “Short Only” in the advisor settings, the terminal sees error 4110 or 4111, how can I write a check for position allowing in the code before completing the OrderSend function
hi everyone I have indicators code in MQL4 and I want to use it in Mql5 How I can change codes into Mql5 I don't know any thing about Mql5 codes below are my indicator's code I really need it as soon as possible Best Regards Neda
  MT4 End Of Life  (66   1 2 3 4 5 6 7)
Hi all I have heard reports that MT4 is soon to become 'End of Life' with no active support or updates. Can anyone explain what the future holds for MT4 and the vast array of millions of ex4 Indicators, Scripts and EA's? Any plans to provide a port or emulator for these to help transition over to