MQL4 and MetaTrader 4 - page 616

To post a new topic, please log in or register
string look1, look2, symarray[5];symarray[5] = {"EURUSD","EURJPY","GBPUSD","USDCHF","JPYGBP"};ArraySetAsSeries(symarray,false); // index starting 0 at leftlook1=symarray[0];look2=symarray[1];Print("symarray 2 elements 0 = "+look1+" and 1= "+look2); Simple eh! except that both elements print null!!!!...
Hello, Is it possible to move the time backwards by some increment (eg tick, candle, etc.) in the Strategy Tester? Or to start the tester at a specific time of day? Thanks.
Hi, can someone tell me if it is possible to download the entire archive of EA's from code-base in one go ? For example from an ftp folder. Regards Rob
HI, I want to be able place 9 currency pair rates inside array specified to that pair. Compiles successfully without errors, so there is no syntax errors in the code. But In Terminal when I am launching EA in message window, it shows this kind off error: 2013.08.08 21:22:47     multi_chart GBPUSD...
Hi there, I am pretty new to MetaTrader 4 and are about to program a simply entry order. But everytime I compile I get these errors: '{' - expression on global scope not allowed '\end_of_program' no function defined my code is: {   int ticket;   double Start_time = 0.00;      if( TimeCurrent() ==...
I have a script to export quotes but it only works if I open a chart. Can't I modify so that I'm not obliged to open a chart first ? Excerpt of source code : FileWrite(handle, "Time;Open;High;Low;Close;Volume");// data recordingfor(int i=iBars(symbol,theperiod); i>=0; i--) {datetime t =...
hi everyone please share customized alarm for (QQE ADV) indicator in MT4 when RSI line crossed signal line and 50 line at same direct (buy or sell) thanks alot.
In Expert window I only get "Print Tick EURUSD,M1: loaded successfully" nothing more whereas I did ask to print every tick. There's no error. I have no indicator in chart just this expert, no other charts open. int start()  {                           int i;                  string symbol;...
I have written some basic code to incorporate into my EA, where by, if the server time is out of my trading time frame, no trades will searched for, let alone any positions be placed. I have a few questions around this: 1) Can this be properly analysed via Strategy Tester, or is that impossible...
I created this EA using Expert Advisor Builder (http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/index.html). This EA uses parts of the GMMA indicator. It just utilizes 7 of the 12 moving averages for simplicity. It opens one position when conditions are met and Trailing Stops takes care of the...
I have the latest update to MT4. My broker is IBFX and they are useless in helping me. I have windows 8. After the last update, when I completely close MT4 I lose all my settings. What I mean is when I open MT$ from being closed down I have to click on "view" and toolbars and get all my toolbars...
After having been at Forex for awhile now, both coding and trading, I'm beginning to suspect that retail traders have almost no chance of being profitable consistently. Even when you find an EA that has perfect backtest results you find something like it utilizes no stoploss. Even a pure...
In my expert start() I have          handle = FileOpen(filename, FILE_CSV|FILE_WRITE, ";");                  if(handle > 0)         {            FileSeek(handle, 0, SEEK_END);            FileWrite(handle, quote);            FileClose(handle);         }   But I got only one line in my file...
plz i have in forex 10  years  and im serhing the best indecator  on frame 1 min for i entry  full margin   im waiat from hellp    thank uuuuuuuuuuuuuuuuuu 
MirTD
I have a problem regarding counting the number of bars that satisfied certain conditions.. conditions are 1. ema(C,8) cross down ema(C,13) in the previous bar. 2.ema(C,8) cross above ema(C,13) M number of bars back before the cross in 1. 3.ema(C,8) cross down ema(C,13) N number of bars back before...
int start(){..ObjectCreate ("Point"+Time[i],OBJ_TEXT,0,Time[i],Close[i]);ObjectSet("Point"+Time[i], OBJPROP_TIMEFRAMES, OBJ_PERIOD_H4);ObjectSetText("Point"+Time[i],"Cross"+Close[i], 10, "Times New Roman", White);return(0);}int deinit(){ObjectsDeleteAll(0,OBJ_TEXT); // It will delete all OBJ_TEXT...
Shall i use NULL instead of Currency name? I tried as NULL instead of EURUSD,but results are "0"? int    digits=MarketInfo("EURUSD",MODE_DIGITS);
Hi, are there any MT4 plugin for MT5 platform, so that I can use all my MT4 EA/indicators on the new MT5 platform?
Hi, I heard in somwhere that this indicator is very useful. The probleme is that there is an error in his code. :( I am not a coder but i know some programming so i checked and i think it is not a big deal so can some one please give it a look and try to fix it ?
Hi: I have just met a problem of the custom indicator data buffer synchronization problem. I made an indicator called ML_iDayATR , which is used in the timeframe smaller than D1. This indicator plot the day ATR value in the chart like H4, H1. The first run of ML_iDayATR indicator is very slow. I...
Hi Please excuse my ignorance... I am currently testing a strategy that I have build in MT4, and it seems to be very profitable in back testing and also looks pretty good in demo account testing. I am pretty close to opening a real account and making a deposit to beginning live trading, but the...
55839 - in this post, I learned how to open an order at the start of a bar. Am using this with great success. What I need to know now, is how to delay opening the order for X no. of minutes after the opening of the bar. Example: On the 4 hour chart, open an order at the opening of the 4 hour bar...
Somebody Please help, I don't want my ea to trade between 15.00 and 20.00 How should I code this and add it to my ea? Your help is highly needed. Thanks.
I am trying to delete pending orders but the pending orders won't delete. The EA  is eg: When the Buy criteria to "Open" is meet place a Buy at Market and place a  pending order. When the Buy criteria to "close" is meet then close the open Buys and pending order should be closed. Short Trades same...
My EA is set to EachTick, but my objects does not update values/location when orders gets opend or closed. my code structure as following: int init(){WindowRedraw();ObjectDelete ("MyLine");}int deinit(){WindowRedraw();ObjectDelete ("MyLine");}int start(){WindowRedraw();ObjectCreate ( "MyLine",...
Hi, If I draw a horizontal line on W1 and switch to anyother time frame it disappears, on the time frame I switched to and also W1 - this is reallllly annoying... Any ideas if this can be done? Thanks mcia
Hi, it took me hours today but as long as I had Symbol() in the deinit() function (in order to delete a market specific file) my terminal (build 509) seems to run into an endless loop with max cpu-time consuming - anybody who can confirm? As soon as I replaced Symbol() by a global var SYM set at...
Hi there, i recently restarted programming MQL4 and made myself a Trailing Stop EA. Sadly the following version, which shall "trail" the Stop Loss depending on the Highs and Lows of the 3 most recent closed candles does absolutely nothing when activated: int init(){   return (0);}int deinit(){...
Hey All :) New quicker question this time! How can I tell "Close[1]" to be focusing on the 4 hour time frame, irrespective of the time frame I am currently looking at? Close[1] > Hour4_60 // EMA -//- I want that Close[1] to be the close of a 4 hour bar? Many thanks as usual!
Is it possible to Create Specific color for some Print statements that show in the Experts tab ? To highlight some print statement to find easily. Thanks