MQL4 and MetaTrader 4 - page 774

To post a new topic, please log in or register
Hi, I was just wondering where the data feeds get stored? Is the history folder the only place that the data gets stored i.e. in the .hst files? Also, what is the latency of the updates of this data? As soon as it's downloaded it's in the file?
Hi Anyone so kind has the MT4 EA code for 4 EMA/ SMA crossover ?? thank u so much
Hi, I have writen an Expert Advisor with the following code lines: Print("Minute: ", TimeToStr(Time[0]), " LastMinuteTime: ", TimeToStr(lastMinuteTime));                        if(lastMinuteTime != Time[0])                        {Print("**");...
I find a intresting thing: if you drag your indicator to your metaeditor you will find like this : if you drag "macd" then print =MT4|INDICATOR!MACD drag "atr" will print =MT4|CUSTOMINDICATOR!ATR .....and so on this is very like DDE =MT4|Ask!EURUSD I don't kown how to use it,But I think it will...
Hi all ... fellow-sufferers ... first apologize for any errors you have to express myself in English because I'm not good ... I'm learning ... like asking someone to help you master the programming because I'm new and while I'm learning a lot, I'm white ... I robots are performed through a website...
i would like my expert to sound every time it puts a position or takes one out. how can i do that? is it possible? i have already tried the PlaySound("siren.wav") ; // form and the void PlaySound(string filename) form. neither one worked for me. they sound every time a there is a new tick. thanks...
Hi, I'm sorry to be asking this but believe me I've looked everywhere before asking and cannot find the answer that I need. Essentially I need to SOMEHOW be able to do this (my description is in laymans terms for clarity): In an indicator I need to somehow accomplish the following: IF (YEAR OF BAR)...
To optimize a MA cross strategy, is it necessary to use tick data for every step of the process to get the most accurate results or could testing with tick data be reserved for the final step in the process? For example, let's say the MA period is being optimized over a 6 year time span and we...
Hi Forum, Iam testing my EA visual. In this EA I use a custom indicator which is started by icustom. After stoping my EY it shows me hundrest of parallel subwindows. I dont think this is normal, in earlier times I never noticed such a behave. Sure, my indicator is called a lot of times, but I cant...
Hi, It is possible with metatrader to create charts of the US market hours only. For example. from 09:00 to 15:30? Thanks in advanced
Hi coders, Could someone help me out with a CSV fileread problem? I need the EA to open a CSV file and check it's data. In this CSV file there are many lines with (almost) all 4 entries (columns). The goal is to take the average of these columns. Data looks like this: 1.2,1.254,1.86,1.8693, 1.2424,0...
Hi, I 'am creating an EA that should buy or sell on a breakout of a fractal bar. Which level should I use? Do I have to use the high of the fractal bar + the spread of the currency pair? If I reverse when there is a signal in the other direction it is closing the open orders first, but the order in...
Does anyone have an implementation of Savitzky-Golay smoothing in MQL4?
#property copyright "test"#property link      "http://www.metaquotes.net"#property indicator_chart_window//+------------------------------------------------------------------+//| Custom indicator initialization function...
helo. i need your help. in the function start() i want to open just one order but my problem is when the condition is ok my EA open a lot of order. I will explain the condition: if the last close order is buy=========>then place an order the type sell_stop in the open price of the last close order...
Hi, everyone, So, I have a following situation, I'm making an EA for the M5 timeframe - and this is where i test it, but i want to be collecting some data from the M1 frame meanwhile... when I run it in test the iTime(NULL,1,0) gives me zero... but the iTime(NULL,5,0) give me the legit 5 minute...
hola plz i need your helps. i have an array withe a price of n(number) open orders and i want compare a new price withe this n price if it s different so open a new orders.the code that i use it s for(int i=0;i<=n;i++) { if(new_price=open[i]) ;...
Hi, Is there NO ONE in this entire forum who has written a simple Indicator or EA code for just creating and Alarm and Alert Window (with reference in the Alert window to the respective FX pair !! say: EUR/US$ SR or RES is hit) when one SR and RES line (moved by standard double click and drag by...
After playing around with EA's for a bit, and using the strategy tester mainly to see if the code was actually working I'd now like to progress onto the real why of the history center, and how to use it properly and I can't seem to find the answers or something comprehensive on it. OK I get...
How can i make an indicator on m5 appear on a m15 chart ?
Hello to all I have eliminated all errors and warnings : ) with exception of the "function definition unexpected" grrrrrr Have a look at the code and see if you can resolve. The problem is where the code shows the 'int deinit ()' Thanks very much for having a look. Regards Huckleberry //--- input...
Hello again (from the the latest 'up and coming' MetaTrader 4 expert)!!! LOL!!! Here's one for you. Would you say that 0 (as is ZERO) is equal to 0.000001??? Stupid question??? Read on!!! LOL!!! Take a look at the first chart. In the last (second) indicator on the chart I am 'forcing' the 'main' or...
Hi I have an EA with that uses FTP to get certain data, sometimes I find this error comes up and I have to restart the terminal to correct it, can anyone comment on the causes of this error:    int hSession = InternetOpenA(AGENT, INTERNET_OPEN_TYPE_DIRECT, "0", "0", 0);   if(hSession <= 0){...
Hi all, While backtesting on MT4, I found these missing 15 min data from 12 March 2010 22:45 to 25 March 2010 22.00 (Alpari MT4 Server Time). The history centre also showed no such data, same for 1min, 5min, 1hr and all other time frames. I have updated all the data from Metaquotes. Does anyone...
Hi, I'm new to MT4, and still learning to adapt with its utility....Hope through this forum can get help help to translate this script (from Thinkorswim platform) to MT4.... Tx in advance... Rgds, Gugun #---Star---t# declare upper; rec price = ((high + low) / 2); input alpha = 0.07; rec itrend =...
Hello, could anybody tell me if in MetaTrader 4, it is possible to add indicators to an indicatort itself? Meaning, if I use solely the ADX indicator, would it be possible to put a moving average on that same ADX indicator? ( so not in the price charts but on the indicator) Would be wonderfull if...
  Optimize Indicators ? (14   1 2)
Is it possible to Optimize Indicators? If so, how ?
I'm doing some VERY time sensitive trading and the info in the 'Experts' tab in the MT4 terminal window itself is lagged (up to 12 hours) and sometimes doesn't have the most recent info including transpired trades that I need VERY accurate time logs of. I'm finding that all other time sources of...
Hi: This may appear to be a stupid question but could I hear some feedback on what are respectable profit factors. Obviously anything over 1.0 is an accomplishment but at what point would you say is a good (safe for trading) PF? Thanks for any input. Also does anyone have any interest in...
Is the multiterminal has max_user limit?