Forum

How to Save Default profile using MQL4

Hi, I will appreciate it very much if you could advice on how to save Default profile using MQL4. The problem is that it looks like it is saved only when MT4 terminal exiting correctly, but when it crashed or so, Default profile is not saved. Thanks, Dmitry

Need help to debug indicator

Hi, I am making very simple indicator which just checks all MAs and draws 2 line for high and low values. But by some reasons, after initialization it draws wrong lines and only if I leave it runing for some time it starts to draw "correct lines". #property indicator_chart_window #property

MarketInfo of anothe pair

Hi, I have an expert which has the code bellow. I run it on EURUSD chart in Tester & in real time. However in both cases I get tickvalue=0 tickvalue = ((MarketInfo("NZDJPY",MODE_TICKVALUE)) )*0.01; Print("NZDJPY=",tickvalue); I can't believe that there is no access to another pair, I will appreciate

ShellExecuteA with multiple parameters

Hi, could you please advice me how to pass multiple parameters to ShellExecuteA function . The example bellow start sqlite3.exe, but does not pass any parameters ... #define SW_HIDE 0 #define SW_SHOWNORMAL 1 #define SW_NORMAL 1 #define SW_SHOWMINIMIZED 2 #define SW_SHOWMAXIMIZED 3 #define

How to pass array to a function

hi, I had working mql4 expert, and after a new build it stopped to work as expected. Current build is 765 Namely, array passed to a function has no values. Please see attached full code and of its execution output: void OnTick () { ArrayResize (listOfLiveMNumbers, 10 , 4 ); ArrayResize

How to pass array to a function

hi, I had working mql4 expert, and after a new build it stopped to work as expected. Current build is 765 Namely, array passed to a function has no values. Please see attached full code and of its execution output: test.mq4 void OnTick() { ArrayResize(listOfLiveMNumbers,10,4);

Please advice how to get out money from Alpari

Hi, I have an account with Alpari registered in 2006, I have paper agreement with Alpari stamped and signed by them. Same copy signed by me was provided by post to Alpari. Unfortunately I did not win any money only lost. Recently I decided to withdrawal last 2500 euro and they refused to withdrawal

MT4 Out of memory debugging

Hi, i use Metatrader 4, build 765. during the tester run it takes up to 4gb of memory and stops with error: 2015.02.06 22:31:33.339 2010.04.16 15:03 Testing pass stopped due to a critical error in the EA 2015.02.06 22:31:33.339 2010.04.16 15:03 Unhandled exception 0x0EEDFADE i checked array sizes

OrderSelect(1,SELECT_BY_POS,MODE_HISTORY) - returns order in the middle of the history, Build 482

Hello, I use "MT4, Build 482", today I found that function OrderSelect(1,SELECT_BY_POS,MODE_HISTORY) does not return the first order from the history, but returns order from the middle of the history. OrderSelect(1,SELECT_BY_POS,MODE_HISTORY); Print("First Order #= ",OrderTicket()); The Result is

How to find out if order was closed manually?

Hi I just wondering is there any way to find out if an order was closed manually or by an expert? Thanking you in advance