Job finished
Specification
I would like a simple EA progamar.
Deputy template parameters that would use the EA.
//+------------------------------------------------------------------+ //| EA_Step_v1.00.mq4 | //| | //| | //+------------------------------------------------------------------+ #property copyright "" #property link "" #property version "1.00" #property strict //*********************************************************************************************************************************** //*********************************************************************************************************************************** extern string ExpertName = "=== EA_Step_v1.00 ==="; extern string GeneralParameters = "===== GENERAL PARAMETERS ====="; extern int Magic = 11111; extern int MaxSpreadPermitted = 2; extern int MaxSlippage = 2; extern bool EcnBroker = true; // This determinates if the orders are virtual or not!!! extern int NumberOfTry = 10; extern int MaximumVolumeSize = 10; extern string CustomComment = "Setting 1"; //*********************************************************************************************************************************** //*********************************************************************************************************************************** extern string MoneyManagement = "===== MONEY MANAGEMENT ====="; extern int MoneyManagType = 0; extern string MMT_0 = "MMT = 0, Fixed Volume"; extern string MMT_1 = "MMT = 1, % Account Balance"; extern double LotSize = 0.01; extern double RiskAccountBalance = 15; extern string Martingale = "===== MARTINGALE ====="; extern int MartingaleType = 0; extern string MGT_0 = "MGT = 0, NO Martingale"; extern string MGT_2 = "MGT = 2, Factor Multiplication"; extern double Martingale_MultiplyOnLoss = 2.0; //*********************************************************************************************************************************** //*********************************************************************************************************************************** extern string Positions = "===== POSITIONS SETTINGS ====="; extern double TakeProfit = 50; extern double StopLoss = 30; extern int TrailingMode = 0; extern string TM_0 = "TM = 0, Off"; extern string TM_1 = "TM = 1, -- Mode 1 -- BreakEven & Trailing Stop"; extern string Mode1 = "----- MODE 1 -----"; extern double BreakEvenStartPips = 15; extern double BreakEvenPipsLockIn = 5; extern double TrailingStopStarPips = 20; extern double TrailingStopPips = 15; extern double TrailingStopStepPips = 5; //*********************************************************************************************************************************** //*********************************************************************************************************************************** extern string IndicatorsSettings = "===== INDICATORS SETTINGS====="; extern string _Indicator = "===== StepMA ====="; extern int OmaLength = 25; extern double OmaSpeed = 8.0; extern bool OmaAdaptive = true; extern double Sensitivity = 5; // Sensivity Factor extern double StepSize = 10; // Constant Step Size extern int Shift = 0; // OShify extern bool HighLow = false; // High/Low Mode Switch (more sensitive) extern bool alertsOn = false; extern bool alertsOnCurrent = true; extern bool alertsMessage = true; extern bool alertsNotification = false; extern bool alertsSound = false; extern bool alertsEmail = false; //*********************************************************************************************************************************** //*********************************************************************************************************************************** extern string Alerts = "===== ALERTS ====="; extern bool AlertEnable = true; //*********************************************************************************************************************************** //***********************************************************************************************************************************
The EA broker would have to work in 4 digits and 5 digits equally.
Operations would be launched at the end of bar.
If we bought and a Sell signal emerges, we would close the Buy and would open a sale and otherwise equal, if we Sell and a buy signal arises, we would close the sale and would open a Buy.
The EA will advise us by message of any errors contained in the library errors MT4.
If this active:
TM = 1, -- Mode 1 -- BreakEven & Trailing Stop
extern string TM_1 = "TM = 1, -- Mode 1 -- BreakEven & Trailing Stop"; extern string Mode1 = "----- MODE 1 -----"; extern double BreakEvenStartPips = 15; extern double BreakEvenPipsLockIn = 5; extern double TrailingStopStarPips = 20; extern double TrailingStopPips = 15; extern double TrailingStopStepPips = 5;
Any parameter of those listed here may have value 0, implying that this is disabled.
If all parameters have some value, the EA will make case BreakEven first and from there moved to BreakEven Stop Loss, Trailing from that point will be activated.
If BreakEven is 0, the only work Trailing.
If Trailing Stop is 0 only work the BreakEven.
The EA will catch signals only an indicator and will do so as represented in the picture:
Any questions or detailed performance and parameters of EA, I will discuss with the selected developer.
Kind regards.
Hermo.