MQL4 and MetaTrader 4 - page 399

[Deleted]
Whilst working with the MT 4 demoaccount I come upon a problem. Iuse Fibonacci Retracements with the numbers; 0.0 14.6; 27.2; 38.2;50.0; 61.8; 78.6; 88.7; 100.0; 114.6; 127.2; 138.2; 150.0; 161.8; 178.6; 188.7;200.0. To each number I have added the respective price leve, in MT4 (%$). The MT 4...
I do use /portable  mode on MT4 (multiple instances), and do try to update today just by overwriting two files metaeditor.exe and terminal.exe with newer versions from resent build. And for some reason MT4 can not connect even with new builds. Anyone having similar issues?
someone has ifractal-ex mql4 file that working well .My file is not work.
Hello friends, I am a little confused at the moment. I'm not sure if a nested do while loop will corrupt data input after conditions change. This post isn't really a question, but more advise weather or not a nested do while loop is ever effective or, a total waste of code space. I'm sorry if my...
  This is a mystery to me!  (13   1 2)
I have written a small EA and when testing I get the infamous ordersend error 130: invalid stops message.  3 14:49:36.262 2018.12.19 09:29:25  SpikeScalper GBPUSD,M1: OrderSend error 130 0 14:49:36.262 2018.12.19 09:29:25  SpikeScalper GBPUSD,M1: Alert: Open Sell Order - Error 130: invalid stops...
Hello all, I use MetaTrader 4 Server Sendmail 4.00 Build 1170 (Dec 20 2018) and I also have vps for smtp used in that software.previously, the smtp configuration that I created in the metatrader software if I tried configuring it in outlook or other email client software that configuration worked...
Hello,  I have a script that make screenshots for me. Now I need I do it with a shortkey. I use the screenshots for my excel sheet. Is there any possibility to run a script every hour? In the attached file you will the script
Hello I need to check if each "new fractal " or "current price" is above/bellow "previous fractal" . But don't know how to find the "previous fractal" price.Tried to set existing buffers in to an array but was not success, for example tried following code but not success. Declaration new array
Hello every one. Ok, so I'm trying to automate my testing and I'm having issues with getting right results, or getting rid of mistakes that strategy tester, ea, or something makes. For the moment I'm trying to just make simple backtest ea that trades when indicator crosses 0 line... and there are...
Hi people, help please. I had purchased a MetaTrader 4 Virtual Server a week ago, I then reinstalled Windows on my machine and after installing everything again my Virtual Server is no longer available to me.  Does anybody know how I can get it back please as I purchased a subscription and do not...
Hi my Ea no longer reading and even the ones my friend has which I compiled for him, please someone help me. I have the codes
The MT4 platform is logged into and everything is working BUT not the New Order window. The account is funded. The broker is not able to solve the problem and sent me here. 
I'm an experienced programmer of over 35 years, so the following is very odd to me.  I'm trying to develop a function to be used in an expert adviser that would indicate when a new period is encountered.  For example, if the period of my chart is days (PERIOD_D1), I want the first tick when the...
Hi, I'm trying to display a .bmp file in a chart (not relative to a time/price, but to its coordinates from the top-left corner). I have tried this script  https://docs.mql4.com/constants/objectconstants/enum_object/obj_bitmap_label but haven't managed to get it working. I got my file, called "30x28...
  OrderOpenPrice()  (3)
Does OrderOpenPrice() change to the close price when take profits or stop loss is hit? 
As far as I know long type can be converted to double without problem. long longVar=130365841471008683; double doubleVar=longVar; Print("doubleVar:",doubleVar); The result is: doubleVar:130365841471008690 Why?????????? Please help!
I have the following problem to solve. On computer A, there is an EA that updates several variables several times a day. On computer B there is EA, which must read these values ​​when they change. Both computers are in different locations and communication between them can only take place via the...
I have an indicator shown in a separate window and I want to place a text label in the window. The code I have is: void CreateTradeLabel() { string name = "tradelabel" ; int chart_ID = 0 ; if ( ObjectFind ( 0 ,name) != 0 ) { if (! ObjectCreate (chart_ID,name, OBJ_LABEL , 1 , 0 , 0 )) {
  Coding Error  (4)
Please , not sure where the error is on the code....... Thank you void OpenBuyStop()  {     //------   while(true)   {    ticket=OrderSend(Symbol(),OP_BUYSTOP,Lots,price,0,0,price+TakeProfit1*Point,"OpenBuyStop", MagicNumber3,expiration,clrGreenYellow);     if(ticket<0)Print("Error= "...
How to code in MQL4 to produce a graphic like the image below?
Hi, As far as I know the close price for the current, not yet completed bar is the last price. Therefore the close price is constantly changing with each tick. I can see this happen when simulating indicators of other people. But of course not my indicator. It looks like it immediately jumps to the...
Hi call, is there a way to check the minimum distance between market level and pending price order requested from the broker? Thank you
  Time constraint  (3)
How can I make sure that; Advisor (robot)should open position only if 5 min passed after last position had opened. Thanks.
So I have the exact criteria to open a buy market order and sell stop pending order,I also have a sell market order and stop buy pending order that has the exact same criteria so that either one hedges but the sells stop isnt working and the code is perfect. So i started to tinker with the criteria...
Hi, Is there a way to communicate between 2 EAs? I mean: an EA works in H4 and at the same time another EA works in DAILY Can the first EA retrieve data from the second and how? Example : the H4 EA needs to know if the DAILY candle is red or green Thanks
Hi, I have connected a DDE from MT4 to Excel and now I want to use that live updated price to multiply it with an other value but it doesn't work, it just says #VALUE!, how can you solve this? Best regards
Hello Everyone , Recently I have found out an average price indicator . The indicator is accessible from the following link & works fine on MT4. But I want to develop an EA with it on an eabuilder. This indicator doesn't work with eabuilder  due to absence of buffer . https://www.mql5...
  Counting Candles  (13   1 2)
Hi friends, I want to calculate the candle number after and related to specific time period on current chart. For example on H1 cahrt i want to numerize the candle after 00:00 Oclock (After every day opening). I have already make an indicator Using time formula and Ibarshift - Both of them are...
Im facing this error when I try to retrieve the oldest ticket in my current pool of trades using the functions below, int EarliestOpenSellTicket(){    datetime EarliestSellTime  = TimeCurrent();        //initialize it to the current server time. You will have no orders newer than that...
Guys i need help with the following... I am trying to open a buy order 2 or 3 bars after fast ma crosses slow ma and when the rsi is greater than 50 as well as when both stochastic lines are greater than 50. A sell order for the opposite. The code below is an attempt at a buy order for the 1 minute...