Codes

Multi-Currency Indicator with USD reference for MetaTrader 5

The indicator is designed to show how the seven major currencies have moved against the US dollar

Difference of Two Moving Averages for MetaTrader 5

An Expert Advisor based on the difference of two moving averages

Forum

Metatrader open demo account problem.

Whilst there are three options when attempting to open a Metatrader demo account it is not possible to select the first or second. Is the system broken

REPORT GENERATOR

In an attempt to gain better understanding of grid strategies I programmed a simple grid EA and then tried to make sense of the Strategy tester Report output in Excel. For the purpose of experiment I used a lot size of 0.1 and checked for execution without errors. Where there is a buy one lot

Time Function

Hi, i'm struggling with time function. What i need to do is quite basic: need to check if current time is between 5.55 am and 6.10 am had a look at all the functions, but still bit puzzled. thanks

Basic question

Hi, suppose i create and compile a new expert advisor. Now in the strategy tester i see i can test it. i also see you need to specify a symbol. when the test is done how do i put it in real action ? also how do i apply it to all symbols ? thanks

How to close all open position at a certain time

Hi, i'm new to this forum. I'd like to set up a simple script that takes all the open positions on my account at a certain time (let's say 7 a.m.) and close oll of them at the BID price ? Thanks, Luca

Unknown Retcode 10005

I run MT5 on two different machines. Since yesterday the EA on one machine now generates the following message: CTrade::PositionOpen: instant sell 10.84 EURUSD at 1.36664 sl: 1.37024 tp: 1.36254 [unknown retcode 10005]. I have tried everything I know even a complete re-installation of MT5 with the

PlotIndexSetInteger concern

The term in my EA 'if(CopyBuffer(handle,1,0,10,zm)<0)' works as expected and returns valid array variables. When I attempt to shift the plot in my custom indicator using 'PlotIndexSetInteger(1,PLOT_SHIFT,10)' to show a future prediction, the term in my EA returns unitialised array values. Any ideas