Download MetaTrader 5

MQL4 and MetaTrader 4 - page 33

To post a new topic, please log in or register
I'm not sure why I'm having such a hard time with but here it is. I'm trying to get the value of the GBPEUR no matter what chart I drop my indicator on. Then I want to store that value in a variable. I have been trying to test this with the print function so I could see if I was successful however...
  CANT LOGIN (1)
hi,i keep getting the invalid acc message on my mt4,help please
Hi, i need help once more,  i never worked with functions before, but when the code starts to increase you have to use them, or you get spaghetti code,  i need help to get more than 1 returned value from each function, it's possible to do it? I've been searching, you can use something like passing...
Hello, It's very glad to contact with you, first. The followings below is my difficulties, and hope you to read and help. I have a pre-made indicator that shows simple arrows for Buy / Sell Entry. This pre-made indicator does not read the values of the 1st previous (closed) candle properly. And the...
hello, if one function offers me values like 1,1,2,2,1,1,4,4,3 how i can bring them to 1,2,1,4,3.... plz help :)
Hi When I go to the donwload centre to download more date for testing EA. I get a message saying there is no data to download. But for example Crude oil would have dat 1 or 2 years back surely. Can anyone help out why it won't download the data? Thanks
Hi.. need someone to rectify the issues i'm having.. The alert is all working fine... But if the next bar have the same rules, the alert won't appear again as previously it has already appear.. which means the alert only trigger once bool alert[][9]; this the top part of it..   {   int i=0,j=0;...
I need to copy the last ten highs from the high[] array in OnCalculate()    int Length = 10;   double ahigh[];   ArrayResize(ahigh,Length);   ArrayCopy(ahigh,high,0,0,Length);   for(int i=0; i<Length; i++)   {    Print("high[",i,"] = ",high[i]," ahigh[",i,"] = ",ahigh[i]);   }   int compare =...
Hello, I have one modified version of sweetspot indicator(draws lines after 10 pips). Every line value is actually the price,  yes? I'm too dumb of coding and don't understand which variable in this code is the level or let say price? I would like to use this value for comparing something..
Hi, I created this price ticker as I wanted to use the Market Watch prices and to reduce the quote to one less decimal place but still see the fractional element. It works great but the only snag is the colour doesn't change. What have a i missed? Thanks in advance. #property...
I am running EA to metatrader 4, and I saw that my terminal's memory increasing continuously. My terminal freezes occasionally. I have to restart terminal when freezes. Is there any mq4 functions that can free memory?
i have a new ea to load.  it loads and shows a smiley face and the autotrading button is green, but the ea does not run.  what are the flags and indicators that might need to change to get the ea to run?
this is actually a really major bug which renders the ability to draw trendlines on 1 minute charts useless in mt4(!) like, wow holy crap how could this go unchecked.... i have provided an indicator called copy tline which if you place it on a chart and draw a trendline with the correct name (use...
Hi,  I am having some issues identifying the tops and lows in a indicator. Can someone give me a hand with this?
Hi all,  I would be grateful if someone could advise on the scenario below.  I'm aware a Reason 9 error message is due to terminal closure, however the majority of my EAs have been removed from their charts whilst the terminal was open. I'm now unable to recompile the same EA strategies in...
Hello my friends, I want to build an indicator that show the close for the last X numberof candles only. Therefore, I wrote the attached indicator. //+------------------------------------------------------------------+//|                              Close Oscillator I.mq4...
  Various (1121   1 2 3 4 5 ... 112 113)
In case some of you have been wondering what was the "wonder" indicator picture posted a couple of times in the digital filters thread, and, since rules for advanced elite section are a bit different : It was a MACD of a Hodrick-Prescott filter. One version of that indicator (Hodrick-Prescott...
Hi, I'm looking at MT4 tick-data backtesting & optimizations that take hours/days for intraday scalping strategies. Is there any way to test these strategies much faster ? replacing CPU, outside software that can backtest etc... I have i7-4700HQ 8 cores not too bad but multithreading is useless in...
been asked for this a couple of times by pm,so here it is
Hi, i need help to get a number from a CSV file, and assign it to a variable,  this CSV file is very simple, it only have numbers and commas, int handle;int start()         {handle=FileOpen("filecsv", FILE_CSV | FILE_READ);double val = FileReadNumber(handle);// QUESTION- in my CSV  the numbers...
Hi, I wanted to know how should I include Ask price in offline hst files ( version 401 ) for mt4 ? I was testing the period converter script and when I open the generated offline timeframe history, It has the Ask/Bid lines and they are updating. but when I create a offline hst file for a...
What do I need to delete or reset to get the current build of metatrader to save all it current display settings so that when I close and open MT4 I still see all the toolbars and navigator windows setting I had when I closed MT4?
Hi, I am having trouble with my code which I use as an extra insurance to close any trades that are too far in the red (more than 7 pips). It seems like it closes trades almost immediately some times. It seems very unstable. I am wondering if a switch operator cannot handle more than one stipulation...
Help! Today i start mt4 and data folder changed to other place on startup! How do i change them all back to original place? Please see this picture:
Hi there As i am not a programmer, even though it s an easy "task",i will be grateful for you guys to help me. I need help for making the arrow appears on the chart above/below the candle everytime 2 of my indicators meet the requirements. I will speak in detail after i will be contacted. A simple...
Hi all,  I write a file in an expert with timestamp, OHLC and Volume obtaining something like: 1522101000,1.24556,1.24559,1.24546,1.24557,126 I would like to have something like: 2018.03.27 21:53:00,1.24556,1.24559,1.24546,1.24557,126 Here is the code: int handle_write = FileOpen( StringConcatenate(...
//+------------------------------------------------------------------+//|                                                      Querty2.mq4 |//|                        Copyright 2018, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
I'd like to use Script for reading information from external .csv files.  If I know how many files exist and the name of the files it is easy with the code below.  ...but how to modify the file for smooth working  - if I don't know how many files exist - if I don't know the name of the files  ? many...
Hello all!  I'm working on a EA that uses Money Management, I found this code very useful: //+--------------------------------------+//|Manejo de capital                     |//+--------------------------------------+double Lotaje(){ if (Activate_Money_Management == Use_Money_Management) //Si el...
Hello, I ask for your help to add an option to my indicator. it is an RSI multitimeframe alert indicator. I would like to add to the RSI, the indicator Awesome oscillator. currently I get alerts when for example M15 is 90 and M5 to 90 also but I wish that the alert is given only when the awesome...