Specification
I want to convert the below EA from MT4 to MT5
#property copyright "Aleksey Semenov 2012-2022"
#property link "https://www.mql5.com/ru/users/cemen4yk"
#property version "3.5"
#property strict
//#resource "\\Indicators\\KD and Reversal Tabs 3.5.ex4"
//#resource "\\Indicators\\VSA_Relative_Volume.ex4";
//#property description "ind SM_TDI.ex4 called from ind folder"
//#resource "\\Indicators\\vsa-moving-average.ex4"
#resource "\\Indicators\\FFC.ex4"
#define BullColor Lime
#define BearColor Red
#define NONE 0
#define DOWN -1
#define UP 1
string EAversion = "3.5";
enum mode1
{
STNDRT = 0,//Fix TP + manuall
//MATP = 1,//MA TP + TP multiplier
PROGRES = 2 //Auto TP in $/pips
};
enum mode2
{
NO_martin = 0,// martingale off
ARF_martin = 1,// arithmetic progression
GEO_martin = 2,// geometric progression
SMRT_martin = 3 // smart progression
};
enum mode4
{
BAR = 0,// BAR
MINUTES = 1 // Minutes
};
enum mode3
{
OFF = 0,// trail OFF
PipS = 1,// standard trail
Minutes = 2,// trail by minutes
};
enum mode5
{
AutolotOFF = 0,// Autolot OFF
AutolotValue = 1,// Autolot fix in $
AutolotPercent = 2// Autolot in percent
};
enum mode6
{
AverPips = 0,// averaging in pips
AverATR = 1// averaging in ATR
};
enum mode11
{
NOT_USE = 0,// NOT USE
BUYSELL = 1,// BUY/SELL
};
enum mode12
{
SLSstoploss = 0,// Standart fix SL fix TP
ADRstoploss = 1,// Auto SL/TP ATR
//ENGstoploss = 2,// Auto SL/TP Engulfing look back
CANstoploss = 3,// Auto SL/TP Candles look back
RECstoploss = 4,// Auto SL/TP from Rectangle
};
enum mode13
{
Not_Close = 0,// Not use
StoplossCC = 1,// SL/TP Close
TakeprofitCC = 2//Profit only Close
};
enum mode14
{
EAUSE = 0,//Expert Advisor
SIGUSE = 1,// Signal Alert only
};
enum mode15
{
NotUseDay = 0,//NOT USE
BullBear = 1,//Bull-Buy/Bear-Sell
};
enum mode16
{
Volnotuse = -1,//NOT USE
Higher = 0,//>
Lower = 1,//<
};
enum mode17
{
Buff2 = 2,// UP Zone
Buff3 = 3,// UP Zone + 1 Zone below
Buff5 = 5,// UP Zone + 2 Zone below
};
enu