Forum

Starting MT5 and enabling MT5 agents on a distant Linux server, only with command line (no GUI)

Hello, I installed MT5 on a distant Ubuntu server using this https://www.mql5.com/fr/articles/625 , I don't have any GUI access, only SSH Is it possible to start MT5 on the server without any GUI and to also start Metatrader Agents by default ? I would like to use these agents from my local

In Strategy Tester, how to know which "Out" order correspond to which "In" order ?

Hello, See the results of a Strategy testing below: If we consider Order number 2 for instance (of type "sell", and direction "in", executed at 14:00:00), how do I know to which "Out" order it is attached ?I mean, this "In" order is at some point closed by a sell position with a direction "out"

Is it common to Buy Above and Sell Bellow with Bollinger bands ?

Hello, On some EA that I use, there is the option of Buying Above and Selling Bellow w.t.r Bollinger bands , which is, from what I understand, the opposite of the normal use of the Bollinger bands. Here it is in action on GBPUSD M15 The first trade is a short and the two last are longs. It seems to

'ENUM_MARGIN_LOTS_MODE' - enumeration cannot have modifiers RSI_EA.mq5 16 12

Hi, In my EA I want to have an input which can be chosen from MARGIN_LOTS_ALL , MARGIN_LOTS_CALL or MARGIN_LOTS_STOPOUT I have tried : input enum ENUM_MARGIN_LOTS_MODE MARGIN_LOTS_MODE = MARGIN_LOTS_ALL; But I get: 'ENUM_MARGIN_LOTS_MODE' - enumeration cannot have modifiers RSI_EA.mq5 16 12

Strategy Tester : no trades at all

Hello, I have tested this code on a live session and it 'works' well (it opens trades): #property copyright "Aymeric" #property link " https://www.mysite.com " #property version "1.00" #property strict #include <Trade\Trade.mqh> CTrade trade; input int RSI_Period = 14 ; input double

In strategy tester input section, how to have the Value / Start / Step and Stop completly reset and updated wrt to the EA code ?

Hello, In my EA I have updated this code: input double OverBought = 92.51 ; input double OverSold = 7.49 ; then compiled it. But I still get the same values set in the Strategy Tester Input section: Any idea on how to solve this ? Thanks

detecting when a trend is ending ?

Hello, I am implementing an EA based on smooth moving averages (the four colored lines below) and I want to have another indicator to prevent to enter (long) when price starts to falter (i.e. to slow down, to be "out of breath" etc.) Best way to illustrate this is with a chart: So, is there an

In strategy tester, Trade section, what do the two columns of Price correspond to and the profit column ?

Hello, I could not find the information about this in the documentation, my question is, what do the following columns correspond to exactly

custom indicator color, not working

Hi, I want to have a Custom moving average with a specific color, following this post https://www.mql5.com/en/code/19864 I have done the following: #include <Trade/Trade.mqh> CTrade trade; int handle_iMA_First; int OnInit () { handle_iMA_First= iCustom ( _Symbol , PERIOD_CURRENT , "Custom Moving

How to display indicator from EA code and have this indicator merged with chart

Hello, Here is what I have done so far: #include <Trade/Trade.mqh> CTrade trade; int maHandle; int OnInit () { maHandle= iMA ( _Symbol , PERIOD_CURRENT , 21, 0, MODE_SMMA, PRICE_CLOSE ); int subwindow=( int ) ChartGetInteger ( 0 , CHART_WINDOWS_TOTAL ); ChartIndicatorAdd ( 0