Download MetaTrader 5

MQL4 and MetaTrader 4 - page 367

To post a new topic, please log in or register
I had read that multi-currency back-testing was not possible on MT4 so I tried to translate my currency to mql5, it was an interesting process however, mid way I found out that hedging was not allowed due to some sort of NFA change in regulations, I'm in the UK so this doesn't really apply to me and...
Hi,my EA stops after 2014.03.25 12:04:50.800 Access violation read to 0x0ABB5000 in 'C:\Users\cas\Documents\MT4\mt1\MQL4\Experts\myEA.ex4' This EA is installed by a script 8 times. 7 time without any problem but the last crashes with the a.m. error (no line??) It reads it parameters from an...
Alert(SymbolInfoString("EURUSD", SYMBOL_PATH)); I expected this return "MajorFX" folder but it returns a blank string. Same for all symbols.
Dear Community, how can I get the value ofthe last line in the CSV file? I have tried to write this code, but it returnsme not the correct value. I have found some older post in the forum, but they don’thelp me. Thank you very much!    int file_handle2=FileOpen(InpDirectoryName+"//"+FileName...
I decided to test my EA against some indexes and I noticed the movements were quite strong when compared with currencies. One notably volatile index is Nikkei, the market itself was relentlessly choppy and each movement had a sizable effect on capital. Is this typical of the index are is this a data...
i need help for extract my archives logs from my iPhone 5 i dont know how to make it can you help me? thanks
Hello, Would like to know is it possible to make custom indicator based on these calculations: Buf_0[i]=(((iADX("EURUSD",PERIOD_M1,28,PRICE_CLOSE,MODE_PLUSDI,(i-5)))-(iADX("EURUSD",PERIOD_M1,28,PRICE_CLOSE,MODE_MINUSDI,(i-5))))-((iADX("EURUSD",PERIOD_M1,28,PRICE_CLOSE,MODE_PLUSDI,i))-(iADX("EURUSD"...
I've read several threads re: OrderCloseBy and I'm sorry to be thick about this but I still don't get it. And I have found the documentation to be no help beyond syntax. - forex.com at least, does not allow "hedging", opposite positions for the same pair in the same account. If they see both, they...
Hi, Today i opened my MT4 platforms and i'm getting this pop up alert that says "Unable to open log file" How do i fix this? Thanks!
Hi to all. I am a newbie to this forum. But have been stumbling through trading since 2007. I have had a few ea's programmed for me in the past and have made a few simple ones myself. I've had a go at combining elements and the ea's have worked in the past. I have been trading my strategy on 4...
HI,Can some solve my problem please find the attach .Actaully what i m trying to do is to print the horizontal line and if you see the image it does print the line but i want to print the line on the same point when cross occur and another thing and also i don't want lines when there is no cross if...
Is it possible to have my EA change the Lot Size (automatically) in the small Quick Trade Panel in the upper left corner of the chart? And if so: how? Thanks
i want to make EA i want to ask if commenct can make a variable like bool... so if open position i buy and if i put coment == true then it will close position....
  Cant print (1)
Hi, Something strange happen to me: I cant make any print from my Expert, and this just happen now. I have na Indicator, and that one runs normally. Any help ? Thanks
Buenos días, acabo de realizar una actualización de MetaTrader 4 solicitada por Metaquotes y luego de realizar esta actualización, las plantillas que tenía grabadas nio me apaarecen cuando solicito cargar una plantilla, e incluso cuando grabo una nueva plantilla, tampoco me aparece cuando solicito...
Hi all, I'm facing the following problem: when orders are opened/closed the arrows and lines are drawn above the label objects I've created (see attachment). I cannot find a way to specify that the arrows must be in the back while the label must be in front. I'm using standard functions both for...
Hey guys, I am new in trading and just started to make an Expert Adviser for automatic trading. So maybe there is a big mistake because it comes to NO trade :/ you can see the code downside: //+------------------------------------------------------------------+//| Pivot_Durchbruch_M10.mq4 |//|...
I hav an EA, part of which works when it comes across a manually drawn horizontal line, the issue I have is that these lines I redraw manually every week and when it comes to back testing I can't seem to get the lines to work in strategy tester. What I do, do is save the chart with the horizontal...
My EA places only market orders. The text "SELLSTOP" and "BUYSTOP" don't appear anywhere in it. The trade window shows only "buy" and "sell" orders since I never sent anything else. Yet OrderType() in MQL4 returns them as being types 4 and 5, BUYSTOP and SELLSTOP. OrderTicket() returns the same...
I may well have the wrong end of the stick on this, so please bear with me. Prior to build 600, I used: #property indicator_buffers to establish which buffers I wanted drawn visually (or added in to the data window). And down in Init() I used: IndicatorBuffers(); to include all the buffers,...
i want a peace of code in an indicator that does the following : search in the history of a currency pair for the open price (bid) that is equal to the current open price (bid). How best can this be done? Thank yu.
I have an old indicator source code, but when I try to recompile with build +600 I obtain the following errors: 'Close' - constant variable cannot be passed as reference HurstExponent.mq4 228 50 'Open' - constant variable cannot be passed as reference HurstExponent.mq4 229 50...
Hi all, I would like to start writing my own EA and learn the MQL4 language. Can somone point me to a good starting point to learn the syntax? thanks fxmsuk
If my EA is stopped I want it to delete all its global variables! If I start the debugger the glob.vars are set but nothing is deleted if I stop the debugger: void OnDeinit( const int reason ){ delMyGlobs(); }void delMyGlobs(){        Print("DeInit called by: "...
Hi Coders! I used Windows 7 x64. I installed the MetaTrader-s to the Y:\ drive. All Data and config folders installed to the installation directory without portable mode. There were no directories or files placed to the Roamin folder. This was great. I changed the operating system to Windows 8.1...
I would like to know if anyone has a period converter that will allow Renko Charts with build 604? The existing Period Converter custom indicator for previous builds does not seem to work with build 604.
I defined a struct: struct TradeStr { int Cnt;        string TrdCat, Symb, Descr, Full, OrdCmt;}; and in my EA I define a tmp-var of that: TradeStr tmpStr; If now the debugger is on its step by step mode comes to that line it jumps at the line of the definition of that struct and seems to to...
I have been trying to make a 'Trailing Stop' function with Break Even. The Break Even part is working but the Trailing Stop part isn't working. Not understanding where I am making the 'Mistakes'? extern double TrailingStop  =7;extern double TrailingStep  =2;extern double BreakEvenStart=5;extern...
Доброй ночи. В индикаторе есть набор входных параметров, которые задаются декларацией типа input int a=1, b=2; input bool c=0; в "шапке" индикатора. При этом в панели, появляющейся при инициализации индикатора, параметры показываются последовательными строками. Если параметров много, хотелось бы...
How to get rollover info through MQL? Is there any default function to do so?