LIP/Arch/RU/LIP_v01.005/Include/LCL_Int_5_v1.005.mqh

139 lines
23 KiB
MQL5
Raw Permalink Normal View History

2025-05-30 15:03:51 +02:00
<EFBFBD><EFBFBD>//============================================================================================= MQL5 ===
// LibreCLOP Interface_5 v1.005 MQL5
// =B5@D59A =0AB@>5:
// LibreCoin (c)2014-2017
//======================================================================================================
#property strict
//============================================================================================= MQL5 ===
// INCLUDE - ?>4:;NG05<K5 <>4C;8
//------------------------------------------------------------------------------------------------------
//----- 1@0B=K5 AAK;:8 =0 >A=>2=>9 D09; ?@>5:B0
#include "LCL_Ref_5_v1.005.mqh"
//============================================================================================= MQL5 ===
// INTERFACE
//------------------------------------------------------------------------------------------------------
input string Sid = "LIP v"+ver; //=== Set Identifier
//----- 0AB@>9:8 8=48:0F88
input bool PositionsView = true; //===  === PositionView
input bool OrdersView = true; //OrdersView
input bool HistoryOrdersView = false; //HistoryOrdersView
input bool HistoryDealsView = false; //HistoryDealsView
input bool SummView = true; //SummView ?>:07K20BL AC<<K
//----- 0AB@>9:8 >B1>@0
input enSelSymMode SelSym = SelSym_all; //=== " + === SelSym Select Symbol Mode
input string SelectorSymbol = "EURUSD"; //SelectorSymbol for User Mode
input enSelMagMode SelMag = SelMag_all; //SelMag Select Magic Number Mode
input ulong SelectorMagic = 1000; //SelectorMagic Magic Number for User Mode
input enSelTickMode SelTick = SelTick_all; //SelTick Select Ticket Mode
input long SelectorTicket = 1000; //SelectorTicket Ticket for User Mode
//----- 0AB@>9:8 70:@KB8O
input enProfitCalcMode ProfitCalc = ProfitCalc_currency;//ProfitCalc A?>A>1 @0AG5B0 ?@81K;8 4;O 70:@KB8O (45=L38/?8?AK)
input enCloseAlgorithmMode ProfitClose = ProfitClose_sl;//ProfitClose 0;3>@8B< 70:@KB8O (D8:AC@>25=L/B@0;)
input int SLPips = 20; //SLPips C@>25=L 70:@KB8O 2 ?8?A0E
input double SLValue = 1.5; //SLValue C@>25=L 70:@KB8O 2 45=L30E
input int TrailLevel = 25; //TrailLevel @01>G89 >BABC? B@59;8=30
input int TrailStart = 35; //TrailStart =0G0;L=K9 >BABC? B@59;8=30
//----- 0AB@>9:8 >B:@KB8O
input double OrderVolume = 0.01; //OrderVolume @07<5@ >@45@0 =0 >B:@KB85
//----- 0AB@>9:8 >B>1@065=8O
input int SetMSTimer = 400; //===  === SetMSTimer #AB0=>2:0 B09<5@0 XXX <8;;8A5:C=4
input int ColoShift = 3; //ColoShift !4283 2K2>40 :>;>=>: 2 ?8:A5;0E
input int ColoStep = 280; //ColoStep (03 2K2>40 :>;>=>: 2 ?8:A5;0E
input bool CommentView = false; //CommentView
//----- !?8A>: >B1>@0 A8<2>;>2 (selection)
input string SymSelect_00 = ""; //=== "  !+ === SymSelect_00 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_01 = ""; //SymSelect_01 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_02 = ""; //SymSelect_02 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_03 = ""; //SymSelect_03 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_04 = ""; //SymSelect_04 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_05 = ""; //SymSelect_05 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_06 = ""; //SymSelect_06 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_07 = ""; //SymSelect_07 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_08 = ""; //SymSelect_08 M;5<5=B A?8A:0 >B1>@0
input string SymSelect_09 = ""; //SymSelect_09 M;5<5=B A?8A:0 >B1>@0
input int nSymSelectList = 10; //nSymSelectList @07<5@ A?8A:0 >B1>@0
//----- !?8A>: >BA520 A8<2>;>2 (elimination)
input string SymEliminat_00 = ""; //=== "! !+ === SymEliminat_00 M;5<5=B A?8A:0 >BA520
input string SymEliminat_01 = ""; //SymEliminat_01 M;5<5=B A?8A:0 >BA520
input string SymEliminat_02 = ""; //SymEliminat_02 M;5<5=B A?8A:0 >BA520
input string SymEliminat_03 = ""; //SymEliminat_03 M;5<5=B A?8A:0 >BA520
input string SymEliminat_04 = ""; //SymEliminat_04 M;5<5=B A?8A:0 >BA520
input string SymEliminat_05 = ""; //SymEliminat_05 M;5<5=B A?8A:0 >BA520
input string SymEliminat_06 = ""; //SymEliminat_06 M;5<5=B A?8A:0 >BA520
input string SymEliminat_07 = ""; //SymEliminat_07 M;5<5=B A?8A:0 >BA520
input string SymEliminat_08 = ""; //SymEliminat_08 M;5<5=B A?8A:0 >BA520
input string SymEliminat_09 = ""; //SymEliminat_09 M;5<5=B A?8A:0 >BA520
input int nSymEliminatList = 10; //nSymEliminatList @07<5@ A?8A:0 >BA520
//----- !?8A>: >B1>@0 <038:>2 (selection)
input string MagSelect_00 = "1"; //=== "   === MagSelect_00 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_01 = "1"; //MagSelect_01 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_02 = "1"; //MagSelect_02 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_03 = "1"; //MagSelect_03 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_04 = "1"; //MagSelect_04 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_05 = "1"; //MagSelect_05 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_06 = "1"; //MagSelect_06 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_07 = "1"; //MagSelect_07 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_08 = "1"; //MagSelect_08 M;5<5=B A?8A:0 >B1>@0
input string MagSelect_09 = "1"; //MagSelect_09 M;5<5=B A?8A:0 >B1>@0
input int nMagSelectList = 10; //nMagSelectList @07<5@ A?8A:0 >B1>@0
//----- !?8A>: >BA520 <038:>2 (elimination)
input string MagEliminat_00 = "1"; //=== "!  === MagEliminat_00 M;5<5=B A?8A:0 >BA520
input string MagEliminat_01 = "1"; //MagEliminat_01 M;5<5=B A?8A:0 >BA520
input string MagEliminat_02 = "1"; //MagEliminat_02 M;5<5=B A?8A:0 >BA520
input string MagEliminat_03 = "1"; //MagEliminat_03 M;5<5=B A?8A:0 >BA520
input string MagEliminat_04 = "1"; //MagEliminat_04 M;5<5=B A?8A:0 >BA520
input string MagEliminat_05 = "1"; //MagEliminat_05 M;5<5=B A?8A:0 >BA520
input string MagEliminat_06 = "1"; //MagEliminat_06 M;5<5=B A?8A:0 >BA520
input string MagEliminat_07 = "1"; //MagEliminat_07 M;5<5=B A?8A:0 >BA520
input string MagEliminat_08 = "1"; //MagEliminat_08 M;5<5=B A?8A:0 >BA520
input string MagEliminat_09 = "1"; //MagEliminat_09 M;5<5=B A?8A:0 >BA520
input int nMagEliminatList = 10; //nMagEliminatList @07<5@ A?8A:0 >BA520
//----- !?8A>: >B1>@0 B8:5B>2 (selection)
input string TickSelect_00 = "0"; //=== "  ""+ === TickSelect_00 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_01 = "0"; //TickSelect_01 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_02 = "0"; //TickSelect_02 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_03 = "0"; //TickSelect_03 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_04 = "0"; //TickSelect_04 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_05 = "0"; //TickSelect_05 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_06 = "0"; //TickSelect_06 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_07 = "0"; //TickSelect_07 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_08 = "0"; //TickSelect_08 M;5<5=B A?8A:0 >B1>@0
input string TickSelect_09 = "0"; //TickSelect_09 M;5<5=B A?8A:0 >B1>@0
input int nTickSelectList = 10; //nTickSelectList @07<5@ A?8A:0 >B1>@0
//----- !?8A>: >BA520 B8:5B>2 (elimination)
input string TickEliminat_00 = "0"; //=== "! ""+ === TickEliminat_00 M;5<5=B A?8A:0 >BA520
input string TickEliminat_01 = "0"; //TickEliminat_01 M;5<5=B A?8A:0 >BA520
input string TickEliminat_02 = "0"; //TickEliminat_02 M;5<5=B A?8A:0 >BA520
input string TickEliminat_03 = "0"; //TickEliminat_03 M;5<5=B A?8A:0 >BA520
input string TickEliminat_04 = "0"; //TickEliminat_04 M;5<5=B A?8A:0 >BA520
input string TickEliminat_05 = "0"; //TickEliminat_05 M;5<5=B A?8A:0 >BA520
input string TickEliminat_06 = "0"; //TickEliminat_06 M;5<5=B A?8A:0 >BA520
input string TickEliminat_07 = "0"; //TickEliminat_07 M;5<5=B A?8A:0 >BA520
input string TickEliminat_08 = "0"; //TickEliminat_08 M;5<5=B A?8A:0 >BA520
input string TickEliminat_09 = "0"; //TickEliminat_09 M;5<5=B A?8A:0 >BA520
input int nTickEliminatList = 10; //nTickEliminatList @07<5@ A?8A:0 >BA520
//----- 0AB@>9:8 2K2>40 A>>1I5=89
input bool PrintInfo = true; //5G0BL 8=D>@<0F88
input bool PrintDebug = false; //5G0BL >B;04:8
input double MinProfit = 15.0; //8=8<0;L=K9 ?@>D8B A45;:8
input double MinLoss = 25.0; //8=8<0;L=K9 C1KB>: A45;:8
//----- Input parameters ADXWZ
input int aInpPeriodADXW = 125; //Period
input ENUM_MA_METHOD aInpMethodADXW = MODE_EMA; //Method (MODE_SMA,MODE_EMA,MODE_SMMA,MODE_LWMA)
input int aSSCBaseMode = 2; //>@@ (0..3)-(off/spread/close/midHLC)
input int aInpFastPeriodEMA = 3; //Fast EMA period
input int aInpSlowPeriodEMA = 5; //Slow EMA period
input int aDICalcMode = 8; //DICalcMode(0..8)-(hi/low/mahl/mihl/suhl/isuhl/imahl/imihl)
//----- 0@0<5B@K A1@>A0 B5=45=F88
input double adDI = 0.9; //;O +-DI 2 4>;OE >B (<0:A-AB0@B)
input double adActiv = 0.25; //;O :B82=>AB8 ((+DI)+(-DI)) 2 4>;OE >B <0:A8<0;L=>9
input double adDelta = 0.2; //;O 5;LBK ((+DI)-(-DI)) 2 4>;OE >B <0:A8<0;L=>9
//----- Levels
input double aL0 = 15.0; //L0 ADXOpenLvl
input double aL1 = 45.0; //L1 ADXOpenLvlMax
input double aL2 = 45.0; //L2 ADXCloseLvl
input double aL3 = 20.0; //L3 ADXReversLvl
input double aL4 = 30.0; //L4 ADXReversLvlMax
//----- Scale
input double aScaleMax = 75.0; //ScaleMax