Forum

An IF/ELSE question

Below is a short piece of code as I try IF statement for the first time MQL4 - It takes the difference between he high and low of the range to determine the stop loss value in points. Currently, this is only running for specified pairs (but I will amend it to run on any pair at some point and work

Open terminal.exe with settings.ini via Windows Scheduling

We want to run a script overnight and I have got the terminal.exe to run via a schedule to open the relevant chart and then run the script. This script collates the require variables, but cannot place the orders. It reports an Uninit 0 error. If I run the script manually, it works normally. And one

Basic PIPS question

I am bound to be mocked here for something which should be so simple, but does anyone have a script or links to an article that can explain how to do this. I have written scripts based on calculations from the entry price, but just cannot get my head rounds the pips in MQL 4 I have the price I want

Timed running of a script

I have a script that collects information based on specific candles and ranges at the time the script runs, places the relevant orders and dumps to an external spreadsheet . However, I have to run manually at the fundamental news announcements which means being up at like 2.30 in the morning for the

Scripting Help

I am new to trying to script in MT4 - what good resources are the for this? I want to learn the basics first with some simple tasks like get the values of the previous candle or range of the previous 7 candles for example

Drive space issue

Good afternoon all - we are running the current version of MT4 and are encountering a problem with drive C running out of space when running a back test on AUDNZD each time. This generates a 384GB file in the USER/####/App Date/roaming/MetaQuoates/Terminal folder each time. Within this folder are a

Does mt4 use multiple cores?

I have been running this on two different computers -a laptop with i7 processor and an 8 core AMD desktop - but neither uses all the processing power to run. For example, the AMD box only ever reaches 13% utilisation on the processors. Is this normal? I have unmarked all the processor cores via the

Charts change colour each time MT4 restarts

We have had some issues (as per previous post) and the MT4 platform is not holding the changes made to the graph colours. These were changed to more user friendly colours, then the data loader run to update the data, and the colours all reverted back to the original settings. It was not doing this

Metatrader stops back testing upon sleep mode

When using metatrader this morning, it had been running for 12 hours and had two hours left, but the lid in the laptop was pushed down too far and it went into sleep mode. When the laptop was woken back up a minute later, it reported that the backrest was completed, but had nor completed the final

Not completing all passes

We have found on the laptop we are running MT4 on currently that not all passes are being completed (see the attached screenshots) and this is happening every time now. Any ideas how we can fix this so it will complete all passes? Many thanks in advance