MQL4 and MetaTrader 4 - page 32

I want to be able to use the dollar index in my ea and want to see the best way to do so. I use Oanda and with Oanda there is no dollar index to trade. Other brokers or trading view have the dollar index. Let’s say my strategy on eur usd was to not take longs unless we were above the 200 day moving
hello Hello, I encountered a problem last night on a Hetzner VPS server. It seems that MT4 can't connect to the MQL5 community and can't open markets. I tried to reinstall MT4, but the installation failed, as shown in the picture, even though the internet is working normally If the problem is the
Whilst I wholly appreciate the fact that this is not specifically MQL4- related, I'm sure there will be others on here who will have come across a similar - if not an identical - issue to the one I'm having with Visual Studio Code. So I'm using VSC an an alternative to using MetaEditor to code my
  MT4 download  (17   1 2)
I want an MT4 download link, I do not want to use MT5... Most people want MT4 so why push users towards MT5? Why should I go through a broker? Stop annoying a lot of people and provide an option!!!
I am trying to copy this demo account to my other demo account (DIFFERENT BROKER) But it keeps downloading MT5 although it is MT4 when trying to subscribe
Hi, I am currently running 3 EAs on 3 different terminals. All 3 EAs are the same with 8 pairs each. Question is that will the high download data/low upload data affect the order execution as my EAs are all running on M1. Latency is low though. E.g 22123/18kb Thanks in advance
Anyone can help me fix this indicator plz ? I want to find highest n lowest of buffer up and buffer down ! draw the line connect it like as
Hello, i'm new in MT4 editor and on this forum. I need some help to correct a code. I'm trying to code a simple crossover script that send a single buy order when the SMA20 cross over the SMA100, and that close the trade when the SMA100 crossover the SMA20. when I Backtest the code on a chart, the
Hi all, Please let me know how it works if I copy from an account that has a contract size of 1 for NAS100 and my contract size with my broker is 10 for NAS100. Does the copy software calculate this automatically or do I need to reduce my risk % setting when copying
Good morning friends. I made a custom indicator. But it causes the chart to stop for minutes especially on lower timeframes. Please help me review the code. Thanks. //+------------------------------------------------------------------+ //| StochRSI
Why Money Management? Best system will fail in long-term if it is without proper money management. On the contrary, bad system can turn profitable if used with a good money management. Currency trading always go through the cyclical ups and downs, where winning and losing are just part of the game....
//+------------------------------------------------------------------+ //| CandleTimeStationary.mq4| //| | //| |
Hi friends, I created a Trade Panel using graphical library located in Inlcude/Controls. need to know is it possible to convert all of these objects to only 1 object. As you can see there are many objects in my Object List. need to have all of them in one object. Is it possible
Should MetaTrader 4 work OK in Windows Server 2003 R2?? I just can't get it connecting to the server after many many tries. I have added MetaTrader to the windows' firewall's exception list. I also manually added port 443 to be open. And at last, I completely disabled the Windows firewall, but...
I am attempting to use several indicators such as macd, oscillator, etc against other indicators that have hard ranges, such as rsi and have automated trading based on their crossing points (currently only seen visually)  When I start a standard RSI(14) indicator window, and drag a standard MACD...
  Object Problem  (1)
Below I have my supply and demand EA, when attaching my EA everything works fine but the problem is when zooming out on a currency pair my supply and demand rectangles don't appear the same. Instead they appear as resistance and support. This is incorrect as I want my EA to view supply and demand
I keep getting the error ERR_INVALID_STOPS for the function below: OrderSend("EURUSD", OP_BUYLIMIT, 0.1, 1.2750, 100, 0, 0, NULL, 0, 0, Red) Can anyone see what is wrong. I have left the stoploss and takeprofit as zero because I do not want stops on this EA. I assumed this meant no SL or TP was set....
Hi, I am looking for help with writing a small custom code (MQL4) to sum some elements (about 25 to 35 elements) of an array with 100 elements. I tried the following code but it did not work and I'm not sure how else to go about it. for (int iArray = ArraySize(array) - 1; iArray >= 0; iArray--)
  Open opposite order  (33   1 2 3 4)
Hi all, Would like to get from you help to deal with this issue; When an order is open and the price is under of the order open price I want to open an opposite order. In this particular case I'm try to use this code but without success. Could anyone give a help here? Thanks in advance Luis
hi, i would like to add a delay in seconds from the time my ea should open example: my expert now finds an opportunity but opens after a few seconds Thanks
Hi mates , When I backtested MT4 EAs from the market. The backtest report only containing maximum drawdown and realative drawdown. I want to know more like how often the EA reach a specific drawdown level. I can write mq4 code and make my own EAs print that info but how about EAs that I don't have
Hi, Is it possible to bring a specific chart into focus by Symbol Name with some script, when you have a few charts open? Mt4 Platform. I have scripts to do buy's and sell's for different instruments, but I can only get them to work correctly if the specific chart is in focus first. Even if I set
I am using MT4. It is difficult to see the various lines displayed on the chart, so always hide the 12th and subsequent lines from the latest candlestick. Please tell me the source code (MQL4) of such an indicator. Thank you
Description : Hello , I need your help with a challenge involving an `.ex4` indicator in mt4. This indicator creates trend lines on the chart, but I'm unable to access its source code or edit it. The issue I'm facing is that the trend lines generated by the indicator don't appear in the object
Hi all I have a function in MLQ4 to create a horizontal line and I am adding in a Text to the line. However, I want this to be moved to the right side of the chart (attached). I have tried setting up the anchor and alignment but none of these work as the text is being formed with the HLINE Object
For clarity for myself, at least, and anyone else that has an interest . . . .hst file format valid as of MT4 Build 509 The database header first . . . total 148 bytes intversion; // database version - 4004 bytesstringcopyright[64];// copyright info64 bytesstringsymbol[12];// symbol name12...
I keep getting this error in my code can anyone help solve this please. '[' - array required Thecash.mq4 56 14 '[' - array required Thecash.mq4 56 30 '[' - array required Thecash.mq4 62 14 '[' - array required Thecash.mq4 62 30 '[' - array required Thecash.mq4 76 14 5 errors, 0 warnings 6 1 if
Strategy Tester gives this message and quits. I have had more than a year's worth tick data collected on my brokerage account. Today, the tester stopped working all of sudden in between testing. The error message is: TestGenerator: deficient data 'AUDUSD1' (58 rate records) Is there anyone out there
Hello, This is driving me nuts! I can login to the MQL Website on my laptop. But when I'm in my VPS I cannot...! I even tried to register a new MQL account using a different email address, received the email, clicked on the 'Activate Account' link, entered the details....and it STILL comes up with
where the best place to include this code below? i want to get phone notifications with the quantity of divergences, or names of the divergences (indicator attached int timeframeInSeconds = Period (); string timeframe;