Forum

No access to the mql5.com domain

For unknown reasons I have to (normal) access to the mql5.com domain. This results in a 403 error. I'm not aware of any wrongdoing on my part, such as scamming, spamming or mass downloading. Things I've tried: clearing cookies/cache, using multiple browsers/devices, changing my dns settings and

Unable to store Trade Settings in Strategy Tester (bug?)

Hello, In ' Strategy Tester ' > ' Trade Settings ' > ' Margins ' I can adjust ' Unrealized profit ' from ' use unrealizez profit/loss ' to ' do not use unrealized profit/loss '. However, after pressing 'OK' this option switches back to its default setting. Is this a known issue/bug or am I doing

Fetching the execution price from a limit order

Hey guys, I've tried multiple ways to fetch the execution price from a limit order in demo mode, but all of them failed. Here's my code: #include <Trade\Trade.mqh> CTrade tradeLong; int OnInit () { tradeLong.BuyLimit( 0.01 , NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits )

Closing price is not always between the high-low range, how come?

Greatings coders, I've found out that the first closing price from a given period isn't always between the high-low price range of that period. Can someone tell me if there's anything wrong with my sample code? Thanks for any feedback! Jim double PriceLow, PriceHigh; int start() { if ( Bars < 60)

Writing data to a certain line in a file

Hello MQL4 coders, Unfortunately the FileWrite() function lacks the flexibility to define the line number of the given file. Is there a way to write to / overwrite only specific lines in a file without overwriting all other lines or time consuming loops? Thanks for any suggestions or sample code

Arrays with the double& declaration, how to make them global?

Greatings MQL4 coders and a happy new year!, My current AE has a function like this: double FunctionName( double & Array1[], double & Array2[], double & Array3[]) Because of the use of that ampersand char (needed because their values are changed within this function) it seems impossible to declare

Function with adjustable declared arrays result in a "incompatible types" error

Greetings MQL4 coders, First of all, to make this posting more readable I strongly simplified the provided sample code. My EA has a function with 16 array inputs with a variable lenght, initialized by the ArrayResize function . The values from these arrays will be modified during this function call

MT4 build 226, report & screenshot of 'read memory' error

update: it seems impossible to upload a screenshot, I tried a png and jpg version but no luck There has been a critical error Time : 2010.10.15 13:24 Program : Client Terminal Version : 4.00 (build: 226, 24 Mar 2009) OS : Windows 2000 Professional 5.0 Service Pack 4 (Build 2195) Processors : 2 x X86

Random values in a loop

Greatings MQL coders, I would like to generate multiple unique random numbers between 0 and 1 within a loop. The problem is that every loop returns the same range of 'random' values (yes, I know this is because the MathSrand uses the same iteration id, over and over again, but I know no better