Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1246

To post a new topic, please log in or register
It really exist ?
Metaquotes, Take a look at an output of my log file during today's NFP. All you can see is tradecontext is busy. Can you program something that does nothang orders up this way? A few of my buy stop orders did not get triggered becauseby the time the orders were placed the price had too close to the...
  Magic Number (6)
HI ppl, Can someone help me please put a magic number in my EA.. is because for only one chart the EA works well .. but when i try to use more than one chart for the ea the ea don't work well. Can someone tell me what is the settings i have to put in the EA Thanks Fast_cris
Is there a way to find server's timezone in MQL? So far I couldn't ifnd a way todo this. I know that if I "tell" my program what my own timezone is (i.e. by meansof an input parameter, e.g. extern int MyTimeZone=8 for GMT +8) then I can comparelocal time to server time and calculate server's time...
The screenshots function is documentated the following way bool WindowScreenShot(string filename, int size_x, int size_y, int start_bar=-1, int chart_scale=-1, intchart_mode=-1)but here I need to use the current scale of screenshoted window. So the questionhow to get it in the program this one of...
Hi, Dooes anyone know of any reason that my stoploss and takeprofit are no longer working?I have been testing this a system for weeks and all of a sudden it stopped trading and the log indicates error 130 which I researched as improper stoplossand takeprofit settings. If I remove the stoploss and...
May be this question is stupid but I've found no answer in all helps. The questionis because there is a menu point Add breakpoint. But I've not understand how canI use these breakpoints. If I've just add a breakpoint in MetaEditor and then runthe script from MetaTrader the breakpoint makes no effect...
extern double JumpWidth_Percen=0.25; string Trend,Buy,Sell,TradeComm; double Close1,Close2,Close3,Close4,Close5,Close6,Open1,Open2,Open3,Open4,Open5,Open6, Fast1,Fast2,Fast3,Fast4,Fast5,Fast6,Slow1,Slow2,Slow3,Slow4,Slow5,Slow6, Average,FastW,Currency_momentumA...
Hi Rosh, this is related to the bug I described here: 'A couple questions from BugReport' I read the "Azbuka..." article and your explanations on the russian forum('AccountStopout.. : опубликуйте пожалуста более подробную документацию'), thank you - these were actually quite useful and now I...
Take a look at the chart. I downloaded data from FXDD's databank and ran the backtests.I had upgraded my MT4 to build 202 and now the back test results are at best GARBAGE.Is this a bug? MetaTrader, please respond.
Metastock code v1=Square(StdDev(PRICE_CLOSE,10)); MQL4 code v1=StdDev(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,0); what is Square ?
Can anyone tell me how to program my EA to select the last trade that closed anddetermine if it closed by hitting its Stop Loss or closed by hitting its Take Profit(that is he only way trades close with my EA). I know the OrderSelect function is useful for this, but I don't know exactly how to...
Hi forum! I started learning MQL4 now but it's not easy at the beginning. I am not new toprogramming (I also program VB, VBA) but the syntax and the declaration of variablesseem to be pretty complex. Therefore I want to know if somebody could give me avery short code just for my orientation. The...
if I have two times in this format 1167736680 from functions in MT4 Time() or OrderOpenTime(). I want to calculate Hours between two datetime numbers as above, how is that done?
Please see the attached EURUSD charts for M1 and H1 time periods attached. Theyshow two different quotes. I think M1 is not updating while H1 is. It is from Alpari'splatform. Why is things so screwed up when we are trading involves real money onthe line?
New MetaTrader 4 Client Terminal Build 203 has been published: In object FiboFan, fixed drawing considering close anchoring points.Tester: Added check for optimization pass counter overflow.Tester: Optimized usage of memory when generating a testing sequence.Tester: Optimized usage of memory when...
i am a chinese. i am learning forex trading. but i don't write MQL4-indicator. who can create the follows as a MQL4-indicator for me. i will thank very much. can make friend? N:=BARS for SINCE(*Parameter*); VARL:=LOWEST(LOW,N); VARH:=HIGHEST(HIGH,N); VK:=VARH-VARL; (LINE1) K1: VARL+0.1*VK;...
Peter Goodier 09.03.07 05:39 FROM peter_zyn 9th Mar 2007 I need a simple indicator that places the results of an algorithm calculated onebar at a time, 5 bars ahead. Consequently the current bars will place its results 5 bars into the future. Example bar Algorithm (HIGH[0] - LOW[15] +...
I would like insert the control point model in my expert advisor. Have you the algorithm to determinate the control point, the explanation of metaquoteis not clear, perhaps it's a secret algorithm :) Thanks Fabien_math
This is to perform some function that MQL4 does not have.
I need to know what is the min. requirement for Virtual Private Server to run ExpertAdvisor ? (Memory , speed needed,...) Thanks.
  Spread monitoring (20   1 2)
Is there an indicator, script, or ea that monitors the price feed and alerts when the spread on a designated pair reaches x amount? If there isn't, can one be made?
Hello together, a question for understanding. I'm using the iMA(NULL,0,6,0,MODE_SMA,PRICE_CLOSE,0) on a 5 minutes chart. During the bar is in process, how is the value calculatedbecause the close price is not read yet? Will it use the actual price? And whatis the behaviour with PRICE_WEIGHTED....
It just popped into my head!!! Is it possible to include option on MT to select a directory for experts, profiles,templates etc. This way, if several copies of MT are running, there is no needto copy and recopy and constantly synchronize experts, indicators, profiles, etc.One can even run the same...
the following: Print(WindowExpertName()," ",WindowFind(WindowExpertName())); returns: 2007.03.06 13:34:52 MACD_Colored_v102 EURUSD,H4: MACD_Colored_v102 -1 Where is a window number????
My EA Does Not Work , Some time it stop working untill I comile it again or removeit and attach it again can any one know how can i solve this problem ? Thank you
Please help me with this problem: It looks like the slippage value I am using for a BUYSTOP trade is missed by 2pips: BUYSTOP is at 1.9737 SLIPPAGE is 2 pips (see #define SLIPPAGE_ON_ENTER) EXECUTION happens at 1.9734. , which is not Ask+2pips but Ask+4pips I am running test in "Open Prices...
I am looking for a code for a percentage step stop i.e. I have an EA that has a4 percentage profit stop I would like then for a 1% step to kick in so every 1%the stop is moved. I have been trying to do this myself but I'm not having muchluck. Cheers
Is there a way to do this? I am a mql4 newbie. I have a system that trades on the M15, H1 and H4 that I want to automate. Runson the M15 but I want it to take into account indicator data from the H1 and H4time frames. Any help or direction appreciated. Luperon