GEPARD 5.0
GEPARD 5.0

GEPARD 5.0

更新日期:
2022-11-03
分类标签:
语言:
中文
平台:
没限制

69 人已下载 手机查看

GEPARD 5.0

#property copyright “GEPARD 7 Copyright ?2008-2012, Forex Team”
#property link “http://plati.ru/asp/pay.asp?id_d=466922”

#include <WinUser32.mqh>
#import “shell32.dll”
int ShellExecuteA(int a0, string a1, string a2, string a3, string a4, int a5);
#import “advapi32.dll”
int RegOpenKeyA(int a0, string a1, int& a2[]);
int RegCloseKey(int a0);
int RegQueryValueExA(int a0, string a1, int a2, int& a3[], string a4, int& a5[]);
#import “wininet.dll”
int InternetGetCookieA(string a0, int a1, string a2, int& a3[]);
#import

extern string sNameEA = “_______ 腆朦蜩忄膻蝽 耦忮蝽桕 GEPARD 7 _______”;
extern string sCopyright = “Copyright ?2008-2012, Forex Team”;
extern string sContact = “e-mail: forex.ex4@gmail.com”;
extern string sSelling = “http://plati.ru/asp/pay.asp?id_d=466922”;
extern int AskOpenRecommendedDC = 1;
extern string sSetting = “玉蜞磬怆桠囹?磬 钿桧 沭圄桕 膻犷?忄膻蝽铋 镟瘥, 磬 膻犷?蜞殪-麴彘?;
extern string sLicensing = “碾 镱塍麇龛 腓鲥礴桀眄钽?觌?钺疣蜩蝈顸 ?疣琊噌铗麒赅?- forex.ex4@gmail.com”;
//extern double LicenseKey = 0.0;
extern string sDescript10 = “_______ 1. 软耱痼戾眚?潆 蝾疸钼腓 _______”;
extern string sDescript11 = “0 – 礤 蝾疸钼囹? 1 – 蝾疸钼囹?(BUY&SELL), 2 – 蝾朦觐 BUY, 3 – 蝾朦觐 SELL”;
extern string sSymbols1 = “AUDCAD: 1; AUDCHF: 1; AUDJPY: 1; AUDNZD: 1; AUDUSD: 1; CADCHF: 1; CADJPY: 1; CHFJPY: 1; EURAUD: 1; EURCAD: 1; EURCHF: 1; EURGBP: 1; EURJPY: 1; EURNZD: 1; EURUSD: 1”;
extern string sSymbols2 = “GBPAUD: 1; GBPCAD: 1; GBPCHF: 1; GBPJPY: 1; GBPNZD: 1; GBPUSD: 1; NZDCAD: 1; NZDCHF: 1; NZDGBP: 1; NZDJPY: 1; NZDUSD: 1; USDCAD: 1; USDCHF: 1; USDJPY: 1”;
extern string sSymbols3 = “#AA: 2; #AIG: 2; #AXP: 2; #BA: 2; #BAC: 2; #CAT: 2; #CSCO: 2; #CVX: 2; #DD: 2; #DIS: 2; #EBAY: 2; #FCX: 2; #FDX: 2; #GE: 2; #GS: 2; #HAL: 2; #HD: 2; #HON: 2; #HPQ: 2; #IBM: 2; #INTC: 2; #IP: 2”;
extern string sSymbols4 = “#JNJ: 2; #JPM: 2; #KO: 2; #KFT: 2; #MCD: 2; #MMM: 2; #MO: 2; #MRK: 2; #MSFT: 2; #ORCL: 2; #PEP: 2; #PFE: 2; #PG: 2; #T: 2; #TRV: 2; #UPS: 2; #UTX: 2; #V: 2; #VZ: 2; #WFC: 2; #WMT: 2; #XOM: 2”;
extern string sSymbols5 = “XAUUSD: 1; GOLD: 1; XAGUSD: 1; SILVER: 1; #DIA: 2; #FAS: 2; #FXI: 2; #GLD: 2; #QQQ: 2; #SDS: 2; #SMH: 2; #SPY: 2; #SSO: 2; #TLT: 2; #XLI: 2”;
extern int CountOfCycles = 5;
extern string sUseBuy = “”;
extern string sUseSell = “”;
extern int dUseOnlyPlusSwaps = 0;
extern string sUseOnlyPlusSwaps = “”;
extern int dMaxSpreadForTradeSymbol = 12;
extern string sMaxSpreadForTradeSymbol = “XAUUSD: 100; GOLD: 100”;
extern string sDescript20 = “_________ 2. 吾?磬耱痤殛?蝾疸钼腓 _________”;
extern double dRisk = 0.005;
extern string sRisk = “”;
extern int MaxOrdersCount = 0;
extern int dMaxSymbolOrdersCount = 0;
extern string sMaxSymbolOrdersCount = “”;
extern double MaxOpenValPosition = 7.0;
extern int dUseOneWayRealOrdersB = 1;
extern string sUseOneWayRealOrdersB = “”;
extern int dUseOneWayRealOrdersS = 1;
extern string sUseOneWayRealOrdersS = “”;
extern double dMinDistanceRealOrdersB_PR = 4.0;
extern string sMinDistanceRealOrdersB_PR = “”;
extern double dMinDistanceRealOrdersS_PR = 4.0;
extern string sMinDistanceRealOrdersS_PR = “”;
extern int dCloseLockedOrdersOnAverage = 0;
extern string sCloseLockedOrdersOnAverage = “”;
extern double dCloseLockedMinDistance_PR = 2.0;
extern string sDescript30 = “_______ 3. 吾钺眄 蝈殛-镳铘栩, 耱铒-腩耨 ?蝠彘腓磴 _______”;
extern int dFixedTakeProfit = 0;
extern string sFixedTakeProfit = “”;
extern int dFixedStopLoss = 0;
extern string sFixedStopLoss = “”;
extern int dTimeStopLoss_Minutes = 0;
extern string sTimeStopLoss_Minutes = “”;
extern double TimeSL_OnlyAfterDistance_PR = 0.0;
extern double dProfitForBreakevenSL_PR = 0.7;
extern int dTrailingStop = 0;
extern string sTrailingStop = “”;
extern int dStepTrailingStop = 0;
extern string sStepTrailingStop = “”;
extern double dTrailingStop_PR = 1.0;
extern double dStepTrailingStop_PR = 0.1;
extern int dDeleteTPWhenTrailing = 1;
extern double dLagForProfitSL_PR = 0.15;
extern int CloseOrdersOppositeTrend_OsMA = 0;
extern int CloseOrdersOppositeTrend_SAR = 0;
extern int CloseOrdersOppositeTrend_ALL = 0;
extern int CloseOOT_OnlyAfterMinutes = 0;
extern double CloseOOT_OnlyAfterDistance_PR = 0.0;
extern int BlockOpenWorseOrder_Minutes = 720;
int gi_500 = 0;
int gi_504 = 0;
int gi_508 = 0;
string gs_512 = “”;
int gi_520 = 0;
string gs_524 = “”;
extern int dUseGridTracking = 0;
extern double dGridRisk = 0.0;
extern double dGridStep_PR_B = 0.3;
extern double dGridTakeProfit_PR_B = 0.3;
extern double dGridStopLoss_PR_B = 0.0;
extern double dGridStep_PR_S = 0.3;
extern double dGridTakeProfit_PR_S = 0.3;
extern double dGridStopLoss_PR_S = 0.0;
int gi_592 = 0;
string gs_596 = “”;
int gi_604 = 17;
string gs_608 = “”;
int gi_616 = 17;
string gs_620 = “”;
int gi_628 = 83;
string gs_632 = “”;
int gi_640 = 83;
string gs_644 = “”;
int gi_652 = 0;
string gs_656 = “”;
int gi_664 = 0;
string gs_668 = “”;
int gi_676 = 0;
string gs_680 = “”;
int gi_688 = 0;
string gs_692 = “”;
int gi_700 = 0;
string gs_704 = “”;
int gi_712 = 0;
string gs_716 = “”;
extern string sDescript40 = “_______ 4. 悟牮桢 铕溴痤?磬 觐痧尻鲨?溻桄屙? _______”;
extern string sDescript41 = “4.1. 悟牮桢 铕溴痤?磬 觐痧尻鲨?猁耱痤泐 溻桄屙? 镱耠?觐眈铍桎圉梃”;
extern int CR_UseCorrection = 1;
extern double CR_WaitCorrectionAfterMove_PR = 1.2;
extern double CR_WaitCorrectionAfterFlat_PR = 0.2;
extern double CR_MaxDistanceFromBottom_PR = 0.1;
extern double CR_SizeCorrection_PR = 0.4;
extern double CR_StopLoss_PR = 0.0;
extern int CR_StopLoss_UseSAR = 0;
extern int CR_UseTrailingStop = 1;
extern int CR_AnalizMove_Period = 5;
extern int CR_AnalizMove_CountBars = 6;
extern int CR_AnalizFlat_Period = 2;
extern int CR_AnalizFlat_CountBars = 2;
extern string sDescript42 = “4.2. 悟牮桢 铕溴痤?镱 箴钼??镱滗屦骊?耦镳铗桠脲龛”;
extern int dUseTradeLevels = 1;
extern string sUseTradeLevels = “”;
extern int dTL_PeriodOpen = 6;
extern string sTL_PeriodOpen = “”;
extern int dTL_PeriodOpenCountBars = 70;
extern string sTL_PeriodOpenCountBars = “”;
extern double dTL_FindLevelOpen_PR = 0.7;
extern string sTL_FindLevelOpen_PR = “”;
extern double dTL_MaxDistFromLevelOpen_PR = 0.07;
extern string sTL_MaxDistFromLevelOpen_PR = “”;
extern int dTL_PeriodClose = 5;
extern string sTL_PeriodClose = “”;
extern int dTL_PeriodCloseCountBars = 60;
extern string sTL_PeriodCloseCountBars = “”;
extern double dTL_FindLevelClose_PR = 0.5;
extern string sTL_FindLevelClose_PR = “”;
extern double dTL_MaxDistFromLevelClose_PR = 0.1;
extern string sTL_MaxDistFromLevelClose_PR = “”;
extern double dTL_StopLoss_PR = 0.0;
extern string sTL_StopLoss_PR = “”;
extern string sDescript50 = “_______ 5. 锐镱朦珙忄龛?觐脲徉龛?忸 綦弪?_______”;
extern string sDescript51 = “5.1. 悟牮桢 铕溴痤?磬 綦弪 ?赅磬脲”;
extern int dUseFlatIndicator = 0;
extern string sUseFlatIndicator = “”;
extern double diFL_MinWidthCanal_PR = 0.1;
extern string siFL_MinWidthCanal_PR = “”;
extern double diFL_MaxWidthCanal_PR = 0.4;
extern string siFL_MaxWidthCanal_PR = “”;
extern int diFL_MinExtremumsCount = 1;
extern string siFL_MinExtremumsCount = “”;
extern int diFL_Period = 2;
extern string siFL_Period = “”;
extern int diFL_CountBars = 8;
extern string siFL_CountBars = “”;
extern int diFL_UseConditionTakeOver = 1;
extern int diFL_PeriodTakeOver = 4;
extern int diFL_CountBarsTakeOver = 2;
extern double diFL_StopLoss_PR = 0.0;
extern string siFL_StopLoss_PR = “”;
extern int diFL_StopLoss_UseSAR = 0;
extern int FL_UseTrailingStop = 0;
extern double diFL_LotSizeMultiply = 1.0;
extern string siFL_LotSizeMultiply = “”;
extern string sDescript52 = “5.2. 殃嚯桧?镱 桧滂赅蝾痼 RSI”;
extern int dUseEA_SCL = 0;
extern int SERVER_GMT_OFFSET = 1;
extern int dSCL_UseTimeWork = 1;
extern int dSCL_StartWorkHour_GMT = 22;
extern int dSCL_StartWorkMinute = 0;
int gi_1132;
extern int dSCL_EndWorkHour_GMT = 2;
extern int dSCL_EndWorkMinute = 0;
int gi_1144;
extern int dSCL_MaxSpread = 5;
extern int diSCL_RSI1_TimeFrame = 2;
extern int diSCL_RSI1_Period = 6;
extern double diSCL_RSI1_Value = 30.0;
extern int diSCL_RSI2_TimeFrame = 0;
extern int diSCL_RSI2_Period = 20;
extern double diSCL_RSI2_Value = 36.0;
extern int diSCL_MA_TimeFrame = 2;
extern int diSCL_MA_Period = 8;
extern double diSCL_MinDistFromMA_PR = 0.03;
extern double diSCL_ShowTakeProfit_PR = 0.1;
extern double diSCL_ShowStopLoss_PR = 0.0;
extern double diSCL_RealTakeProfit_PR = 0.03;
extern double diSCL_RealStopLoss_PR = 0.0;
extern int diSCL_ReverseClose = 1;
extern int diSCL_RevCloseOnlyProfit = 1;
extern string sDescript60 = “_______ 6. 锐镱朦珙忄龛?蝠屙漕恹?溻桄屙栝 _______”;
extern string sDescript61 = “6.1. 悟牮桢 铕溴痤?镱 桧滂赅蝾痼 Parabolic SAR”;
extern int dUseTrendOrders_ParabolicSAR = 1;
extern int diSAR_RO_TimeFrame = 6;
extern double diSAR_RO_Step = 0.02;
extern double diSAR_RO_Maximum = 0.2;
extern string sDescript62 = “6.2. 悟牮桢 铕溴痤?镱 桧滂赅蝾痼 Stochastic”;
extern int dUseOrders_Stochastic = 1;
extern int diStoch_RO_TimeFrame = 6;
extern int diStoch_RO_KPeriod = 5;
extern int diStoch_RO_DPeriod = 3;
extern int diStoch_RO_Slowing = 3;
extern int diStoch_RO_Method = 2;
extern int diStoch_RO_Price = 0;
extern double diStoch_RO_TakeProfit_PR = 1.0;
extern double diStoch_RO_StopLoss_PR = 0.0;
extern int diStoch_RO_ReverseClose = 0;
extern int diStoch_RO_RevCloseOnlyProfit = 1;
extern int diStoch_RO_UseAverageTP = 0;
extern string sDescript63 = “6.3. 悟牮桢 铕溴痤?镱 桧滂赅蝾痼 ADX”;
extern int dUseTrendOrders_ADX = 1;
extern int diADX_RO_TimeFrame = 6;
extern int diADX_RO_Period = 14;
extern int diADX_RO_TypePrice = 6;
extern double diADX_RO_ValueToCloseOrders = 60.0;
extern double diADX_RO_ValueSignalTrend = 20.0;
extern double diADX_RO_ValueSignalEndTrend = 15.0;
extern double diADX_RO_TakeProfit_PR = 3.0;
extern double diADX_RO_StopLoss_PR = 0.0;
extern int diADX_RO_CloseOnlyProfit = 1;
extern int diADX_RO_UseAverageTP = 0;
extern string sDescript64 = “6.4. 悟牮桢 铕溴痤?镱 桧滂赅蝾痼 CCI”;
extern int dUseOrders_CCI = 1;
extern int diCCI_RO_TimeFrame = 6;
extern int diCCI_RO_Period_Slow = 125;
extern int diCCI_RO_Period_Medium = 25;
extern int diCCI_RO_Period_Fast = 5;
extern int diCCI_RO_TypePrice = 0;
extern double diCCI_RO_TakeProfit_PR = 3.0;
extern double diCCI_RO_StopLoss_PR = 0.0;
extern int diCCI_RO_ReverseClose = 1;
extern int diCCI_RO_RevCloseOnlyProfit = 1;
extern string sDescript70 = “_______ 7. 鲤徼蝠噫 – 桉镱朦珙忄龛?礤翦牝桠眍耱??囗铎嚯栝 瘥黻?_______”;
extern string sDescript71 = “7.1. 鲤徼蝠噫 忄膻蝽钽?牦瘃?- 铗觌铐屙桢 牦瘃?忄膻蝽铋 镟瘥 铗 疣聍弪眍泐”;
extern int dUseArbitrage_ExchRate = 0;
extern int dArb_EXR_CountIterForRates = 10;
extern int dArb_EXR_TypeOfTakeProfit = 1;
extern int dArb_EXR_TimeSL_Minutes = 10;
extern string sDescript72 = “7.2. 青牮桢 门相 – 蝾疸钼? 磬 玎牮桢 门相, 忸珥桕帼?磬 铗牮梃 眍忸?皴耨梃”;
extern int dUseCloseOpeningGAP = 1;
extern double diCOG_MinSizeGAP_PR = 0.2;
extern double diCOG_MaxSizeGAP_PR = 0.0;
extern double diCOG_TakeProfit_KF_GAP = 0.7;
extern double diCOG_StopLoss_KF_GAP = 0.4;
extern string sDescript80 = “_______ 8. 澡朦蝠?磬 铗牮桢 镱玷鲨?_______”;
extern string sDescript81 = “8.1. 澡朦蝠 镱 桧滂赅蝾痼 篑觐疱龛 Accelerator”;
extern int dUseAcceleratorIndicator = 1;
extern string sUseAcceleratorIndicator = “”;
extern int diAC_CountBars = 3;
extern string siAC_CountBars = “”;
extern int diAC_CountTimeFrames = 2;
extern string siAC_CountTimeFrames = “”;
extern int diAC_StartTimeFrame = 0;
extern string siAC_StartTimeFrame = “”;
extern string sDescript82 = “8.2. 澡朦蝠 镱 桧滂赅蝾痼 耜铕铖蜩 Speed”;
extern int dUseSpeedIndicator = 1;
extern string sUseSpeedIndicator = “”;
extern int diSP_CountBars = 2;
extern string siSP_CountBars = “”;
extern int diSP_CountTimeFrames = 2;
extern string siSP_CountTimeFrames = “”;
extern int diSP_StartTimeFrame = 1;
extern string siSP_StartTimeFrame = “”;
int gi_1668 = 0;
string gs_1672 = “”;
double gd_1680 = 0.0005;
string gs_1688 = “”;
int gi_1696 = 1;
string gs_1700 = “”;
int gi_1708 = 35;
string gs_1712 = “”;
extern string sDescript83 = “8.3. 澡朦蝠 钽疣龛麒蝈朦睇?箴钼礤?HighLowLimit”;
extern int dCountHighLowLimits = 2;
extern string sCountHighLowLimits = “”;
extern double diHL_LimitDistance1_PR = 2.0;
extern string siHL_LimitDistance1_PR = “”;
extern int diHL_Period1 = 5;
extern string siHL_Period1 = “”;
extern int diHL_CountBars1 = 6;
extern string siHL_CountBars1 = “”;
extern double diHL_LimitDistance2_PR = 5.0;
extern string siHL_LimitDistance2_PR = “”;
extern int diHL_Period2 = 7;
extern string siHL_Period2 = “”;
extern int diHL_CountBars2 = 2;
extern string siHL_CountBars2 = “”;
extern string sDescript84 = “8.4. 澡朦蝠 蝠屙漕恹?溻桄屙栝 OsMA”;
extern int dUseTrendFilterOsMA = 0;
extern int diOsMA_TimeFrame = 5;
extern int diOsMA_FastEMA = 12;
extern int diOsMA_SlowEMA = 26;
extern int diOsMA_SignalSMA = 9;
extern int diOsMA_TypePrice = 6;
extern string sDescript85 = “8.5. 澡朦蝠 蝠屙漕恹?溻桄屙栝 Parabolic SAR”;
extern int dUseTrendFilterSAR = 0;
extern int diSAR_Filter_TimeFrame = 5;
extern double diSAR_Filter_Step = 0.02;
extern double diSAR_Filter_Maximum = 0.2;
extern string sDescript86 = “8.6. 澡朦蝠 蝠屙漕恹?溻桄屙栝 ADX”;
extern int dUseTrendFilterADX = 0;
extern int diADX_Filter_TimeFrame = 5;
extern int diADX_Filter_Period = 14;
extern int diADX_Filter_TypePrice = 6;
extern double diADX_Filter_ValueSignalTrend = 20.0;
extern string sDescript87 = “8.7. 澡朦蝠?爨犟桁箪钼/扈龛祗祛?;
extern int dUseFilterMaxMin1 = 1;
extern int dMaxMin_Filter_TimeFrame1 = 7;
extern int dMaxMin_Filter_CountBars1 = 8;
extern double dMaxMin_LimitDistance_PR1 = 1.5;
extern int dUseFilterMaxMin2 = 1;
extern int dMaxMin_Filter_TimeFrame2 = 6;
extern int dMaxMin_Filter_CountBars2 = 3;
extern double dMaxMin_LimitDistance_PR2 = 0.5;
extern string sDescript88 = “8.8. 澡朦蝠 箴钼礤?玎镳弪?镱牦镱?镳钿噫”;
extern string sBuyDenyLevel1 = “”;
extern string sBuyDenyLevel2 = “”;
extern string sSellDenyLevel1 = “”;
extern string sSellDenyLevel2 = “”;
extern string sDescript90 = “_______ 9. 义蹴梓羼觇?磬耱痤殛?_______”;
extern string sDescript91 = “TypeOfQuoteDigits – 蜩?疣琊漤铖蜩 觐蜩痤忄龛: 0 – 噔蝾铒疱溴脲龛? 1 – 耱囗溧痱睇?(4 疣琊溧), 2 – 疣聒桊屙睇?(5 疣琊漕?”;
extern int TypeOfQuoteDigits = 0;
extern string sDescript92 = “CustomNameForCurrencyPair – 犭铐 磬玮囗? 潆 忄膻蝽铋 镟瘥 (AAA – 镥疴? 忄膻蜞 镟瘥, BBB – 怛铕? 忄膻蜞 镟瘥)”;
extern string CustomNameForCurrencyPair = “AAABBB”;
extern double dMinLotSize = 0.01;
extern string sMinLotSize = “”;
extern double dMaxLotSize = 0.0;
extern string sMaxLotSize = “”;
extern double dStepLotSize = 0.01;
extern string sStepLotSize = “”;
extern int dSlipPage = 0;
extern string sSlipPage = “”;
extern int Set_TP_SL_ByModifyOrder = 0;
extern bool TestingOneSymbolMode = FALSE;
extern int InverseTrading = 0;
extern int OwnMagicPrefix = 5732;
extern string PrefixOrderComment = “G7 “;
extern bool PrintInfoOpenValPosition = FALSE;
extern bool UsePreventCheckingOrder = TRUE;
extern bool CommentOrderOperations = TRUE;
extern bool PlaySoundWhenOpenOrder = FALSE;
extern string FileNameSoundOpenOrder = “alert.wav”;
int gi_2148 = 1;
string gs_2152 = “”;
int gi_2160 = 0;
int gi_2164 = 10;
string gs_2168 = “”;
int gi_2176 = 50;
string gs_2180 = “”;
int gi_2188 = 10;
int gi_2192 = 0;
int gi_2196;
string gsa_2200[];
double gda_2204[];
double gda_2208[];
double gda_2212[];
double gda_2216[];
int gia_2220[];
int gia_2224[];
int gia_2228[];
double gda_2232[];
double gda_2236[];
double gda_2240[];
int gia_2244[];
int gia_2248[];
int gia_2252[];
int gia_2256[];
int gia_2260[];
int gia_2264[];
int gia_2268[];
int gia_2272[];
int gia_2276[];
int gia_2280[];
int gia_2284[];
int gia_2288[];
int gia_2292[];
int gia_2296[];
int gia_2300[];
int gia_2304[];
int gia_2308[];
int gia_2312[];
int gia_2316[];
double gda_2320[];
double gda_2324[];
int gia_2328[];
int gia_2332[];
int gia_2336[];
int gia_2340[];
int gia_2344[];
int gia_2348[];
int gia_2352[];
int gia_2356[];
int gia_2360[];
int gia_2364[];
int gia_2368[];
int gia_2372[];
double gda_2376[];
double gda_2380[];
double gda_2384[];
int gia_2388[];
double gda_2392[];
int gia_2396[];
int gia_2400[];
double gda_2404[];
int gia_2408[];
int gia_2412[];
int gia_2416[];
int gia_2420[];
int gia_2424[];
double gda_2428[];
double gda_2432[];
int gia_2436[];
int gia_2440[];
double gda_2444[];
double gda_2448[];
double gda_2452[];
int gia_2456[];
double gda_2460[];
double gda_2464[];
int gia_2468[];
int gia_2472[];
int gia_2476[];
double gda_2480[];
double gda_2484[];
double gda_2488[];
double gda_2492[];
double gda_2496[];
int gia_2500[];
int gia_2504[];
int gia_2508[];
int gia_2512[];
int gia_2516[];
string gs_2520;
double gd_2528;
double gd_2536;
double gd_2544;
double gd_2552;
double gd_2560;
double gd_2568;
double gd_2576;
//double gd_2584;
int gi_2592;
int gi_2596;
int gi_2600;
int gi_2604;
int gi_2608;
int gi_2612;
int gi_2616;
int gi_2620;
int gi_2624;
int gi_2628;
int gi_2632;
int gi_2636;
int gi_2640;
int gi_2644;
int gi_2648;
int gi_2652;
int gi_2656;
int gi_2660;
int gi_2664;
double gd_2668;
double gd_2676;
int gi_2684;
int gi_2688;
int gi_2692;
int gi_2696;
int gi_2700;
int gi_2704;
int gi_2708;
int gi_2712;
int gi_2716;
int gi_2720;
int gi_2724;
double gd_2728;
int gi_2736;
int gi_2740;
int gi_2744;
double gd_2748;
int gi_2756;
int gi_2760;
double gd_2764;
int gi_2772;
int gi_2776;
int gi_2780;
double gd_2784;
double gd_2792;
int gi_2800;
int gi_2804;
int gi_2808;
double gd_2812;
double gd_2820;
int gi_2828;
double gd_2832;
//double gd_2840;
double gd_2848;
int gi_2856;
int gi_2860;
int gi_2864;
bool gi_2868 = FALSE;
int gi_2872 = 0;
int gi_2876;
int gi_2880 = 0;
int gi_2884;
double gd_2888;
string gs_2896;
int gi_2904;
bool gi_2908;
bool gi_2912;
int gi_2916;
int gi_2920;
double gd_2928;
double gd_2936;
double gd_2944;
double gd_2960;
double gd_2968;
string gs_2976;
double gd_2984;
double gd_2992;
double gd_3000;
double gd_3008;
double gd_3016;
double gd_3024;
int gi_3032;
int gi_3036;
int gi_3040;
int gi_3044;
bool gi_3048;
bool gi_3052;
bool gi_3056;
string gs_3060;
int gi_3068;
int gi_3072 = 0;
string gsa_3076[];
double gda_3080[];
double gda_3084[];
double gd_3088;
double gda_3096[];
double gda_3100[];
int gia_3104[6];
double gda_3108[6];
double gda_3112[6];
double gda_3116[6];
double gd_3120;
double gd_3128;
double gda_3136[2];
double gda_3140[2];
double gd_3144;
double gd_3152;
bool gi_3160;
double gd_3164;
double gd_3172;
double gd_3180;
double gd_3188;
double gd_3196;
double gd_3204;
double gd_3212;
double gd_3220;
double gd_3228;
double gd_3236;
double gd_3244;
double gd_3252;
double gd_3260;
double gd_3268;
double gd_3276;
double gda_3284[];
double gda_3288[10][10];
int gia_3292[10];
int gia_3296[];
int gia_3300[];
int gi_3304 = 0;
int gi_3308 = 1;
int gi_3312 = 2;
int gi_3316 = 3;
int gi_3320 = 4;
int gi_3324 = 5;
int gia_3328[10] = {1, 5, 15, 30, 60, 240, 1440, 10080, 43200, 0};

int init() {
int li_4;
int li_12;
int li_16;
bool li_20;
string ls_24;
string ls_32;
string ls_40;
string lsa_48[];
string ls_52;
double ld_60;
int li_68;
string ls_72;
string ls_80;
string ls_88;
gi_2904 = GetTickCount();
if (dUseArbitrage_ExchRate == 1) gi_2908 = TRUE;
else gi_2908 = FALSE;
if (dUseEA_SCL == 1 && dSCL_UseTimeWork == 1) {
gi_1132 = dSCL_StartWorkHour_GMT + SERVER_GMT_OFFSET;
for (gi_1144 = dSCL_EndWorkHour_GMT + SERVER_GMT_OFFSET; gi_1132 >= 24; gi_1132 -= 24) {
}
while (gi_1132 < 0) gi_1132 += 24;
while (gi_1144 >= 24) gi_1144 -= 24;
while (gi_1144 < 0) gi_1144 += 24;
}
//if ((!IsTesting()) && !IsOptimization() && IsDllsAllowed() && AskOpenRecommendedDC == 1) f0_28(0);
if (!f0_18()) {
MessageBox(“相疣戾蝠?耦忮蝽桕?玎溧睇 礤觐痧尻蝽?\n项漯钺眍耱?耢铗痂蝈 ?骟痦嚯? 泥朦礤轼? 疣犷蜞 耦忮蝽桕?礤忸珈铈磬.”, “硒栳赅”, MB_ICONHAND);
gi_2868 = TRUE;
Sleep(86400000);
}
if (IsTesting() || IsOptimization()) {
Print(“杨忮蝽桕 怆弪? 祗朦蜩忄膻蝽.”);
Print(“义耱桊钼囗桢 磬 钿眍?桧耱痼戾眚?徨?忸珈铈眍耱彘 蹂滏桊钼囗? 礤 桁邋?耢豚.”);
if (!TestingOneSymbolMode) {
MessageBox(“杨忮蝽桕 怆弪? 祗朦蜩忄膻蝽!\n义耱桊钼囗桢 磬 钿眍?桧耱痼戾眚?徨?忸珈铈眍耱彘 蹂滏桊钼囗? 礤 桁邋?耢豚.”, “硒栳赅”, MB_ICONHAND);
gi_2868 = TRUE;
Sleep(86400000);
}
}
gd_2888 = AccountNumber();
gs_2896 = AccountNumber();
if (!(IsDemo() || IsTesting() || IsOptimization())) {
if (StringLen(gs_2896) > 2) ls_52 = StringSubstr(gs_2896, 1, StringLen(gs_2896) – 2);
else ls_52 = gs_2896;
li_68 = StrToInteger(ls_52);
li_68 = li_68 % 182 + 182;
ld_60 = li_68 * li_68;
li_4 = 0;
for (int li_0 = 0; li_0 < StringLen(gs_2896); li_0 += 2) {
ls_52 = StringSubstr(gs_2896, li_0, 1);
li_68 = StrToInteger(ls_52);
if (li_68 != 0) {
if (li_4 == 0) ld_60 *= li_68;
else ld_60 += li_68;
}
li_4 = 1 – li_4;
}
for (li_0 = 1; li_0 < StringLen(gs_2896); li_0 += 2) {
ls_52 = StringSubstr(gs_2896, li_0, 1);
li_68 = StrToInteger(ls_52);
if (li_68 != 0) {
if (li_4 == 0) ld_60 *= li_68;
else ld_60 += li_68;
}
li_4 = 1 – li_4;
}
/*if (ld_60 != LicenseKey) {
ls_72 = “泥眄? 觐镨 耦忮蝽桕?礤 怆弪? 腓鲥礴桀眄铋. 泥朦礤轼? 疣犷蜞 礤忸珈铈磬.”;
ls_80 = “吾疣蜩蝈顸 ?疣琊噌铗麒赅?潆 镱塍麇龛 腓鲥礴桀眄钽?觌?”;
ls_88 = “e-mail: forex.ex4@gmail.com”;
Print(ls_72);
Print(ls_80);
Print(ls_88);
MessageBox(StringConcatenate(ls_72,
“\n”, ls_80,
“\n”, ls_88), “硒栳赅”, MB_ICONHAND);
gi_2868 = TRUE;
Sleep(86400000);
}*/
}
gi_2876 = 10000 * OwnMagicPrefix;
gi_2196 = 0;
for (int li_8 = 1; li_8 <= 5; li_8++) {
switch (li_8) {
case 1:
ls_24 = sSymbols1;
break;
case 2:
ls_24 = sSymbols2;
break;
case 3:
ls_24 = sSymbols3;
break;
case 4:
ls_24 = sSymbols4;
break;
case 5:
ls_24 = sSymbols5;
}
li_16 = f0_30(ls_24, lsa_48, “;”);
for (li_0 = 0; li_0 < li_16; li_0++) {
li_12 = StringFind(lsa_48[li_0], “:”);
if (li_12 != -1) {
ls_40 = f0_31(StringSubstr(lsa_48[li_0], li_12 + 1));
if (ls_40 == “1” || ls_40 == “2” || ls_40 == “3”) {
ls_32 = f0_31(StringSubstr(lsa_48[li_0], 0, li_12));
gi_2196++;
ArrayResize(gsa_2200, gi_2196);
ArrayResize(gia_2224, gi_2196);
ArrayResize(gia_2228, gi_2196);
gsa_2200[gi_2196 – 1] = ls_32;
gia_2224[gi_2196 – 1] = 0;
gia_2228[gi_2196 – 1] = 0;
if (ls_40 == “1” || ls_40 == “2”) gia_2224[gi_2196 – 1] = 1;
if (ls_40 == “1” || ls_40 == “3”) gia_2228[gi_2196 – 1] = 1;
}
}
}
}
ArrayResize(gda_3284, gi_2196);
for (li_0 = 0; li_0 < gi_2196; li_0++) gda_3284[li_0] = 0;
ArrayResize(gia_3296, gi_2196);
for (li_0 = 0; li_0 < gi_2196; li_0++) gia_3296[li_0] = 0;
ArrayResize(gia_3300, gi_2196);
for (li_0 = 0; li_0 < gi_2196; li_0++) gia_3300[li_0] = 0;
ArrayResize(gda_2204, gi_2196);
for (li_0 = 0; li_0 < gi_2196; li_0++) gda_2204[li_0] = MarketInfo(gsa_2200[li_0], MODE_POINT);
ArrayResize(gda_2208, gi_2196);
for (li_0 = 0; li_0 < gi_2196; li_0++) gda_2208[li_0] = MarketInfo(gsa_2200[li_0], MODE_DIGITS);
ArrayResize(gda_2212, gi_2196);
ArrayResize(gda_2216, gi_2196);
gi_3068 = 0;
ArrayResize(gsa_3076, gi_3068);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (f0_35(gsa_2200[li_0], CustomNameForCurrencyPair)) {
for (li_4 = 0; li_4 < 2; li_4++) {
ls_32 = f0_20(gsa_2200[li_0], li_4 + 1, CustomNameForCurrencyPair);
li_20 = FALSE;
for (li_8 = 0; li_8 < gi_3068; li_8++) {
if (gsa_3076[li_8] == ls_32) {
li_20 = TRUE;
break;
}
}
if (!li_20) {
gi_3068++;
ArrayResize(gsa_3076, gi_3068);
gsa_3076[gi_3068 – 1] = ls_32;
}

}
}
}
ArrayResize(gda_3080, gi_3068);
ArrayResize(gda_3084, gi_3068);
ArrayResize(gda_3096, gi_3068);
ArrayResize(gda_3100, gi_3068);
f0_33();
f0_43();
f0_16();
return (0);
}

bool f0_18() {
bool li_0 = TRUE;
if (OwnMagicPrefix < 0) OwnMagicPrefix = -OwnMagicPrefix;
if (OwnMagicPrefix > 214747) {
li_0 = FALSE;
Print(“锑犟桁嚯?忸珈铈眍?珥圜屙桢 OwnMagicPrefix 疣忭?214747. 蔓镱腠栩?礤钺躅滂禧?觐痧尻蜩痤怅?”);
Print(“硒栳赅: 玉蜞眍怆屙?耠桫觐?犷朦?珥圜屙桢 镥疱戾眄铋 OwnMagicPrefix (镳弭桕襦 耦狁蜮屙睇?戾滏桕-眍戾痤?”);
}
return (li_0);
}

int f0_44(int ai_0) {
gi_2592 = gia_2224[ai_0];
gi_2596 = gia_2228[ai_0];
if (gi_2592 == 0 && gi_2596 == 0) return (0);
gd_2528 = gda_2204[ai_0];
gd_2536 = gda_2208[ai_0];
if (gd_2528 == 0.0) return (0);
gd_2544 = MarketInfo(gs_2520, MODE_BID);
gd_3268 = 0;
gd_2552 = MarketInfo(gs_2520, MODE_ASK);
gd_2576 = MarketInfo(gs_2520, MODE_TIME);
gd_2560 = MarketInfo(gs_2520, MODE_SPREAD);
gd_2568 = MarketInfo(gs_2520, MODE_STOPLEVEL);
gi_2600 = gia_2248[ai_0];
gi_2604 = gia_2252[ai_0];
gi_2608 = gia_2256[ai_0];
gi_2612 = gia_2260[ai_0];
gi_2616 = gia_2264[ai_0];
gi_2620 = gia_2268[ai_0];
if (gi_2600 > 0) {
gi_2600 = MathMax(MarketInfo(gs_2520, MODE_STOPLEVEL), gi_2600);
gi_2608 = gi_2600;
gi_2612 = gi_2600;
}
if (gi_2604 > 0) {
gi_2604 = MathMax(MarketInfo(gs_2520, MODE_STOPLEVEL), gi_2604);
gi_2616 = gi_2604;
gi_2620 = gi_2604;
}
gi_2624 = gia_2272[ai_0];
gi_2628 = gia_2276[ai_0];
gi_2632 = gia_2280[ai_0];
gi_2636 = gia_2284[ai_0];
gi_2640 = gia_2288[ai_0];
gi_2644 = gia_2296[ai_0];
gi_2648 = gia_2300[ai_0];
gi_2652 = gia_2304[ai_0];
gi_2656 = gia_2308[ai_0];
gi_2660 = gia_2312[ai_0];
gi_2664 = gia_2316[ai_0];
gd_2668 = gda_2320[ai_0];
gd_2676 = gda_2324[ai_0];
gi_2684 = gia_2332[ai_0];
gi_2688 = gia_2336[ai_0];
//gd_2584 = gd_2840 + 56.0;
gi_2692 = gia_2340[ai_0];
gi_2696 = gia_2344[ai_0];
gi_2700 = gia_2348[ai_0];
gi_2704 = gia_2352[ai_0];
gi_2708 = gia_2356[ai_0];
gi_2712 = gia_2360[ai_0];
gi_2716 = gia_2364[ai_0];
gi_2720 = gia_2368[ai_0];
gi_2724 = gia_2372[ai_0];
gd_2728 = gda_2376[ai_0];
gi_2736 = gda_2380[ai_0];
gi_2740 = gda_2384[ai_0];
gi_2744 = gia_2388[ai_0];
gd_2748 = gda_2392[ai_0];
gi_2756 = gia_2396[ai_0];
gi_2760 = gia_2400[ai_0];
gd_2764 = gda_2404[ai_0];
gi_2772 = gia_2408[ai_0];
gi_2776 = gia_2412[ai_0];
gi_2780 = gia_2456[ai_0];
gd_2784 = gda_2460[ai_0];
gd_2792 = gda_2464[ai_0];
gi_2800 = gia_2468[ai_0];
gi_2804 = gia_2472[ai_0];
gi_2808 = gia_2476[ai_0];
gd_2812 = gda_2480[ai_0];
gd_2820 = gda_2484[ai_0];
gi_2828 = gia_2500[ai_0];
gd_2832 = gda_2232[ai_0];
gd_2848 = gda_2236[ai_0];
gi_2856 = gia_2504[ai_0];
gi_2860 = gia_2508[ai_0];
gi_2864 = gia_2512[ai_0];
return (1);
}

int deinit() {
if (IsTesting() || IsOptimization()) Print(“吗屐 蝈耱桊钼囗?/铒蜩扈玎鲨? “, (GetTickCount() – gi_2904) / 1000, ” 皴?”);
return (0);
}

int start() {
int li_8;
if (!f0_34()) return (0);
if (Day() != gi_2872) f0_43();
for (int li_0 = 0; li_0 < gi_2196; li_0++) {
if (!gi_2908 && li_0 % CountOfCycles != gi_2880) continue;
gs_2520 = gsa_2200[li_0];
if (IsTesting() || IsOptimization() && gs_2520 != Symbol()) continue;
if (!IsTesting() && MarketInfo(gs_2520, MODE_TRADEALLOWED) == 0.0) continue;
if (f0_44(li_0)) {
if (f0_16()) {
if (f0_13()) {
if (gia_2244[li_0] != 0)
if (gd_2560 > gia_2244[li_0]) continue;
li_8 = 1;
if (gi_2908) li_8 = 2;
for (int li_4 = 0; li_4 < li_8; li_4++) {
if (li_4 == 0 && gi_2908) gi_2912 = TRUE;
else gi_2912 = FALSE;
if (!gi_2912 && li_0 % CountOfCycles != gi_2880) continue;
if (gi_2912) f0_1();
else f0_24();
if (gi_2912) f0_14(li_0);
else f0_15(li_0);
if (MaxOrdersCount > 0)
if (OrdersTotal() >= MaxOrdersCount) continue;
if (IsTesting() || IsOptimization()) gd_3088 = 0;
else gd_3088 = gd_3024;
if (f0_16()) {
if (f0_13()) {
gd_2928 = f0_9(li_0);
if (AccountFreeMargin() <= 0.0)
if (gia_3104[gi_3304] + gia_3104[gi_3308] == 0) continue;
f0_39(li_0);
}
}
}
}
}
}
}
gi_2880++;
if (gi_2880 >= CountOfCycles) gi_2880 = 0;
return (0);
}

void f0_39(int ai_0) {
double ld_16;
for (int li_4 = 0; li_4 < 2; li_4++) {
if (li_4 == 0) {
gi_3036 = gi_3304;
gs_3060 = “BUY”;
gi_2916 = 0;
gd_2984 = gd_2552;
} else {
gi_3036 = gi_3308;
gs_3060 = “SELL”;
gi_2916 = 1;
gd_2984 = gd_2544;
}
gd_2992 = 100.0 * MathFloor(gd_2984 / gd_2528 / 100.0) * gd_2528;
//gd_3188 = (gd_2584 – 56.0) / 34.0;
gd_3188 = 1;
/*if (IsDemo())*/ gd_3088 = 0;
if (gi_2828 == 1) {
gi_3052 = FALSE;
gd_2936 = gd_2928;
if (gi_2912 && gd_3268 > 0.0) {
if (gi_3036 == gi_3304 && gd_3276 < gda_3284[ai_0] && gda_3284[ai_0] – gd_3276 > gd_2560) {
gi_3052 = TRUE;
gi_2920 = gi_2876 + 710;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (dArb_EXR_TypeOfTakeProfit == 2) gd_2968 = gd_2944 + gd_2560 * gd_2528;
} else {
if (gi_3036 == gi_3308 && gd_3276 > gda_3284[ai_0] && gd_3276 – gda_3284[ai_0] > gd_2560) {
gi_3052 = TRUE;
gi_2920 = gi_2876 + 710;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (dArb_EXR_TypeOfTakeProfit == 2) gd_2968 = gd_2944 – gd_2560 * gd_2528;
}
}
}
gi_3056 = FALSE;
if (dUseGridTracking == 1 && gia_3104[gi_3036] > 0 && (!gi_2912)) {
if (gi_3036 == gi_3304) {
gd_3000 = gda_3108[gi_3036];
gd_3016 = gda_3112[gi_3036] * dGridStep_PR_B / 100.0;
} else {
gd_3000 = gda_3112[gi_3036];
gd_3016 = gda_3108[gi_3036] * dGridStep_PR_S / 100.0;
}
if (gi_3036 == gi_3304 && gd_2984 < gd_3000 – gd_3016 && gi_2592 != 0) {
gi_3056 = TRUE;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (dGridTakeProfit_PR_B > 0.0) gd_2968 = gd_2944 + NormalizeDouble(gda_3112[gi_3036] * dGridTakeProfit_PR_B / 100.0, gd_2536);
if (dGridStopLoss_PR_B > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gda_3112[gi_3036] * dGridStopLoss_PR_B / 100.0, gd_2536);
} else {
if (gi_3036 == gi_3308 && gd_2984 > gd_3000 + gd_3016 && gi_2596 != 0) {
gi_3056 = TRUE;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (dGridTakeProfit_PR_S > 0.0) gd_2968 = gd_2944 – NormalizeDouble(gda_3108[gi_3036] * dGridTakeProfit_PR_S / 100.0, gd_2536);
if (dGridStopLoss_PR_S > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gda_3108[gi_3036] * dGridStopLoss_PR_S / 100.0, gd_2536);
}
}
if (gi_3056) {
gi_2920 = gi_2876 + 110;
if (dGridRisk > 0.0) gd_2936 = f0_37(AccountFreeMargin() / 1000.0 * dGridRisk, gda_2496[ai_0]);
else gd_2936 = gda_2488[ai_0];
if (gd_2936 < gda_2488[ai_0]) gd_2936 = gda_2488[ai_0];
if (gd_2936 > gda_2492[ai_0]) gd_2936 = gda_2492[ai_0];
}
}
if (gi_3056) gi_3052 = TRUE;
if (!gi_3052 && dUseCloseOpeningGAP == 1) f0_48(ai_0);
if (UsePreventCheckingOrder && (!gi_3056))
if (!(f0_46(ai_0, gd_2984, gi_3036, gi_2916, gd_2984, 0))) continue;
if (!gi_3052 && CR_UseCorrection == 1) f0_0();
if (!gi_3052 && gia_2416[ai_0] == 1) f0_47(ai_0);
if (!gi_3052 && gi_2780 == 1 && gi_3160) f0_25();
if (!gi_3052 && gi_2708 == 1 && gi_2724 == 1 && MathAbs(gd_3120) > gd_2728) f0_6();
if (!gi_3052 && dUseTrendOrders_ParabolicSAR == 1) f0_42();
if (!gi_3052 && dUseOrders_Stochastic == 1) f0_36();
if (!gi_3052 && dUseTrendOrders_ADX == 1) f0_51();
if (!gi_3052 && dUseOrders_CCI == 1) f0_10();
if (!gi_3052 && dUseEA_SCL == 1) f0_27();
if (gi_3052) {
if ((!gi_3056) && !gi_2912) {
if (gi_2920 == gi_2876 + 210) {
if (gd_2820 > 0.0 && gd_2820 != 1.0 && gd_2928 > gda_2488[ai_0]) {
gd_2936 = f0_37(gd_2928 * gd_2820, gda_2496[ai_0]);
if (gd_2936 > gda_2492[ai_0]) gd_2936 = gda_2492[ai_0];
}
}
if (gi_2600 > 0) {
if (gi_2916 == 0) gd_2968 = gd_2944 + gi_2600 * gd_2528;
else
if (gi_2916 == 1) gd_2968 = gd_2944 – gi_2600 * gd_2528;
}
if (gi_2604 > 0) {
if (gi_2916 == 0) gd_2960 = gd_2944 – gi_2604 * gd_2528;
else
if (gi_2916 == 1) gd_2960 = gd_2944 + gi_2604 * gd_2528;
}
}
if (gi_2916 == 0) {
if (gd_2968 != 0.0 && gd_2968 – gd_2944 < gd_2568 * gd_2528) gd_2968 = gd_2944 + gd_2568 * gd_2528;
if (gd_2960 != 0.0 && gd_2944 – gd_2960 < gd_2568 * gd_2528) gd_2960 = gd_2944 – gd_2568 * gd_2528;
}
if (gi_2916 == 1) {
if (gd_2968 != 0.0 && gd_2944 – gd_2968 < gd_2568 * gd_2528) gd_2968 = gd_2944 – gd_2568 * gd_2528;
if (gd_2960 != 0.0 && gd_2960 – gd_2944 < gd_2568 * gd_2528) gd_2960 = gd_2944 + gd_2568 * gd_2528;
}
if (InverseTrading == 1 && (!gi_3056) && (!gi_2912)) {
ld_16 = gd_2560 * gd_2528;
if (gi_2916 == 0) {
gi_2916 = 1;
gi_3036 = gi_3308;
if (gd_2960 != 0.0) gd_2960 = gd_2944 – ld_16 + (gd_2944 – gd_2960);
if (gd_2968 != 0.0) gd_2968 = gd_2944 – ld_16 – (gd_2968 – gd_2944);
gd_2944 -= ld_16;
gd_2984 = gd_2544;
} else {
if (gi_2916 == 1) {
gi_2916 = 0;
gi_3036 = gi_3304;
if (gd_2960 != 0.0) gd_2960 = gd_2944 + ld_16 – (gd_2960 – gd_2944);
if (gd_2968 != 0.0) gd_2968 = gd_2944 + ld_16 + (gd_2944 – gd_2968);
gd_2944 += ld_16;
gd_2984 = gd_2552;
}
}
}
}
if (gi_3052) {
if ((!gi_3056) && !gi_2912) {
if (gi_3052)
if (!f0_46(ai_0, gd_2944, gi_3036, gi_2916, gd_2984, 1)) gi_3052 = FALSE;
if (gi_3052)
if (!f0_32(gd_2944, gi_2916, gd_2984)) gi_3052 = FALSE;
}
}
if (gi_3052) {
if (gi_504 == 1) {
}
gs_2976 = “”;
gi_3032 = f0_5(gs_2520, gi_2916, gd_2936, gd_2944, gia_2516[ai_0], gd_2960, gd_2968, gs_2976, gi_2920, 0, Green);
if (gi_3032 > 0) {
if (OrderSelect(gi_3032, SELECT_BY_TICKET, MODE_TRADES)) {
if (!(f0_13())) break;
continue;
}
} else {
if (gi_2920 == gi_2876 + 720) {
if (gi_3036 == gi_3304) gia_3296[ai_0] = 0;
if (gi_3036 == gi_3308) gia_3300[ai_0] = 0;
}
}
}
}
if (gia_2292[ai_0] == 1) f0_19(ai_0);
}
}

void f0_19(int ai_0) {
for (int li_4 = 0; li_4 < 2; li_4++) {
gi_2920 = gi_2876 + 0;
if (li_4 == 0) {
if (gi_3036 == gi_3304) {
if (gi_2644 < 0) continue;
gi_2916 = 4;
gi_3040 = gi_3320;
if (gd_2984 < gd_2992 + gi_2644 * gd_2528) gd_2944 = gd_2992 + gi_2644 * gd_2528;
else gd_2944 = gd_2992 + (gi_2644 + 100) * gd_2528;
} else {
if (gi_2652 < 0) continue;
gi_2916 = 5;
gi_3040 = gi_3324;
if (gd_2984 < gd_2992 + gi_2652 * gd_2528) gd_2944 = gd_2992 – (100 – gi_2652) * gd_2528;
else gd_2944 = gd_2992 + gi_2652 * gd_2528;
}
} else {
if (gi_3036 == gi_3304) {
if (gi_2648 < 0) continue;
gi_2916 = 2;
gi_3040 = gi_3312;
if (gd_2984 < gd_2992 + gi_2648 * gd_2528) gd_2944 = gd_2992 – (100 – gi_2648) * gd_2528;
else gd_2944 = gd_2992 + gi_2648 * gd_2528;
} else {
if (gi_2656 < 0) continue;
gi_2916 = 3;
gi_3040 = gi_3316;
if (gd_2984 < gd_2992 + gi_2656 * gd_2528) gd_2944 = gd_2992 + gi_2656 * gd_2528;
else gd_2944 = gd_2992 + (gi_2656 + 100) * gd_2528;
}
}
gs_3060 = f0_11(gi_2916);
if (gi_3036 == gi_3304) {
gd_2968 = gd_2944 + gi_2608 * gd_2528;
if (gi_2616 > 0) gd_2960 = gd_2944 – gi_2616 * gd_2528;
else gd_2960 = 0;
} else {
gd_2968 = gd_2944 – gi_2612 * gd_2528;
if (gi_2620 > 0) gd_2960 = gd_2944 + gi_2620 * gd_2528;
else gd_2960 = 0;
}
gi_3048 = TRUE;
if (gi_3048)
if (!f0_46(ai_0, gd_2944, gi_3036, gi_2916, gd_2984, 1)) gi_3048 = FALSE;
if (gi_3048) {
if (gi_2860 != 0)
if (MathAbs(gd_2944 – gd_2984) < gi_2860 * gd_2528) gi_3048 = FALSE;
if (gi_2864 != 0)
if (MathAbs(gd_2944 – gd_2984) > gi_2864 * gd_2528) gi_3048 = FALSE;
}
if (gi_3048)
if (gia_3104[gi_3036] > 0 && li_4 == 1) gi_3048 = FALSE;
if (gi_3048) {
if (gia_3104[gi_3040] > 0) {
if (gi_3040 == gi_3320 || gi_3040 == gi_3316) gd_3008 = gda_3108[gi_3040];
else gd_3008 = gda_3112[gi_3040];
if (gi_2188 != 0) gd_3016 = gi_2188 * gd_2528;
else gd_3016 = 1;
if (gi_3040 == gi_3320 || gi_3040 == gi_3316) {
if (gd_2944 > gd_3008 – gd_3016) gi_3048 = FALSE;
} else
if (gd_2944 < gd_3008 + gd_3016) gi_3048 = FALSE;
}
}
if (gi_3048 && gia_3104[gi_3036] > 0) {
if (f0_50(gd_2944, gi_3036, gd_3000)) {
if ((gi_3036 == gi_3304 && gi_2684 == 1) || (gi_3036 == gi_3308 && gi_2688 == 1)) {
gd_2968 = (gd_2944 + gd_3000) / 2.0;
gi_2920 = gi_2876 + 100;
}
} else gi_3048 = FALSE;
}
if (gi_3048 && gi_2744 > 0)
if (!f0_41(gd_2944, gi_3036)) gi_3048 = FALSE;
if (gi_3048)
if (!f0_32(gd_2944, gi_2916, gd_2984)) gi_3048 = FALSE;
if (gi_3048) {
gd_2936 = gd_2928;
gs_2976 = “”;
gi_3032 = f0_5(gs_2520, gi_2916, gd_2936, gd_2944, 0, gd_2960, gd_2968, gs_2976, gi_2920, 0, Green);
if (gi_3032 > 0) {
if (OrderSelect(gi_3032, SELECT_BY_TICKET, MODE_TRADES))
if (!(f0_13())) break;
}
}
}
}

void f0_25() {
double ld_0 = gd_2560 * gd_2528;
if (gi_3036 == gi_3304 && gd_2544 > gd_3164 && gd_2544 <= gd_3164 + (gd_3180 – ld_0) / 4.0) {
if (iOpen(gs_2520, gia_3328[0], 0) >= iClose(gs_2520, gia_3328[0], 1) && iClose(gs_2520, gia_3328[0], 1) > iClose(gs_2520, gia_3328[0], 2) && iClose(gs_2520, gia_3328[0],
2) > iClose(gs_2520, gia_3328[0], 3)) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = gd_2944 + NormalizeDouble((gd_3180 – ld_0) / 2.0, gd_2536);
if (gd_2812 > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * gd_2812 / 100.0, gd_2536);
else {
if (diFL_StopLoss_UseSAR == 1 && gd_3204 != 0.0 && gd_3204 < gd_2944) gd_2960 = gd_3204;
else gd_2960 = 0;
}
}
}
if (gi_3036 == gi_3308 && gd_2544 < gd_3172 && gd_2544 >= gd_3172 – (gd_3180 – ld_0) / 4.0) {
if (iOpen(gs_2520, gia_3328[0], 0) <= iClose(gs_2520, gia_3328[0], 1) && iClose(gs_2520, gia_3328[0], 1) < iClose(gs_2520, gia_3328[0], 2) && iClose(gs_2520, gia_3328[0],
2) < iClose(gs_2520, gia_3328[0], 3)) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = gd_2944 – NormalizeDouble((gd_3180 – ld_0) / 2.0, gd_2536);
if (gi_2612 > 0)
if (gd_2968 < gd_2944 – gi_2612 * gd_2528) gd_2968 = gd_2944 – gi_2612 * gd_2528;
if (gd_2812 > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * gd_2812 / 100.0, gd_2536);
else {
if (diFL_StopLoss_UseSAR == 1 && gd_3204 != 0.0 && gd_3204 > gd_2944) gd_2960 = gd_3204;
else gd_2960 = 0;
}
}
}
if (gi_3052) gi_2920 = gi_2876 + 210;
}

void f0_0() {
int li_4;
int li_8;
double ld_12;
double ld_20;
double ld_28 = 0;
double ld_36 = 0;
double ld_44 = 0;
double ld_52 = 0;
for (int li_0 = 0; li_0 < CR_AnalizMove_CountBars; li_0++) {
ld_12 = iLow(gs_2520, gia_3328[CR_AnalizMove_Period], li_0);
ld_20 = iHigh(gs_2520, gia_3328[CR_AnalizMove_Period], li_0);
if (ld_12 > 0.0) {
if (ld_28 == 0.0 || ld_12 < ld_28) {
ld_28 = ld_12;
li_4 = li_0;
}
}
if (ld_20 > 0.0) {
if (ld_36 == 0.0 || ld_20 > ld_36) {
ld_36 = ld_20;
li_8 = li_0;
}
}
}
for (li_0 = 0; li_0 < CR_AnalizFlat_CountBars; li_0++) {
ld_12 = iLow(gs_2520, gia_3328[CR_AnalizFlat_Period], li_0);
ld_20 = iHigh(gs_2520, gia_3328[CR_AnalizFlat_Period], li_0);
if (ld_12 > 0.0)
if (ld_44 == 0.0 || ld_12 < ld_44) ld_44 = ld_12;
if (ld_20 > 0.0)
if (ld_52 == 0.0 || ld_20 > ld_52) ld_52 = ld_20;
}
if (ld_28 == 0.0 || ld_36 == 0.0 || ld_44 == 0.0 || ld_52 == 0.0) return;
if (ld_36 – ld_28 >= gd_2984 * CR_WaitCorrectionAfterMove_PR / 100.0) {
if (ld_52 – ld_44 <= gd_2984 * CR_WaitCorrectionAfterFlat_PR / 100.0) {
if (gi_3036 == gi_3304 && gd_2984 <= ld_28 + gd_2984 * CR_MaxDistanceFromBottom_PR / 100.0) {
for (li_0 = 0; li_0 < li_4; li_0++) {
ld_20 = iHigh(gs_2520, gia_3328[CR_AnalizMove_Period], li_0);
if (ld_20 > ld_28 + gd_2984 * (CR_MaxDistanceFromBottom_PR + CR_WaitCorrectionAfterMove_PR) / 100.0) return;
}
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = gd_2944 + NormalizeDouble(gd_2984 * CR_SizeCorrection_PR / 100.0, gd_2536);
if (CR_StopLoss_PR > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * CR_StopLoss_PR / 100.0, gd_2536);
else {
if (CR_StopLoss_UseSAR == 1 && gd_3204 != 0.0 && gd_3204 < gd_2944) gd_2960 = gd_3204;
else gd_2960 = 0;
}
}
if (gi_3036 == gi_3308 && gd_2984 >= ld_36 – gd_2984 * CR_MaxDistanceFromBottom_PR / 100.0) {
for (li_0 = 0; li_0 < li_8; li_0++) {
ld_12 = iLow(gs_2520, gia_3328[CR_AnalizMove_Period], li_0);
if (ld_12 < ld_36 – gd_2984 * (CR_MaxDistanceFromBottom_PR + CR_WaitCorrectionAfterMove_PR) / 100.0) return;
}
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = gd_2944 – NormalizeDouble(gd_2984 * CR_SizeCorrection_PR / 100.0, gd_2536);
if (CR_StopLoss_PR > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * CR_StopLoss_PR / 100.0, gd_2536);
else {
if (CR_StopLoss_UseSAR == 1 && gd_3204 != 0.0 && gd_3204 > gd_2944) gd_2960 = gd_3204;
else gd_2960 = 0;
}
}
if (gi_3052) gi_2920 = gi_2876 + 410;
}
}
}

void f0_47(int ai_0) {
double lda_56[];
double lda_60[];
double ld_128;
double ld_136;
int li_16 = gia_2420[ai_0];
double ld_24 = gda_2428[ai_0];
double ld_32 = gda_2432[ai_0];
int li_20 = gia_2436[ai_0];
double ld_40 = gda_2444[ai_0];
double ld_48 = gda_2448[ai_0];
ArrayResize(lda_56, gia_2424[ai_0]);
ArrayResize(lda_60, gia_2424[ai_0]);
int li_12 = 0;
int li_8 = 0;
double ld_80 = gd_2544;
double ld_88 = gd_2544;
double ld_96 = gd_2544;
double ld_104 = gd_2544;
double ld_112 = gd_2544;
double ld_120 = gd_2544;
double ld_64 = 0;
double ld_72 = 0;
for (int li_4 = 0; li_4 < gia_2424[ai_0]; li_4++) {
if (gi_3036 == gi_3304) ld_64 = iLow(gs_2520, gia_3328[li_16], li_4);
if (gi_3036 == gi_3308) ld_72 = iHigh(gs_2520, gia_3328[li_16], li_4);
if (ld_64 > 0.0) {
if (ld_64 < ld_80 || (ld_88 – ld_80) / ld_80 < ld_24 / 100.0) {
ld_80 = ld_64;
if (ld_88 < ld_96) ld_88 = ld_96;
ld_96 = ld_64;
} else
if (ld_64 > ld_96) ld_96 = ld_64;
if ((ld_96 – ld_80) / ld_80 >= ld_24 / 100.0 && (ld_88 – ld_80) / ld_80 >= ld_24 / 100.0) {
lda_60[li_12] = ld_80;
li_12++;
ld_80 = ld_64;
ld_88 = ld_64;
ld_96 = ld_64;
}
}
if (ld_72 > 0.0) {
if (ld_72 > ld_104 || (ld_104 – ld_120) / ld_104 < ld_24 / 100.0) {
ld_104 = ld_72;
if (ld_120 > ld_112) ld_120 = ld_112;
ld_112 = ld_72;
} else
if (ld_72 < ld_112) ld_112 = ld_72;
if ((ld_104 – ld_112) / ld_104 >= ld_24 / 100.0 && (ld_104 – ld_120) / ld_104 >= ld_24 / 100.0) {
lda_56[li_8] = ld_104;
li_8++;
ld_104 = ld_72;
ld_120 = ld_72;
ld_112 = ld_72;
}
}
}
if (gi_3036 == gi_3304) {
for (li_4 = 0; li_4 < li_12; li_4++) {
if (gd_2544 > lda_60[li_4] && gd_2544 <= lda_60[li_4] * (ld_32 / 100.0 + 1.0)) {
if (iLow(gs_2520, gia_3328[li_16], 0) < lda_60[li_4] || iLow(gs_2520, gia_3328[li_16], 1) < lda_60[li_4]) continue;
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
break;
}
}
if (gi_3052) {
ArrayResize(lda_56, gia_2440[ai_0]);
li_8 = 0;
ld_104 = gd_2544;
ld_112 = gd_2544;
ld_120 = gd_2544;
ld_72 = 0;
for (li_4 = 0; li_4 < gia_2440[ai_0]; li_4++) {
ld_72 = iHigh(gs_2520, gia_3328[li_20], li_4);
if (ld_72 > 0.0) {
if (ld_72 > ld_104 || (ld_104 – ld_120) / ld_104 < ld_40 / 100.0) {
ld_104 = ld_72;
if (ld_120 > ld_112) ld_120 = ld_112;
ld_112 = ld_72;
} else
if (ld_72 < ld_112) ld_112 = ld_72;
if ((ld_104 – ld_112) / ld_104 >= ld_40 / 100.0 && (ld_104 – ld_120) / ld_104 >= ld_40 / 100.0) {
lda_56[li_8] = ld_104;
li_8++;
ld_104 = ld_72;
ld_120 = ld_72;
ld_112 = ld_72;
}
}
}
ld_128 = 0;
for (li_4 = 0; li_4 < li_8; li_4++)
if (gd_2544 < lda_56[li_4] && gd_2544 <= lda_56[li_4] * (1 – 5.0 * ld_48 / 100.0) && lda_56[li_4] < ld_128 || ld_128 == 0.0) ld_128 = lda_56[li_4];
if (ld_128 > 0.0) gd_2968 = NormalizeDouble(ld_128 * (1 – ld_48 / 100.0), gd_2536);
else gd_2968 = NormalizeDouble(gd_2944 * (5.0 * ld_48 / 100.0 + 1.0), gd_2536);
if (gda_2452[ai_0] > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * gda_2452[ai_0] / 100.0, gd_2536);
}
}
if (gi_3036 == gi_3308) {
for (li_4 = 0; li_4 < li_8; li_4++) {
if (gd_2544 < lda_56[li_4] && gd_2544 >= lda_56[li_4] * (1 – ld_32 / 100.0)) {
if (iHigh(gs_2520, gia_3328[li_16], 0) > lda_56[li_4] || iHigh(gs_2520, gia_3328[li_16], 1) > lda_56[li_4]) continue;
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
break;
}
}
if (gi_3052) {
ArrayResize(lda_60, gia_2440[ai_0]);
li_12 = 0;
ld_80 = gd_2544;
ld_88 = gd_2544;
ld_96 = gd_2544;
ld_64 = 0;
for (li_4 = 0; li_4 < gia_2440[ai_0]; li_4++) {
ld_64 = iLow(gs_2520, gia_3328[li_20], li_4);
if (ld_64 > 0.0) {
if (ld_64 < ld_80 || (ld_88 – ld_80) / ld_80 < ld_40 / 100.0) {
ld_80 = ld_64;
if (ld_88 < ld_96) ld_88 = ld_96;
ld_96 = ld_64;
} else
if (ld_64 > ld_96) ld_96 = ld_64;
if ((ld_96 – ld_80) / ld_80 >= ld_40 / 100.0 && (ld_88 – ld_80) / ld_80 >= ld_40 / 100.0) {
lda_60[li_12] = ld_80;
li_12++;
ld_80 = ld_64;
ld_88 = ld_64;
ld_96 = ld_64;
}
}
}
ld_136 = 0;
for (li_4 = 0; li_4 < li_12; li_4++)
if (gd_2544 > lda_60[li_4] && gd_2544 >= lda_60[li_4] * (5.0 * ld_48 / 100.0 + 1.0) && lda_60[li_4] > ld_136 || ld_136 == 0.0) ld_136 = lda_60[li_4];
if (ld_136 > 0.0) gd_2968 = NormalizeDouble(ld_136 * (ld_48 / 100.0 + 1.0), gd_2536) + gd_2560 * gd_2528;
else gd_2968 = NormalizeDouble(gd_2944 * (1 – 5.0 * ld_48 / 100.0), gd_2536);
if (gda_2452[ai_0] > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * gda_2452[ai_0] / 100.0, gd_2536);
}
}
if (gi_3052) gi_2920 = gi_2876 + 420;
}

void f0_42() {
double ld_0 = iSAR(gs_2520, gia_3328[diSAR_RO_TimeFrame], diSAR_RO_Step, diSAR_RO_Maximum, 0);
double ld_8 = iSAR(gs_2520, gia_3328[diSAR_RO_TimeFrame], diSAR_RO_Step, diSAR_RO_Maximum, 1);
double ld_16 = iSAR(gs_2520, gia_3328[diSAR_RO_TimeFrame], diSAR_RO_Step, diSAR_RO_Maximum, 2);
double ld_24 = iSAR(gs_2520, gia_3328[diSAR_RO_TimeFrame], diSAR_RO_Step, diSAR_RO_Maximum, 3);
double ld_32 = iClose(gs_2520, gia_3328[diSAR_RO_TimeFrame], 1);
double ld_40 = iClose(gs_2520, gia_3328[diSAR_RO_TimeFrame], 2);
double ld_48 = iClose(gs_2520, gia_3328[diSAR_RO_TimeFrame], 3);
if (gi_3036 == gi_3304 && ld_0 < gd_2984 && ld_8 < ld_32 && ld_16 > ld_40 && ld_24 > ld_48) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
}
if (gi_3036 == gi_3308 && ld_0 > gd_2984 && ld_8 > ld_32 && ld_16 < ld_40 && ld_24 < ld_48) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
}
if (gi_3052) gi_2920 = gi_2876 + 610;
}

void f0_36() {
double ld_0;
bool li_8;
int li_12;
bool li_16;
if (gi_3036 == gi_3304 && gd_3228 < gd_3220 && gd_3244 < gd_3236 && gd_3260 > gd_3252) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diStoch_RO_TakeProfit_PR > 0.0) gd_2968 = gd_2944 + NormalizeDouble(gd_2984 * diStoch_RO_TakeProfit_PR / 100.0, gd_2536);
if (diStoch_RO_StopLoss_PR > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * diStoch_RO_StopLoss_PR / 100.0, gd_2536);
if (diStoch_RO_UseAverageTP == 1 && gia_3104[gi_2916] != 0) {
ld_0 = gda_3108[gi_2916];
if (ld_0 > gd_2944) gd_2968 = gd_2944 + (ld_0 – gd_2944) / 2.0;
}
}
if (gi_3036 == gi_3308 && gd_3228 > gd_3220 && gd_3244 > gd_3236 && gd_3260 < gd_3252) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diStoch_RO_TakeProfit_PR > 0.0) gd_2968 = gd_2944 – NormalizeDouble(gd_2984 * diStoch_RO_TakeProfit_PR / 100.0, gd_2536);
if (diStoch_RO_StopLoss_PR > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * diStoch_RO_StopLoss_PR / 100.0, gd_2536);
if (diStoch_RO_UseAverageTP == 1 && gia_3104[gi_2916] != 0) {
ld_0 = gda_3112[gi_2916];
if (ld_0 < gd_2944) gd_2968 = gd_2944 – (gd_2944 – ld_0) / 2.0;
}
}
if (gi_3052) {
gi_2920 = gi_2876 + 620;
if (diStoch_RO_ReverseClose == 1) {
if (gi_2916 == 0) li_8 = TRUE;
else
if (gi_2916 == 1) li_8 = FALSE;
if (diStoch_RO_RevCloseOnlyProfit == 1) li_16 = TRUE;
else li_16 = FALSE;
li_12 = OrdersTotal();
f0_7(li_8, gs_2520, 1, li_16, gi_2920);
if (OrdersTotal() != li_12) f0_13();
}
}
}

void f0_51() {
double lda_16[3];
int li_20;
bool li_24;
gi_2920 = gi_2876 + 630;
double ld_0 = iADX(gs_2520, gia_3328[diADX_RO_TimeFrame], diADX_RO_Period, diADX_RO_TypePrice, MODE_PLUSDI, 0);
double ld_8 = iADX(gs_2520, gia_3328[diADX_RO_TimeFrame], diADX_RO_Period, diADX_RO_TypePrice, MODE_MINUSDI, 0);
lda_16[0] = iADX(gs_2520, gia_3328[diADX_RO_TimeFrame], diADX_RO_Period, diADX_RO_TypePrice, MODE_MAIN, 0);
lda_16[1] = iADX(gs_2520, gia_3328[diADX_RO_TimeFrame], diADX_RO_Period, diADX_RO_TypePrice, MODE_MAIN, 1);
lda_16[2] = iADX(gs_2520, gia_3328[diADX_RO_TimeFrame], diADX_RO_Period, diADX_RO_TypePrice, MODE_MAIN, 2);
if (diADX_RO_CloseOnlyProfit != -1) {
if (diADX_RO_CloseOnlyProfit == 1) li_24 = TRUE;
else li_24 = FALSE;
li_20 = OrdersTotal();
if (diADX_RO_ValueToCloseOrders != 0.0 && lda_16[1] >= diADX_RO_ValueToCloseOrders && lda_16[0] < lda_16[1] && lda_16[1] < lda_16[2]) f0_7(-1, gs_2520, 1, 1, gi_2920);
if (lda_16[0] < lda_16[1] && lda_16[1] < lda_16[2] && lda_16[1] < diADX_RO_ValueSignalEndTrend && lda_16[2] >= diADX_RO_ValueSignalEndTrend) f0_7(-1, gs_2520, 1, li_24, gi_2920);
if (ld_0 < ld_8) f0_7(OP_BUY, gs_2520, 1, li_24, gi_2920);
if (ld_0 > ld_8) f0_7(OP_SELL, gs_2520, 1, li_24, gi_2920);
if (OrdersTotal() != li_20) f0_13();
}
if (lda_16[0] > lda_16[1] && lda_16[1] > lda_16[2] && lda_16[1] >= diADX_RO_ValueSignalTrend && lda_16[2] < diADX_RO_ValueSignalTrend) {
if (gi_3036 == gi_3304 && ld_0 > ld_8) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diADX_RO_TakeProfit_PR > 0.0) gd_2968 = gd_2944 + NormalizeDouble(gd_2984 * diADX_RO_TakeProfit_PR / 100.0, gd_2536);
if (diADX_RO_StopLoss_PR > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * diADX_RO_StopLoss_PR / 100.0, gd_2536);
if (diADX_RO_UseAverageTP == 1 && gia_3104[gi_2916] != 0) {
gd_3000 = gda_3108[gi_2916];
if (gd_3000 > gd_2944) {
gd_2968 = gd_2944 + (gd_3000 – gd_2944) / 2.0;
return;
}
}
} else {
if (gi_3036 == gi_3308 && ld_0 < ld_8) {
gi_3052 = TRUE;
gi_2916 = 1;

gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diADX_RO_TakeProfit_PR > 0.0) gd_2968 = gd_2944 – NormalizeDouble(gd_2984 * diADX_RO_TakeProfit_PR / 100.0, gd_2536);
if (diADX_RO_StopLoss_PR > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * diADX_RO_StopLoss_PR / 100.0, gd_2536);
if (diADX_RO_UseAverageTP == 1 && gia_3104[gi_2916] != 0) {
gd_3000 = gda_3112[gi_2916];
if (gd_3000 < gd_2944) gd_2968 = gd_2944 – (gd_2944 – gd_3000) / 2.0;
}
}
}
}
}

void f0_10() {
bool li_24;
int li_28;
bool li_32;
double ld_0 = iCCI(gs_2520, gia_3328[diCCI_RO_TimeFrame], diCCI_RO_Period_Slow, diCCI_RO_TypePrice, 0);
double ld_8 = iCCI(gs_2520, gia_3328[diCCI_RO_TimeFrame], diCCI_RO_Period_Medium, diCCI_RO_TypePrice, 0);
double ld_16 = iCCI(gs_2520, gia_3328[diCCI_RO_TimeFrame], diCCI_RO_Period_Fast, diCCI_RO_TypePrice, 0);
if (gi_3036 == gi_3304 && ld_8 <= 0.0 && ld_0 >= 0.0 && ld_16 > 0.0) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diCCI_RO_TakeProfit_PR > 0.0) gd_2968 = gd_2944 + NormalizeDouble(gd_2984 * diCCI_RO_TakeProfit_PR / 100.0, gd_2536);
if (diCCI_RO_StopLoss_PR > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * diCCI_RO_StopLoss_PR / 100.0, gd_2536);
}
if (gi_3036 == gi_3308 && ld_8 >= 0.0 && ld_0 <= 0.0 && ld_16 < 0.0) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diCCI_RO_TakeProfit_PR > 0.0) gd_2968 = gd_2944 – NormalizeDouble(gd_2984 * diCCI_RO_TakeProfit_PR / 100.0, gd_2536);
if (diCCI_RO_StopLoss_PR > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * diCCI_RO_StopLoss_PR / 100.0, gd_2536);
}
if (gi_3052) {
gi_2920 = gi_2876 + 640;
if (diCCI_RO_ReverseClose == 1) {
if (gi_2916 == 0) li_24 = TRUE;
else
if (gi_2916 == 1) li_24 = FALSE;
if (diCCI_RO_RevCloseOnlyProfit == 1) li_32 = TRUE;
else li_32 = FALSE;
li_28 = OrdersTotal();
f0_7(li_24, gs_2520, 1, li_32, gi_2920);
if (OrdersTotal() != li_28) f0_13();
}
}
}

int f0_40() {
int li_0 = 60 * gi_1132 + dSCL_StartWorkMinute;
int li_4 = 60 * gi_1144 + dSCL_EndWorkMinute;
int li_8 = 60 * TimeHour(TimeCurrent()) + TimeMinute(TimeCurrent());
if (li_0 == li_4) return (1);
if (li_0 < li_4) {
if (!(li_8 >= li_0 && li_8 <= li_4)) return (0);
return (1);
}
if (li_8 > li_4 && li_8 < li_0) return (0);
return (1);
}

void f0_27() {
bool li_24;
int li_28;
bool li_32;
if (dSCL_MaxSpread != 0)
if (gd_2560 > dSCL_MaxSpread) return;
if (dSCL_UseTimeWork == 1)
if (!(f0_40())) return;
double ld_0 = iRSI(gs_2520, gia_3328[diSCL_RSI1_TimeFrame], diSCL_RSI1_Period, PRICE_CLOSE, 0);
double ld_8 = iRSI(gs_2520, gia_3328[diSCL_RSI2_TimeFrame], diSCL_RSI2_Period, PRICE_CLOSE, 0);
double ld_16 = iMA(gs_2520, gia_3328[diSCL_MA_TimeFrame], diSCL_MA_Period, 0, MODE_SMA, PRICE_CLOSE, 1);
if (gi_3036 == gi_3304 && ld_0 < diSCL_RSI1_Value || ld_8 < diSCL_RSI2_Value && ld_16 >= gd_2544 * (diSCL_MinDistFromMA_PR / 100.0 + 1.0)) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diSCL_ShowTakeProfit_PR > 0.0) gd_2968 = gd_2944 + NormalizeDouble(gd_2984 * diSCL_ShowTakeProfit_PR / 100.0, gd_2536);
if (diSCL_ShowStopLoss_PR > 0.0) gd_2960 = gd_2944 – NormalizeDouble(gd_2984 * diSCL_ShowStopLoss_PR / 100.0, gd_2536);
}
if (gi_3036 == gi_3308 && ld_0 > 100 – diSCL_RSI1_Value || ld_8 > 100 – diSCL_RSI2_Value && ld_16 <= gd_2544 * (1 – diSCL_MinDistFromMA_PR / 100.0)) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diSCL_ShowTakeProfit_PR > 0.0) gd_2968 = gd_2944 – NormalizeDouble(gd_2984 * diSCL_ShowTakeProfit_PR / 100.0, gd_2536);
if (diSCL_ShowStopLoss_PR > 0.0) gd_2960 = gd_2944 + NormalizeDouble(gd_2984 * diSCL_ShowStopLoss_PR / 100.0, gd_2536);
}
if (gi_3052) {
gi_2920 = gi_2876 + 220;
if (diSCL_ReverseClose == 1) {
if (gi_2916 == 0) li_24 = TRUE;
else
if (gi_2916 == 1) li_24 = FALSE;
if (diSCL_RevCloseOnlyProfit == 1) li_32 = TRUE;
else li_32 = FALSE;
li_28 = OrdersTotal();
f0_7(li_24, gs_2520, 1, li_32, gi_2920);
if (OrdersTotal() != li_28) f0_13();
}
}
}

void f0_48(int ai_0) {
double ld_12;
double ld_20;
double ld_28;
if (dUseCloseOpeningGAP != 1 || !f0_35(gs_2520, CustomNameForCurrencyPair)) return;
int li_8 = TimeCurrent();
if (gi_3036 == gi_3304 && TimeDayOfYear(li_8) == gia_3296[ai_0]) return;
if (gi_3036 == gi_3308 && TimeDayOfYear(li_8) == gia_3300[ai_0]) return;
if (TimeDayOfWeek(li_8) == 1) {
if (TimeDayOfYear(gd_2576) == TimeDayOfYear(li_8)) {
if (gi_3036 == gi_3304) gia_3296[ai_0] = TimeDayOfYear(li_8);
if (gi_3036 == gi_3308) gia_3300[ai_0] = TimeDayOfYear(li_8);
ld_20 = iClose(gs_2520, PERIOD_D1, 1);
ld_12 = iOpen(gs_2520, PERIOD_D1, 0);
if (ld_20 <= 0.0 || ld_12 <= 0.0) return;
ld_28 = 100.0 * (MathAbs(ld_20 – ld_12) / ld_20);
if (MathAbs(ld_20 – ld_12) > gd_2560 * gd_2528 && (gi_3036 == gi_3304 && ld_12 < ld_20) || (gi_3036 == gi_3308 && ld_12 > ld_20)) Print(“COG: Close = “, ld_20, ” Open = “, ld_12, ” Abs.GAP = “, MathAbs(ld_20 – ld_12), ” GAP_PR = “, ld_28);
if (ld_28 >= diCOG_MinSizeGAP_PR) {
if (diCOG_MaxSizeGAP_PR > 0.0 && ld_28 > diCOG_MaxSizeGAP_PR) return;
if (gi_3036 == gi_3304 && ld_12 < ld_20 && gd_2544 <= ld_12) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diCOG_TakeProfit_KF_GAP > 0.0) gd_2968 = gd_2944 + NormalizeDouble((ld_20 – ld_12) * diCOG_TakeProfit_KF_GAP, gd_2536);
if (diCOG_StopLoss_KF_GAP > 0.0) gd_2960 = gd_2944 – NormalizeDouble((ld_20 – ld_12) * diCOG_StopLoss_KF_GAP, gd_2536);
}
if (gi_3036 == gi_3308 && ld_12 > ld_20 && gd_2544 >= ld_12) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
gd_2968 = 0;
gd_2960 = 0;
if (diCOG_TakeProfit_KF_GAP > 0.0) gd_2968 = gd_2944 – NormalizeDouble((gd_2544 – ld_20) * diCOG_TakeProfit_KF_GAP, gd_2536);
if (diCOG_StopLoss_KF_GAP > 0.0) gd_2960 = gd_2944 + NormalizeDouble((gd_2544 – ld_20) * diCOG_StopLoss_KF_GAP, gd_2536);
}
if (gi_3052) gi_2920 = gi_2876 + 720;
}
}
}
}

void f0_6() {
if (gi_3036 == gi_3304 && gd_3120 > 0.0) {
gi_3052 = TRUE;
gi_2916 = 0;
gd_2944 = gd_2984;
if (gi_2736 == 1) gd_2968 = gd_2944 + MarketInfo(gs_2520, MODE_STOPLEVEL) * gd_2528;
if (gi_2740 > 0) gd_2960 = gd_2944 – gi_2740 * gd_2528;
else gd_2960 = 0;
}
if (gi_3036 == gi_3308 && gd_3120 < 0.0) {
gi_3052 = TRUE;
gi_2916 = 1;
gd_2944 = gd_2984;
if (gi_2736 == 1) gd_2968 = gd_2944 – MarketInfo(gs_2520, MODE_STOPLEVEL) * gd_2528;
else gd_2968 = gd_2944 – gi_2612 * gd_2528;
if (gi_2740 > 0) gd_2960 = gd_2944 + gi_2740 * gd_2528;
else gd_2960 = 0;
}
if (gi_3052) gi_2920 = gi_2876 + 300;
}

bool f0_46(int ai_0, double ad_4, int ai_12, int ai_16, double ad_20, bool ai_28 = TRUE) {
int li_44;
double ld_48;
string ls_56;
double ld_64;
double ld_72;
double ld_80;
double ld_88;
double ld_96;
double ld_104;
double ld_112;
if (gi_2856 != 0)
if (gia_3104[gi_3304] + gia_3104[gi_3308] >= gi_2856) return (FALSE);
if (ai_12 == gi_3304) {
if (gi_2592 == 0) return (FALSE);
if (ai_16 == OP_BUY && gi_2828 == 0) return (FALSE);
if (gd_2832 > 0.0 && ad_4 >= gd_2832) return (FALSE);
if (gia_2220[ai_0] == 1 && gda_2212[ai_0] <= 0.0) return (FALSE);
}
if (ai_12 == gi_3308) {
if (gi_2596 == 0) return (FALSE);
if (ai_16 == OP_SELL && gi_2828 == 0) return (FALSE);
if (gd_2848 > 0.0 && ad_4 <= gd_2848) return (FALSE);
if (gia_2220[ai_0] == 1 && gda_2216[ai_0] <= 0.0) return (FALSE);
}
if (MaxOpenValPosition > 0.0) {
if (f0_35(gs_2520, CustomNameForCurrencyPair)) {
for (int li_36 = 0; li_36 < 2; li_36++) {
ls_56 = f0_20(gs_2520, li_36 + 1, CustomNameForCurrencyPair);
ld_48 = 0;
for (int li_40 = 0; li_40 < gi_3068; li_40++) {
if (gsa_3076[li_40] == ls_56) {
ld_48 = gda_3080[li_40] – gda_3084[li_40];
if (!((ai_12 == gi_3304 && li_36 == 1) || (ai_12 == gi_3308 && li_36 == 0))) break;
ld_48 = -ld_48;
break;
}
}
if (ld_48 > gd_2928 * MaxOpenValPosition) return (FALSE);
}
}
}
if (gi_2920 == gi_2876 + 720) return (TRUE);
if (!f0_50(ad_4, ai_12, gd_3000)) return (FALSE);
if (gi_2912) return (TRUE);
if (!f0_41(ad_4, ai_12)) return (FALSE);
if (dUseFilterMaxMin1 == 1) {
ld_80 = 0;
ld_88 = 0;
for (int li_32 = 0; li_32 < dMaxMin_Filter_CountBars1; li_32++) {
ld_64 = iLow(gs_2520, gia_3328[dMaxMin_Filter_TimeFrame1], li_32);
ld_72 = iHigh(gs_2520, gia_3328[dMaxMin_Filter_TimeFrame1], li_32);
if (ld_64 > 0.0)
if (ld_80 == 0.0 || ld_64 < ld_80) ld_80 = ld_64;
if (ld_72 > 0.0)
if (ld_88 == 0.0 || ld_72 > ld_88) ld_88 = ld_72;
}
if (ai_12 == gi_3304 && ld_88 > 0.0 && ad_4 >= ld_88 * (1 – dMaxMin_LimitDistance_PR1 / 100.0)) return (FALSE);
if (ai_12 == gi_3308 && ld_80 > 0.0 && ad_4 <= ld_80 * (dMaxMin_LimitDistance_PR1 / 100.0 + 1.0)) return (FALSE);
}
if (dUseFilterMaxMin2 == 1) {
ld_80 = 0;
ld_88 = 0;
for (li_32 = 0; li_32 < dMaxMin_Filter_CountBars2; li_32++) {
ld_64 = iLow(gs_2520, gia_3328[dMaxMin_Filter_TimeFrame2], li_32);
ld_72 = iHigh(gs_2520, gia_3328[dMaxMin_Filter_TimeFrame2], li_32);
if (ld_64 > 0.0)
if (ld_80 == 0.0 || ld_64 < ld_80) ld_80 = ld_64;
if (ld_72 > 0.0)
if (ld_88 == 0.0 || ld_72 > ld_88) ld_88 = ld_72;
}
if (ai_12 == gi_3304 && ld_88 > 0.0 && ad_4 >= ld_88 * (1 – dMaxMin_LimitDistance_PR2 / 100.0)) return (FALSE);
if (ai_12 == gi_3308 && ld_80 > 0.0 && ad_4 <= ld_80 * (dMaxMin_LimitDistance_PR2 / 100.0 + 1.0)) return (FALSE);
}
if (gi_2708 == 1) {
if (ai_12 == gi_3304 && gd_3120 < 0.0) return (FALSE);
if (ai_12 == gi_3308 && gd_3120 > 0.0) return (FALSE);
}
if (gi_2692 == 1) {
if (ai_12 == gi_3304 && gd_3128 < 0.0) return (FALSE);
if (ai_12 == gi_3308 && gd_3128 > 0.0) return (FALSE);
}
if (dUseTrendFilterOsMA == 1) {
if (gd_3196 != 0.0) {
if (ai_12 == gi_3304 && gd_3196 < 0.0) return (FALSE);
if (ai_12 == gi_3308 && gd_3196 > 0.0) return (FALSE);
}
}
if (dUseTrendFilterSAR == 1) {
if (gd_3204 != 0.0) {
if (ai_12 == gi_3304 && gd_3204 > ad_4) return (FALSE);
if (ai_12 == gi_3308 && gd_3204 < ad_4) return (FALSE);
}
}
if (ai_28) {
if (dUseTrendFilterADX == 1) {
ld_96 = iADX(gs_2520, gia_3328[diADX_Filter_TimeFrame], diADX_Filter_Period, diADX_Filter_TypePrice, MODE_PLUSDI, 0);
ld_104 = iADX(gs_2520, gia_3328[diADX_Filter_TimeFrame], diADX_Filter_Period, diADX_Filter_TypePrice, MODE_MINUSDI, 0);
ld_112 = iADX(gs_2520, gia_3328[diADX_Filter_TimeFrame], diADX_Filter_Period, diADX_Filter_TypePrice, MODE_MAIN, 0);
if (ld_96 != 0.0 && ld_104 != 0.0 && ld_112 >= diADX_Filter_ValueSignalTrend) {
if (ai_12 == gi_3304 && ld_104 > ld_96) return (FALSE);
if (ai_12 == gi_3308 && ld_96 > ld_104) return (FALSE);
}
}
if (BlockOpenWorseOrder_Minutes > 0) {
li_44 = OrdersHistoryTotal();
for (li_32 = 0; li_32 < li_44; li_32++) {
if (OrderSelect(li_32, SELECT_BY_POS, MODE_HISTORY)) {
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
if (OrderType() == ai_16) {
if (TimeCurrent() – OrderCloseTime() <= 60 * BlockOpenWorseOrder_Minutes) {
if (ai_16 == OP_BUY) {
if (ad_4 < OrderClosePrice()) continue;
return (FALSE);
}
if (ai_16 == OP_SELL)
if (ad_4 <= OrderClosePrice()) return (FALSE);
}
}
}
}
}
}
}
}
return (TRUE);
}

bool f0_32(double ad_0, int ai_8, double ad_12) {
int li_32;
int li_36;
int li_40;
int li_44;
double ld_48;
double ld_56;
if (ai_8 == 0 || ai_8 == 2)
if (!f0_17(OP_BUYLIMIT, gs_2520)) return (FALSE);
if (ai_8 == 1 || ai_8 == 3)
if (!f0_17(OP_SELLLIMIT, gs_2520)) return (FALSE);
if (gi_2856 != 0) {
li_36 = 0;
li_32 = OrdersTotal();
for (int li_20 = 0; li_20 < li_32; li_20++) {
if (OrderSelect(li_20, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol() == gs_2520)
if (f0_29()) li_36++;
}
}
while (li_36 >= gi_2856) {
ld_56 = 0;
for (li_20 = 0; li_20 < li_32; li_20++) {
if (OrderSelect(li_20, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
li_40 = OrderType();
if (li_40 == OP_BUYLIMIT || li_40 == OP_BUYSTOP) ld_48 = MathAbs(gd_2552 – OrderOpenPrice());
else {
if (!(li_40 == OP_SELLLIMIT || li_40 == OP_SELLSTOP)) continue;
ld_48 = MathAbs(gd_2544 – OrderOpenPrice());
}
if (ld_48 > ld_56) {
ld_56 = ld_48;
li_44 = OrderTicket();
}
}
}
}
}
if (ld_56 <= MathAbs(ad_0 – ad_12)) return (FALSE);
if (!(f0_23(li_44))) return (FALSE);
li_36–;
li_32 = OrdersTotal();
continue;
return (FALSE);
return (FALSE);
}
}
return (TRUE);
}

int f0_50(double ad_0, int ai_8, double &ad_12) {
double ld_20;
if (gia_3104[ai_8] == 0) return (1);
if (ai_8 == gi_3304 && gi_2660 == 0) return (0);
if (ai_8 == gi_3308 && gi_2664 == 0) return (0);
if (ai_8 == gi_3304) {
ad_12 = gda_3108[ai_8];
ld_20 = gda_3112[ai_8] * gd_2668 / 100.0;
} else {
ad_12 = gda_3112[ai_8];
ld_20 = gda_3112[ai_8] * gd_2676 / 100.0;
}
if (ai_8 == gi_3304) {
if (ad_0 <= ad_12 – ld_20) return (1);
return (0);
}
if (ad_0 < ad_12 + ld_20) return (0);
return (1);
}

bool f0_41(double ad_0, int ai_8) {
for (int li_20 = 0; li_20 < gi_2744; li_20++) {
switch (li_20) {
case 0:
gd_3152 = gd_2748;
break;
case 1:
gd_3152 = gd_2764;
break;
default:
continue;
if (ai_8 == gi_3304 && gda_3136[li_20] > 0.0 && ad_0 >= gda_3136[li_20] + ad_0 * gd_3152 / 100.0) return (FALSE);
if (!(ai_8 == gi_3308 && gda_3140[li_20] > 0.0 && ad_0 <= gda_3140[li_20] – ad_0 * gd_3152 / 100.0)) continue;
return (FALSE);
}
}
return (TRUE);
}

double f0_9(int ai_0) {
double ld_4;
if (gda_2240[ai_0] > 0.0) ld_4 = f0_37(AccountFreeMargin() / 1000.0 * gda_2240[ai_0], gda_2496[ai_0]);
else ld_4 = gda_2488[ai_0];
if (ld_4 < gda_2488[ai_0]) ld_4 = gda_2488[ai_0];
if (ld_4 > gda_2492[ai_0]) ld_4 = gda_2492[ai_0];
return (ld_4);
}

bool f0_16() {
int li_16;
double ld_20;
double ld_28;
string ls_36;
string ls_44;
string ls_52;
int li_12 = OrdersTotal();
for (int li_0 = 0; li_0 < gi_3068; li_0++) {
gda_3080[li_0] = 0;
gda_3084[li_0] = 0;
gda_3096[li_0] = 0;
gda_3100[li_0] = 0;
}
gd_3212 = gd_3144 * gd_3144;
for (li_0 = 0; li_0 < li_12; li_0++) {
if (!OrderSelect(li_0, SELECT_BY_POS, MODE_TRADES)) return (FALSE);
li_16 = OrderType();
ld_20 = OrderOpenPrice();
ld_28 = OrderLots();
if (f0_35(OrderSymbol(), CustomNameForCurrencyPair)) {
for (int li_4 = 0; li_4 < 2; li_4++) {
ls_36 = f0_20(OrderSymbol(), li_4 + 1, CustomNameForCurrencyPair);
for (int li_8 = 0; li_8 < gi_3068; li_8++) {
if (gsa_3076[li_8] == ls_36) {
if ((li_16 == OP_BUY && li_4 == 0) || (li_16 == OP_SELL && li_4 == 1)) {
gda_3096[li_8] += ld_28;
if (!(f0_29())) break;
gda_3080[li_8] += ld_28;
break;
}
if (!((li_16 == OP_BUY && li_4 == 1) || (li_16 == OP_SELL && li_4 == 0))) break;
gda_3100[li_8] += ld_28;
if (!(f0_29())) break;
gda_3084[li_8] += ld_28;
break;
}
}
}
}
}
if (PrintInfoOpenValPosition && li_12 != gi_3072) {
ls_44 = “\nOpen VAL-position:”;
for (li_8 = 0; li_8 < gi_3068; li_8++) {
if (gda_3080[li_8] – gda_3084[li_8] == 0.0) ls_52 = “0”;
else ls_52 = DoubleToStr(gda_3080[li_8] – gda_3084[li_8], 2);
if (gda_3096[li_8] – gda_3100[li_8] – (gda_3080[li_8] – gda_3084[li_8]) == 0.0) ls_52 = ls_52 + ” / 0″;
else ls_52 = ls_52 + ” / ” + DoubleToStr(gda_3096[li_8] – gda_3100[li_8] – (gda_3080[li_8] – gda_3084[li_8]), 2);
if (gda_3096[li_8] – gda_3100[li_8] == 0.0) ls_52 = ls_52 + ” / 0″;
else ls_52 = ls_52 + ” / ” + DoubleToStr(gda_3096[li_8] – gda_3100[li_8], 2);
ls_44 = ls_44
+ “\n”
+ gsa_3076[li_8] + “: ” + ls_52;
}
Comment(ls_44);
}
gi_3072 = li_12;
return (TRUE);
}

bool f0_13() {
int li_16;
int li_20;
double ld_24;
double ld_32;
int li_12 = OrdersTotal();
for (int li_0 = 0; li_0 < 6; li_0++) {
gda_3108[li_0] = -1;
gda_3112[li_0] = -1;
gda_3116[li_0] = 0;
gia_3104[li_0] = 0;
}
for (li_0 = 0; li_0 < li_12; li_0++) {
if (!OrderSelect(li_0, SELECT_BY_POS, MODE_TRADES)) return (FALSE);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
li_16 = OrderType();
ld_24 = OrderOpenPrice();
ld_32 = OrderLots();
li_20 = f0_8(li_16);
if (li_20 == -1) return (FALSE);
gia_3104[li_20]++;
if (gda_3108[li_20] == -1.0 || ld_24 < gda_3108[li_20]) gda_3108[li_20] = ld_24;
if (gda_3112[li_20] == -1.0 || ld_24 > gda_3112[li_20]) gda_3112[li_20] = ld_24;
gda_3116[li_20] += ld_32;
}
}
}
return (TRUE);
}

int f0_12(string &asa_0[], string as_4, string as_12 = “;”, string as_20 = “<def>”, string as_28 = “”) {
int li_40;
string ls_48;
string ls_56;
string ls_64;
int li_44 = 0;
ArrayResize(asa_0, gi_2196);
for (int li_36 = 0; li_36 < gi_2196; li_36++) {
ls_56 = StringConcatenate(gsa_2200[li_36], “:”);
li_40 = StringFind(as_4, ls_56);
if (li_40 != -1) ls_48 = as_4;
else {
li_40 = StringFind(as_28, ls_56);
ls_48 = as_28;
}
if (li_40 != -1) {
ls_64 = StringSubstr(ls_48, li_40 + StringLen(ls_56));
li_40 = StringFind(ls_64, as_12);
if (li_40 != -1) ls_64 = StringSubstr(ls_64, 0, li_40);
asa_0[li_36] = f0_31(ls_64);
li_44++;
} else asa_0[li_36] = as_20;
}
return (li_44);
}

bool f0_34() {
if (gi_2868) return (FALSE);
if (!IsTradeAllowed()) return (FALSE);
return (TRUE);
}

void f0_14(int ai_0) {
int li_16;
double ld_28;
double ld_52;
bool li_68;
if (dUseArbitrage_ExchRate == 1 && dArb_EXR_TypeOfTakeProfit == 1 && gd_3268 > 0.0) {
li_16 = OrdersTotal();
for (int li_4 = 0; li_4 < li_16; li_4++) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
if (OrderMagicNumber() == gi_2876 + 710) {
li_68 = FALSE;
ld_28 = OrderOpenPrice();
if (OrderType() == OP_BUY && gd_3276 >= gda_3284[ai_0]) {
ld_52 = gd_2544;
if (ld_28 < ld_52 || TimeCurrent() – OrderOpenTime() > 60 * dArb_EXR_TimeSL_Minutes) li_68 = TRUE;
} else {
if (OrderType() == OP_SELL && gd_3276 <= gda_3284[ai_0]) {
ld_52 = gd_2552;
if (ld_28 > ld_52 || TimeCurrent() – OrderOpenTime() > 60 * dArb_EXR_TimeSL_Minutes) li_68 = TRUE;
}
}
if (li_68) {
Print(“鲤徼蝠噫 玎牮桢 “, gs_2520, “: 蝈?牦瘃 = “, DoubleToStr(gd_2544, gd_2536), ” 疣聍.牦瘃 = “, DoubleToStr(gd_3268, gd_2536), ” 疣珥桷?= “, gd_3276, ” 耩邃.疣珥桷?= “,
gda_3284[ai_0], ” 铗觌铐屙桢 = “, gd_3276 – gda_3284[ai_0], ” 耧疱?= “, gd_2560);
f0_2(CommentOrderOperations);
}
}
}
}
}
if (OrdersTotal() != li_16) f0_13();
}
}

void f0_15(int ai_0) {
int li_16;
int li_20;
int li_24;
int li_28;
int li_32;
int li_40;
double ld_44;
double ld_52;
double ld_60;
double ld_68;
double ld_76;
double ld_84;
string ls_100;
string ls_108;
bool li_116;
bool li_120;
bool li_124;
double ld_128;
double ld_136;
int li_144;
bool li_148;
int li_152;
int li_156;
if (Set_TP_SL_ByModifyOrder == 1) {
li_16 = OrdersTotal();
for (int li_4 = 0; li_4 < li_16; li_4++) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (f0_29()) {
if (OrderStopLoss() == 0.0 && OrderTakeProfit() == 0.0) {
ls_100 = OrderComment();
li_20 = StringFind(ls_100, “{TP=”);
if (li_20 != -1) {
li_24 = StringFind(ls_100, “}”, li_20);
if (li_24 != -1) {
ld_68 = StrToDouble(StringSubstr(ls_100, li_20 + 4, li_24 – li_20 – 4));
li_20 = StringFind(ls_100, “{SL=”);
if (li_20 != -1) {
li_24 = StringFind(ls_100, “}”, li_20);
if (li_24 != -1) {
ld_76 = StrToDouble(StringSubstr(ls_100, li_20 + 4, li_24 – li_20 – 4));
if (ld_68 == 0.0 && ld_76 == 0.0) continue;
f0_4(OrderTicket(), OrderOpenPrice(), ld_76, ld_68, 0);
}
}
}
}
}
}
}
}
gd_3024 = gd_3212;
int li_36 = 0;
for (li_4 = 0; li_4 < StringLen(gs_2896); li_4 += 2) {
ls_108 = StringSubstr(gs_2896, li_4, 1);
li_40 = StrToInteger(ls_108);
if (li_40 != 0) {
if (li_36 == 0) gd_3024 *= li_40;
else gd_3024 += li_40;
}
li_36 = 1 – li_36;
}
if (gi_2624 > 0) {
li_16 = OrdersTotal();
for (li_4 = li_16 – 1; li_4 >= 0; li_4–) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
li_28 = OrderType();
if (li_28 == OP_BUY || li_28 == OP_SELL) {
if (TimeCurrent() – OrderOpenTime() > 60 * gi_2624) {
li_120 = TRUE;
if (TimeSL_OnlyAfterDistance_PR != 0.0) {
ld_44 = OrderOpenPrice();
if (li_28 == OP_BUY) {
ld_84 = gd_2544;
if (ld_44 > ld_84 && (ld_44 – ld_84) / ld_44 < TimeSL_OnlyAfterDistance_PR / 100.0) li_120 = FALSE;
else
if (ld_44 <= ld_84) li_120 = FALSE;
} else {
if (li_28 == OP_SELL) {
ld_84 = gd_2552;
if (ld_84 > ld_44 && (ld_84 – ld_44) / ld_44 < TimeSL_OnlyAfterDistance_PR / 100.0) li_120 = FALSE;
else
if (ld_84 <= ld_44) li_120 = FALSE;
}
}
}
if (li_120) f0_2(CommentOrderOperations);
}
}
}
}
}
if (OrdersTotal() != li_16) f0_13();
}
for (li_4 = 1; li_4 < StringLen(gs_2896); li_4 += 2) {
ls_108 = StringSubstr(gs_2896, li_4, 1);
li_40 = StrToInteger(ls_108);
if (li_40 != 0) {
if (li_36 == 0) gd_3024 *= li_40;
else gd_3024 += li_40;
}
li_36 = 1 – li_36;
}
if (CloseOrdersOppositeTrend_OsMA == 1 || CloseOrdersOppositeTrend_SAR == 1 || CloseOrdersOppositeTrend_ALL == 1) {
li_16 = OrdersTotal();
for (li_4 = li_16 – 1; li_4 >= 0; li_4–) {
li_124 = FALSE;
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
li_28 = OrderType();
ld_44 = OrderOpenPrice();
if (li_28 == OP_BUY) {
if (CloseOrdersOppositeTrend_OsMA == 1 && CloseOrdersOppositeTrend_ALL == 0)
if (gd_3196 < 0.0) li_124 = TRUE;
if (CloseOrdersOppositeTrend_SAR == 1 && CloseOrdersOppositeTrend_ALL == 0)
if (gd_3204 != 0.0 && gd_3204 > gd_2552) li_124 = TRUE;
if (CloseOrdersOppositeTrend_ALL == 1)
if (gd_3196 < 0.0 && (gd_3204 != 0.0 && gd_3204 > gd_2552)) li_124 = TRUE;
}
if (li_28 == OP_SELL) {
if (CloseOrdersOppositeTrend_OsMA == 1 && CloseOrdersOppositeTrend_ALL == 0)
if (gd_3196 > 0.0) li_124 = TRUE;
if (CloseOrdersOppositeTrend_SAR == 1 && CloseOrdersOppositeTrend_ALL == 0)
if (gd_3204 != 0.0 && gd_3204 < gd_2544) li_124 = TRUE;
if (CloseOrdersOppositeTrend_ALL == 1)
if (gd_3196 > 0.0 && (gd_3204 != 0.0 && gd_3204 < gd_2544)) li_124 = TRUE;
}
if (li_124 && CloseOOT_OnlyAfterMinutes != 0)
if (TimeCurrent() – OrderOpenTime() < 60 * CloseOOT_OnlyAfterMinutes) li_124 = FALSE;
if (li_124 && CloseOOT_OnlyAfterDistance_PR != 0.0) {
if (li_28 == OP_BUY) {
ld_84 = gd_2544;
if (ld_44 > ld_84 && (ld_44 – ld_84) / ld_44 < CloseOOT_OnlyAfterDistance_PR / 100.0) li_124 = FALSE;
} else {
if (li_28 == OP_SELL) {
ld_84 = gd_2552;
if (ld_84 > ld_44 && (ld_84 – ld_44) / ld_44 < CloseOOT_OnlyAfterDistance_PR / 100.0) li_124 = FALSE;
}
}
}
if (li_124) f0_2(CommentOrderOperations);
}
}
}
if (OrdersTotal() != li_16) f0_13();
}
if (gia_3104[gi_3304] != 0 && gia_3104[gi_3312] != 0) f0_17(gi_3312, gs_2520);
if (gia_3104[gi_3308] != 0 && gia_3104[gi_3316] != 0) f0_17(gi_3316, gs_2520);
if (gia_3104[gi_3304] != 0 && gia_3104[gi_3320] != 0 && gda_3112[gi_3320] >= gda_3108[gi_3304]) f0_17(gi_3320, gs_2520, gda_3108[gi_3304], 0);
if (gia_3104[gi_3308] != 0 && gia_3104[gi_3324] != 0 && gda_3108[gi_3324] <= gda_3112[gi_3308]) f0_17(gi_3324, gs_2520, 0, gda_3112[gi_3308]);
if (dProfitForBreakevenSL_PR > 0.0) {
li_16 = OrdersTotal();
for (li_4 = 0; li_4 < li_16; li_4++) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
ld_44 = OrderOpenPrice();
ld_60 = OrderTakeProfit();
if (OrderType() == OP_BUY) {
if (gd_2544 <= ld_44 * (dProfitForBreakevenSL_PR / 100.0 + 1.0)) continue;
if (!(OrderStopLoss() == 0.0 || OrderStopLoss() < ld_44 * (dLagForProfitSL_PR / 100.0 + 1.0))) continue;
f0_4(OrderTicket(), ld_44, ld_44 * (dLagForProfitSL_PR / 100.0 + 1.0), ld_60, 0);
continue;
}
if (OrderType() == OP_SELL) {
if (gd_2552 < ld_44 * (1 – dProfitForBreakevenSL_PR / 100.0))
if (OrderStopLoss() == 0.0 || OrderStopLoss() > ld_44 * (1 – dLagForProfitSL_PR / 100.0)) f0_4(OrderTicket(), ld_44, ld_44 * (1 – dLagForProfitSL_PR / 100.0), ld_60, 0);
}
}
}
}
}
if (gi_2636 > 0 || dTrailingStop_PR > 0.0) {
li_16 = OrdersTotal();
for (li_4 = 0; li_4 < li_16; li_4++) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
if (CR_UseTrailingStop == 0)
if (OrderMagicNumber() == gi_2876 + 410) continue;
if (FL_UseTrailingStop == 0)
if (OrderMagicNumber() == gi_2876 + 210) continue;
ld_44 = OrderOpenPrice();
if (gi_2636 > 0) ld_128 = gd_2528 * gi_2636;
else ld_128 = ld_44 * dTrailingStop_PR / 100.0;
ld_136 = 0;
if (gi_2640 > 0) ld_136 = gd_2528 * gi_2640;
else
if (dStepTrailingStop_PR > 0.0) ld_136 = ld_44 * dStepTrailingStop_PR / 100.0;
if (dDeleteTPWhenTrailing == 1) ld_60 = 0;
else ld_60 = OrderTakeProfit();
if (OrderType() == OP_BUY) {
if (gd_2544 <= ld_44 + ld_128) continue;
if (!(OrderStopLoss() == 0.0 || OrderStopLoss() < gd_2544 – ld_128 – ld_136)) continue;
ld_52 = gd_2544 – ld_128;
if (dLagForProfitSL_PR > 0.0 && ld_52 < ld_44 * (dLagForProfitSL_PR / 100.0 + 1.0)) ld_52 = ld_44 * (dLagForProfitSL_PR / 100.0 + 1.0);
f0_4(OrderTicket(), ld_44, ld_52, ld_60, 0);
continue;
}
if (OrderType() == OP_SELL) {
if (gd_2552 < ld_44 – ld_128) {
if (OrderStopLoss() == 0.0 || OrderStopLoss() > gd_2552 + ld_128 + ld_136) {
ld_52 = gd_2552 + ld_128;
if (dLagForProfitSL_PR > 0.0 && ld_52 > ld_44 * (1 – dLagForProfitSL_PR / 100.0)) ld_52 = ld_44 * (1 – dLagForProfitSL_PR / 100.0);
f0_4(OrderTicket(), ld_44, ld_52, ld_60, 0);
}
}
}
}
}
}
}
if (dUseOrders_Stochastic == 1 && diStoch_RO_ReverseClose == 1) {
li_144 = -1;
if (gd_3228 < gd_3220 && gd_3244 < gd_3236 && gd_3260 > gd_3252) li_144 = 1;
else
if (gd_3228 > gd_3220 && gd_3244 > gd_3236 && gd_3260 < gd_3252) li_144 = 0;
if (li_144 != -1) {
if (diStoch_RO_RevCloseOnlyProfit == 1) li_148 = TRUE;
else li_148 = FALSE;
li_16 = OrdersTotal();
f0_7(li_144, gs_2520, 1, li_148, gi_2876 + 620);
if (OrdersTotal() != li_16) f0_13();
}
}
if (dUseEA_SCL == 1 && diSCL_RealTakeProfit_PR != 0.0 || diSCL_RealStopLoss_PR != 0.0) {
li_16 = OrdersTotal();
for (li_4 = 0; li_4 < li_16; li_4++) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
if (OrderMagicNumber() == gi_2876 + 220) {
li_116 = FALSE;
ld_44 = OrderOpenPrice();
if (OrderType() == OP_BUY) {
ld_84 = gd_2544;
if (diSCL_RealTakeProfit_PR != 0.0 && ld_44 < ld_84 && (ld_84 – ld_44) / ld_44 >= diSCL_RealTakeProfit_PR / 100.0) li_116 = TRUE;
if (diSCL_RealStopLoss_PR != 0.0 && ld_44 > ld_84 && (ld_44 – ld_84) / ld_44 >= diSCL_RealStopLoss_PR / 100.0) li_116 = TRUE;
} else {
if (OrderType() == OP_SELL) {
ld_84 = gd_2552;
if (diSCL_RealTakeProfit_PR != 0.0 && ld_44 > ld_84 && (ld_44 – ld_84) / ld_44 >= diSCL_RealTakeProfit_PR / 100.0) li_116 = TRUE;
if (diSCL_RealStopLoss_PR != 0.0 && ld_44 < ld_84 && (ld_84 – ld_44) / ld_44 >= diSCL_RealStopLoss_PR / 100.0) li_116 = TRUE;
}
}
if (li_116) f0_2(CommentOrderOperations);
}
}
}
}
if (OrdersTotal() != li_16) f0_13();
}
if (gia_3104[gi_3304] != 0 && gia_3104[gi_3308] != 0) {
if (gia_2328[ai_0] == 1 && gda_3112[gi_3304] > 0.0 && gda_3108[gi_3308] > 0.0 && gda_3112[gi_3304] > gd_2544 && gda_3108[gi_3308] < gd_2552) {
if (gda_3112[gi_3304] > gda_3108[gi_3308] && (gda_3112[gi_3304] – gda_3108[gi_3308]) / gda_3108[gi_3308] > dCloseLockedMinDistance_PR / 100.0 && (gda_3112[gi_3304] – gd_2544) / (gd_2552 – gda_3108[gi_3308]) < 1.001 &&
(gda_3112[gi_3304] – gd_2544) / (gd_2552 – gda_3108[gi_3308]) > 0.999) {
li_152 = -1;
li_156 = -1;
li_16 = OrdersTotal();
for (li_4 = 0; li_4 < li_16; li_4++) {
OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
li_28 = OrderType();
ld_44 = OrderOpenPrice();
if (li_28 == OP_BUY && ld_44 == gda_3112[gi_3304]) li_152 = OrderTicket();
if (li_28 == OP_SELL && ld_44 == gda_3108[1]) li_156 = OrderTicket();
if (li_152 != -1 && li_156 != -1) break;
}
}
}
if (li_152 != -1 && li_156 != -1) OrderCloseBy(li_152, li_156);
if (OrdersTotal() != li_16) f0_13();
}
}
if ((gi_2628 != 0 && gi_2628 != gi_2608 || gi_2628 != gi_2612) || (gi_2632 != 0 && gi_2632 != gi_2616 || gi_2632 != gi_2620)) {
ld_84 = (gd_2552 + gd_2544) / 2.0;
li_16 = OrdersTotal();
for (li_4 = 0; li_4 < li_16; li_4++) {
if (!(OrderSelect(li_4, SELECT_BY_POS, MODE_TRADES))) return;
if (OrderSymbol() == gs_2520) {
if (f0_29()) {
li_28 = OrderType();
ld_44 = OrderOpenPrice();
ld_60 = OrderTakeProfit();
ld_52 = OrderStopLoss();
li_32 = OrderMagicNumber();
if (li_32 != gi_2876 + 100) {
if (li_28 == OP_BUY && ld_44 == gda_3108[gi_3304]) {
if (ld_60 < ld_44 + gi_2628 * gd_2528)
if (f0_4(OrderTicket(), ld_44, ld_52, ld_44 + gi_2628 * gd_2528, 0)) ld_60 = ld_44 + gi_2628 * gd_2528;
if (!(gi_2632 != 0 && ld_44 > gda_3112[gi_3308] && ld_44 – gda_3112[gi_3308] > 2.2 * gi_2632 * gd_2528 && MathAbs(ld_44 – ld_84) < MathAbs(gda_3112[gi_3308] – ld_84) &&
ld_52 < ld_44 – gi_2632 * gd_2528)) continue;
if (!(f0_4(OrderTicket(), ld_44, ld_44 – gi_2632 * gd_2528, ld_60, 0))) continue;
ld_52 = ld_44 – gi_2632 * gd_2528;
continue;
}
if (li_28 == OP_SELL && ld_44 == gda_3112[gi_3308]) {
if (ld_60 > ld_44 – gi_2628 * gd_2528)
if (f0_4(OrderTicket(), ld_44, ld_52, ld_44 – gi_2628 * gd_2528, 0)) ld_60 = ld_44 – gi_2628 * gd_2528;
if (gi_2632 != 0 && ld_44 < gda_3108[gi_3304] && gda_3108[gi_3304] – ld_44 > 2.2 * gi_2632 * gd_2528 && MathAbs(ld_44 – ld_84) < MathAbs(gda_3108[gi_3304] – ld_84) &&
ld_52 > ld_44 + gi_2632 * gd_2528)
if (f0_4(OrderTicket(), ld_44, ld_44 + gi_2632 * gd_2528, ld_60, 0)) ld_52 = ld_44 + gi_2632 * gd_2528;
}
}
}
}
}
}
}
if (gi_2692 == 1 && gd_3128 != 0.0) {
if (gi_2160 == 1) {
if (gd_3128 > 0.0) f0_17(gi_3316, gs_2520);
if (gd_3128 < 0.0) f0_17(gi_3312, gs_2520);
}
}
if (gi_2708 == 1 && gd_3120 != 0.0) {
if (gi_2160 == 1) {
if (gd_3120 > 0.0 && gia_3104[gi_3316] > 0 && gda_3108[gi_3316] < gd_2544 + 20.0 * gd_2528) f0_17(gi_3316, gs_2520);
if (gd_3120 < 0.0 && gia_3104[gi_3312] > 0 && gda_3112[gi_3312] > gd_2552 – 20.0 * gd_2528) f0_17(gi_3312, gs_2520);
}
}
if (gi_2744 > 0) {
if (gi_2160 == 1) {
for (int li_12 = 0; li_12 < gi_2744; li_12++) {
switch (li_12) {
case 0:
gd_3152 = gd_2748;
break;
case 1:
gd_3152 = gd_2764;
break;
default:
continue;
if (gia_3104[gi_3320] != 0 && gda_3136[li_12] > 0.0 && gda_3112[gi_3320] >= gda_3136[li_12] + gda_3136[li_12] * gd_3152 / 100.0) f0_17(gi_3320, gs_2520, gda_3136[li_12] + gda_3136[li_12] * gd_3152 / 100.0, 0);
if (!(gia_3104[gi_3324] != 0 && gda_3140[li_12] > 0.0 && gda_3108[gi_3324] <= gda_3140[li_12] – gda_3140[li_12] * gd_3152 / 100.0)) continue;
f0_17(gi_3324, gs_2520, 0, gda_3140[li_12] – gda_3140[li_12] * gd_3152 / 100.0);
}
}
}
}
}

void f0_1() {
int li_12;
int li_16;
double ld_24;
double lda_32[];
double lda_36[];
string ls_40;
string ls_48;
string ls_56;
gd_3268 = 0;
if (dUseArbitrage_ExchRate == 1 && f0_35(gs_2520, CustomNameForCurrencyPair)) {
ArrayResize(lda_32, gi_2196);
ArrayResize(lda_36, gi_3068);
for (int li_0 = 0; li_0 < gi_2196; li_0++) lda_32[li_0] = 0;
for (li_0 = 0; li_0 < gi_3068; li_0++) lda_36[li_0] = 0;
ls_56 = f0_20(gs_2520, 2, CustomNameForCurrencyPair);
for (int li_8 = 0; li_8 < gi_3068; li_8++) {
if (gsa_3076[li_8] == ls_56) {
lda_36[li_8] = 1;
break;
}
}
for (li_0 = 0; li_0 < gi_2196; li_0++) {
ls_40 = gsa_2200[li_0];
if (f0_35(ls_40, CustomNameForCurrencyPair)) lda_32[li_0] = MarketInfo(ls_40, MODE_BID);
}
for (int li_20 = 0; li_20 < dArb_EXR_CountIterForRates; li_20++) {
for (li_0 = 0; li_0 < gi_2196; li_0++) {
ls_40 = gsa_2200[li_0];
if (ls_40 != gs_2520) {
if (f0_35(ls_40, CustomNameForCurrencyPair)) {
ld_24 = lda_32[li_0];
if (ld_24 != 0.0) {
ls_48 = f0_20(ls_40, 1, CustomNameForCurrencyPair);
ls_56 = f0_20(ls_40, 2, CustomNameForCurrencyPair);

li_12 = -1;
li_16 = -1;
for (li_8 = 0; li_8 < gi_3068; li_8++) {
if (gsa_3076[li_8] == ls_48) li_12 = li_8;
if (gsa_3076[li_8] == ls_56) li_16 = li_8;
}
if (li_12 == -1 || li_16 == -1) continue;
if (lda_36[li_12] != 0.0 && lda_36[li_16] == 0.0) {
lda_36[li_16] = lda_36[li_12] / ld_24;
continue;
}
if (lda_36[li_12] == 0.0 && lda_36[li_16] != 0.0) {
lda_36[li_12] = lda_36[li_16] * ld_24;
continue;
}
if (lda_36[li_12] != 0.0 && lda_36[li_16] != 0.0) {
if (li_20 % 2 == 0) {
lda_36[li_12] = (lda_36[li_12] + lda_36[li_16] * ld_24) / 2.0;
continue;
}
lda_36[li_16] = (lda_36[li_16] + lda_36[li_12] / ld_24) / 2.0;
}
}
}
}
}
}
ls_48 = f0_20(gs_2520, 1, CustomNameForCurrencyPair);
ls_56 = f0_20(gs_2520, 2, CustomNameForCurrencyPair);
li_12 = -1;
li_16 = -1;
for (li_8 = 0; li_8 < gi_3068; li_8++) {
if (gsa_3076[li_8] == ls_48) li_12 = li_8;
if (gsa_3076[li_8] == ls_56) li_16 = li_8;
}
if (li_12 == -1 || li_16 == -1) return;
if (lda_36[li_12] == 0.0 || lda_36[li_16] == 0.0) return;
gd_3268 = NormalizeDouble(lda_36[li_12] / lda_36[li_16], gd_2536);
gd_3276 = (gd_2544 – gd_3268) / gd_2528;
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (gsa_2200[li_0] == gs_2520) {
if (gda_3284[li_0] == 0.0) gda_3284[li_0] = gd_3276;
else gda_3284[li_0] = (9.0 * gda_3284[li_0] + gd_3276) / 10.0;
if (!(gd_3276 – gda_3284[li_0] > 1.5 * gd_2560 || gda_3284[li_0] – gd_3276 > 1.5 * gd_2560)) break;
Print(“鲤徼蝠噫 铗牮桢 “, gs_2520, “: 蝈?牦瘃 = “, DoubleToStr(gd_2544, gd_2536), ” 疣聍.牦瘃 = “, DoubleToStr(gd_3268, gd_2536), ” 疣珥桷?= “, gd_3276, ” 耩邃.疣珥桷?= “,
gda_3284[li_0], ” 铗觌铐屙桢 = “, gd_3276 – gda_3284[li_0], ” 耧疱?= “, gd_2560);
return;
}
}
}
}

void f0_24() {
gd_3128 = 0;
if (gi_2692 == 1) f0_49();
gd_3120 = 0;
if (gi_2708 == 1) f0_22();
if (gi_2744 > 0) f0_21();
if (gi_2780 == 1) f0_26();
gd_3196 = 0;
if (dUseTrendFilterOsMA == 1 || CloseOrdersOppositeTrend_OsMA == 1 || CloseOrdersOppositeTrend_ALL) gd_3196 = iOsMA(gs_2520, gia_3328[diOsMA_TimeFrame], diOsMA_FastEMA, diOsMA_SlowEMA, diOsMA_SignalSMA, diOsMA_TypePrice, 0);
gd_3204 = 0;
if (dUseTrendFilterSAR == 1 || CloseOrdersOppositeTrend_SAR == 1 || CloseOrdersOppositeTrend_ALL || CR_StopLoss_UseSAR == 1 || diFL_StopLoss_UseSAR == 1) gd_3204 = iSAR(gs_2520, gia_3328[diSAR_Filter_TimeFrame], diSAR_Filter_Step, diSAR_Filter_Maximum, 0);
gd_3220 = 0;
gd_3228 = 0;
gd_3236 = 0;
gd_3244 = 0;
gd_3252 = 0;
gd_3260 = 0;
if (dUseOrders_Stochastic == 1) {
gd_3220 = iStochastic(gs_2520, gia_3328[diStoch_RO_TimeFrame], diStoch_RO_KPeriod, diStoch_RO_DPeriod, diStoch_RO_Slowing, diStoch_RO_Method, diStoch_RO_Price, MODE_MAIN,
0);
gd_3228 = iStochastic(gs_2520, gia_3328[diStoch_RO_TimeFrame], diStoch_RO_KPeriod, diStoch_RO_DPeriod, diStoch_RO_Slowing, diStoch_RO_Method, diStoch_RO_Price, MODE_SIGNAL,
0);
gd_3236 = iStochastic(gs_2520, gia_3328[diStoch_RO_TimeFrame], diStoch_RO_KPeriod, diStoch_RO_DPeriod, diStoch_RO_Slowing, diStoch_RO_Method, diStoch_RO_Price, MODE_MAIN,
1);
gd_3244 = iStochastic(gs_2520, gia_3328[diStoch_RO_TimeFrame], diStoch_RO_KPeriod, diStoch_RO_DPeriod, diStoch_RO_Slowing, diStoch_RO_Method, diStoch_RO_Price, MODE_SIGNAL,
1);
gd_3252 = iStochastic(gs_2520, gia_3328[diStoch_RO_TimeFrame], diStoch_RO_KPeriod, diStoch_RO_DPeriod, diStoch_RO_Slowing, diStoch_RO_Method, diStoch_RO_Price, MODE_MAIN,
2);
gd_3260 = iStochastic(gs_2520, gia_3328[diStoch_RO_TimeFrame], diStoch_RO_KPeriod, diStoch_RO_DPeriod, diStoch_RO_Slowing, diStoch_RO_Method, diStoch_RO_Price, MODE_SIGNAL,
2);
}
}

void f0_49() {
double lda_0[10][10];
int lia_4[10];
for (int li_8 = 0; li_8 < gi_2700; li_8++) {
for (int li_12 = 0; li_12 < gi_2696; li_12++) lda_0[li_8][li_12] = iAC(gs_2520, gia_3328[gi_2704 + li_8], li_12);
if (lda_0[li_8][gi_2696 – 2] > lda_0[li_8][gi_2696 – 1]) lia_4[li_8] = 1;
else {
if (lda_0[li_8][gi_2696 – 2] < lda_0[li_8][gi_2696 – 1]) lia_4[li_8] = -1;
else {
lia_4[li_8] = 0;
break;
}
}
for (li_12 = gi_2696 – 3; li_12 >= 0; li_12–) {
if (lia_4[li_8] == 1 && lda_0[li_8][li_12] <= lda_0[li_8][li_12 + 1]) {
lia_4[li_8] = 0;
break;
}
if (lia_4[li_8] == -1 && lda_0[li_8][li_12] >= lda_0[li_8][li_12 + 1]) {
lia_4[li_8] = 0;
break;
}
}
}
gd_3128 = lia_4[0];
for (li_8 = 1; li_8 < gi_2700; li_8++) {
if (lia_4[li_8] != gd_3128) {
gd_3128 = 0;
break;
}
}
if (gd_3128 != 0.0) gd_3128 = lda_0[0][0] – lda_0[0][1];
}

void f0_22() {
double ld_0;
double ld_8;
gd_3120 = 0;
for (int li_16 = 0; li_16 < gi_2716; li_16++) {
for (int li_20 = 0; li_20 < gi_2712; li_20++) {
ld_0 = (iHigh(gs_2520, gia_3328[gi_2720 + li_16], li_20 + 2) + iLow(gs_2520, gia_3328[gi_2720 + li_16], li_20 + 2) + 2.0 * iClose(gs_2520, gia_3328[gi_2720 + li_16],
li_20 + 2)) / 4.0;
ld_8 = (iHigh(gs_2520, gia_3328[gi_2720 + li_16], li_20 + 1) + iLow(gs_2520, gia_3328[gi_2720 + li_16], li_20 + 1) + 2.0 * iClose(gs_2520, gia_3328[gi_2720 + li_16],
li_20 + 1)) / 4.0;
if (ld_0 > 0.0) gda_3288[li_16][li_20] = (ld_8 – ld_0) / ld_0;
else gda_3288[li_16][li_20] = 0;
}
if (li_16 == 0 && gi_2720 == 0) {
if (gd_2544 > iOpen(gs_2520, gia_3328[0], 0)) gia_3292[0] = 1;
else {
if (gd_2544 < iOpen(gs_2520, gia_3328[0], 0)) gia_3292[0] = -1;
else {
if (gda_3288[li_16][0] > 0.0) gia_3292[li_16] = 1;
else {
if (gda_3288[li_16][0] < 0.0) gia_3292[li_16] = -1;
else {
gia_3292[li_16] = 0;
break;
}
}
}
}
} else {
if (iOpen(gs_2520, gia_3328[gi_2720 + li_16], 0) > iClose(gs_2520, gia_3328[gi_2720 + li_16], 1)) gia_3292[li_16] = 1;
else {
if (iOpen(gs_2520, gia_3328[gi_2720 + li_16], 0) < iClose(gs_2520, gia_3328[gi_2720 + li_16], 1)) gia_3292[li_16] = -1;
else {
if (gda_3288[li_16][0] > 0.0) gia_3292[li_16] = 1;
else {
if (gda_3288[li_16][0] < 0.0) gia_3292[li_16] = -1;
else {
gia_3292[li_16] = 0;
break;
}
}
}
}
}
if ((gda_3288[li_16][gi_2712 – 1]) * gia_3292[li_16] <= 0.0) {
gia_3292[li_16] = 0;
break;
}
for (li_20 = gi_2712 – 2; li_20 >= 0; li_20–) {
if (gia_3292[li_16] == 1 && gda_3288[li_16][li_20] <= gda_3288[li_16][li_20 + 1]) {
gia_3292[li_16] = 0;
break;
}
if (gia_3292[li_16] == -1 && gda_3288[li_16][li_20] >= gda_3288[li_16][li_20 + 1]) {
gia_3292[li_16] = 0;
break;
}
}
}
gd_3120 = gia_3292[0];
for (li_16 = 1; li_16 < gi_2716; li_16++) {
if (gia_3292[li_16] != gd_3120) {
gd_3120 = 0;
break;
}
}
if (gd_3120 != 0.0) {
ld_0 = iOpen(gs_2520, gia_3328[0], 0);
ld_8 = gd_2544;
if (gi_2720 == 0 && ld_0 != ld_8 && ld_0 > 0.0) {
gd_3120 = (ld_8 – ld_0) / ld_0;
return;
}
gd_3120 = gda_3288[0][0];
}
}

void f0_21() {
int li_0;
int li_4;
double ld_20;
double ld_28;
for (int li_16 = 0; li_16 < gi_2744; li_16++) {
gda_3136[li_16] = 0;
gda_3140[li_16] = 0;
switch (li_16) {
case 0:
li_4 = gi_2756;
li_0 = gi_2760;
break;
case 1:
li_4 = gi_2772;
li_0 = gi_2776;
break;
default:
continue;
for (int li_8 = 0; li_8 < li_0; li_8++) {
ld_20 = iLow(gs_2520, gia_3328[li_4], li_8);
ld_28 = iHigh(gs_2520, gia_3328[li_4], li_8);
if (ld_20 > 0.0)
if (gda_3136[li_16] == 0.0 || ld_20 < gda_3136[li_16]) gda_3136[li_16] = ld_20;
if (ld_28 > 0.0)
if (gda_3140[li_16] == 0.0 || ld_28 > gda_3140[li_16]) gda_3140[li_16] = ld_28;
}
}
}
}

void f0_26() {
double ld_0;
double ld_8;
int li_24;
int li_28;
int li_32;
double ld_44;
double ld_52;
double ld_16 = gd_2560 * gd_2528;
gi_3160 = FALSE;
gd_3164 = 0;
gd_3172 = 0;
gd_3180 = 0;
for (int li_36 = 0; li_36 < gi_2808; li_36++) {
ld_0 = iLow(gs_2520, gia_3328[gi_2804], li_36);
ld_8 = iHigh(gs_2520, gia_3328[gi_2804], li_36);
if (ld_0 > 0.0)
if (gd_3164 == 0.0 || ld_0 < gd_3164) gd_3164 = ld_0;
if (ld_8 > 0.0)
if (gd_3172 == 0.0 || ld_8 > gd_3172) gd_3172 = ld_8;
}
gd_3180 = gd_3172 – gd_3164;
if (gd_3172 > 0.0 && gd_3164 > 0.0 && gd_3180 – ld_16 >= gd_2544 * gd_2784 / 100.0 && gd_3180 – ld_16 <= gd_2544 * gd_2792 / 100.0) {
li_24 = 0;
li_28 = 0;
li_32 = 0;
for (li_36 = 0; li_36 < gi_2808; li_36++) {
ld_0 = iLow(gs_2520, gia_3328[gi_2804], li_36);
ld_8 = iHigh(gs_2520, gia_3328[gi_2804], li_36);
if (ld_0 > 0.0 && ld_0 < gd_3164 + gd_3180 / 4.0 && li_32 >= 0) {
li_32 = -1;
li_24++;
}
if (ld_8 > 0.0 && ld_8 > gd_3172 – gd_3180 / 4.0 && li_32 <= 0) {
li_32 = 1;
li_28++;
}
}
if (diFL_UseConditionTakeOver == 1) {
ld_44 = 0;
ld_52 = 0;
for (li_36 = 0; li_36 < 100; li_36++) {
ld_0 = iLow(gs_2520, gia_3328[diFL_PeriodTakeOver], li_36);
ld_8 = iHigh(gs_2520, gia_3328[diFL_PeriodTakeOver], li_36);
if (li_36 >= diFL_CountBarsTakeOver)
if (ld_0 < ld_44 && ld_8 > ld_52) break;
if (ld_0 > 0.0)
if (ld_44 == 0.0 || ld_0 < ld_44) ld_44 = ld_0;
if (ld_8 > 0.0)
if (ld_52 == 0.0 || ld_8 > ld_52) ld_52 = ld_8;
if (ld_52 – ld_44 >= gd_2544 * gd_2792 / 100.0) return;
}
}
if (li_24 >= gi_2800 && li_28 >= gi_2800) gi_3160 = TRUE;
}
}

bool f0_29(int ai_0 = -1) {
if (ai_0 == -1) ai_0 = OrderMagicNumber();
string ls_4 = ai_0;
string ls_12 = OwnMagicPrefix;
if (StringFind(ls_4, ls_12, 0) == 0) return (TRUE);
return (FALSE);
}

int f0_8(int ai_0) {
switch (ai_0) {
case 0:
return (gi_3304);
case 1:
return (gi_3308);
case 2:
return (gi_3312);
case 4:
return (gi_3320);
case 3:
return (gi_3316);
case 5:
return (gi_3324);
}
return (-1);
}

int f0_5(string as_0, int ai_8, double ad_12, double ad_20, int ai_28, double ad_32, double ad_40, string as_48 = “”, int ai_56 = 0, int ai_60 = 0, color ai_64 = -1) {
int li_76;
double ld_80;
double ld_88;
if (ai_8 == OP_BUY || ai_8 == OP_SELL)
if (AccountFreeMargin() <= 0.0) return (-1);
string ls_96 = PrefixOrderComment;
string ls_104 = ai_56;
if (StringLen(ls_104) >= 4) {
ls_96 = StringConcatenate(ls_96, “T”);
ls_104 = StringSubstr(ls_104, StringLen(ls_104) – 4, 4);
for (int li_68 = 0; li_68 < StringLen(ls_104); li_68++)
if (StringSubstr(ls_104, li_68, 1) != “0”) ls_96 = StringConcatenate(ls_96, StringSubstr(ls_104, li_68, 1));
}
ls_96 = StringConcatenate(ls_96, as_48);
if (Set_TP_SL_ByModifyOrder == 1) {
ld_88 = 0;
ld_80 = 0;
ls_96 = StringConcatenate(ls_96, ” {TP=”, ad_40, “} {SL=”, ad_32, “}”);
} else {
ld_88 = ad_40;
ld_80 = ad_32;
}
if (gd_3088 != gd_3188 && gd_3088 != 0.0) {
Print(“OLD tick!”);
return (-1);
}
if (CommentOrderOperations) Print(“项稃蜿?铗牮? 铕溴疣: “, as_0, ” / “, f0_11(ai_8), ” “, ad_12, ” at “, ad_20, ” / tp = “, ld_88, ” sl = “, ld_80);
int li_72 = OrderSend(as_0, ai_8, ad_12, ad_20, ai_28, ld_80, ld_88, ls_96, ai_56, ai_60, ai_64);
if (PlaySoundWhenOpenOrder) PlaySound(FileNameSoundOpenOrder);
if (li_72 > 0) {
if (OrderSelect(li_72, SELECT_BY_TICKET, MODE_TRADES)) {
if (CommentOrderOperations) Print(“玉镥铄 铗牮桢”);
} else {
if (CommentOrderOperations) {
li_76 = GetLastError();
Print(“硒栳赅 铗牮?: “, li_76, ” (“, f0_45(li_76), “)”);
}
}
} else {
if (CommentOrderOperations) {
li_76 = GetLastError();
Print(“硒栳赅 铗牮?: “, li_76, ” (“, f0_45(li_76), “)”);
}
}
return (li_72);
}

int f0_4(int ai_0, double ad_4, double ad_12, double ad_20, int ai_28 = 0, color ai_32 = -1) {
int li_36;
if (CommentOrderOperations) Print(“项稃蜿?祛滂翳赅鲨?铕溴疣: “, ai_0, ” at “, ad_4, ” / tp = “, ad_20, ” sl = “, ad_12);
if (OrderModify(ai_0, ad_4, ad_12, ad_20, ai_28, ai_32)) {
if (!(CommentOrderOperations)) return (1);
Print(“玉镥? 祛滂翳赅鲨”);
return (1);
}
if (CommentOrderOperations) {
li_36 = GetLastError();
Print(“硒栳赅 祛滂翳赅鲨? “, li_36, ” (“, f0_45(li_36), “)”);
}
return (0);
}

int f0_23(int ai_0) {
int li_4;
if (CommentOrderOperations) Print(“项稃蜿?箐嚯屙? 铕溴疣: “, ai_0);
if (OrderDelete(ai_0)) {
if (!(CommentOrderOperations)) return (1);
Print(“玉镥铄 箐嚯屙桢”);
return (1);
}
if (CommentOrderOperations) {
li_4 = GetLastError();
Print(“硒栳赅 箐嚯屙?: “, li_4, ” (“, f0_45(li_4), “)”);
}
return (0);
}

void f0_43() {
int li_4;
int li_8;
string ls_12;
string ls_20;
string ls_28;
double ld_36;
if (TypeOfQuoteDigits == 0) {
ls_12 = “EURUSD”;
if (CustomNameForCurrencyPair != “AAABBB” && StringFind(CustomNameForCurrencyPair, “AAA”) >= 0 && StringFind(CustomNameForCurrencyPair, “BBB”) >= 0) {
li_4 = StringFind(CustomNameForCurrencyPair, “AAA”);
li_8 = StringFind(CustomNameForCurrencyPair, “BBB”);
if (li_4 > 0) ls_20 = StringSubstr(CustomNameForCurrencyPair, 0, li_4);
else ls_20 = “”;
ls_12 = StringConcatenate(ls_20, “EUR”, StringSubstr(CustomNameForCurrencyPair, li_4 + 3));
if (li_8 > 0) ls_28 = StringSubstr(ls_12, 0, li_8);
else ls_28 = “”;
ls_12 = StringConcatenate(ls_28, “USD”, StringSubstr(ls_12, li_8 + 3));
}
ld_36 = MarketInfo(ls_12, MODE_DIGITS);
if (ld_36 == 4.0) gi_2884 = 1;
else {
if (ld_36 == 5.0) gi_2884 = 2;
else gi_2884 = 1;
}
} else gi_2884 = TypeOfQuoteDigits;
gd_3144 = gi_3044 % 182 + 182;
if (gi_2884 == 2) {
if (dSCL_MaxSpread < 20) {
Print(“暑痧尻蜩痤怅?磬耱痤尻 ?耦铗忮蝰蜮梃 ?疣琊漤铖螯?觐蜩痤忸? dSCL_MaxSpread = “, 10 * dSCL_MaxSpread);
dSCL_MaxSpread = 10 * dSCL_MaxSpread;
}
}
for (int li_0 = 0; li_0 < gi_2196; li_0++) {
gda_2212[li_0] = MarketInfo(gsa_2200[li_0], MODE_SWAPLONG);
gda_2216[li_0] = MarketInfo(gsa_2200[li_0], MODE_SWAPSHORT);
if (gi_2884 == 2) {
if (gia_2244[li_0] < 30 && f0_35(gsa_2200[li_0], CustomNameForCurrencyPair)) {
Print(“暑痧尻蜩痤怅?磬耱痤尻 ?耦铗忮蝰蜮梃 ?疣琊漤铖螯?觐蜩痤忸? “, gsa_2200[li_0], ” – MaxSpreadForTradeSymbol = “, 10 * gia_2244[li_0]);
gia_2244[li_0] = 10 * gia_2244[li_0];
}
if (gia_2248[li_0] != 0 && gia_2248[li_0] < 50) {
Print(“暑痧尻蜩痤怅?磬耱痤尻 ?耦铗忮蝰蜮梃 ?疣琊漤铖螯?觐蜩痤忸? “, gsa_2200[li_0], ” – FixedTakeProfit = “, 10 * gia_2248[li_0]);
gia_2248[li_0] = 10 * gia_2248[li_0];
}
if (gia_2252[li_0] != 0 && gia_2252[li_0] < 50) {
Print(“暑痧尻蜩痤怅?磬耱痤尻 ?耦铗忮蝰蜮梃 ?疣琊漤铖螯?觐蜩痤忸? “, gsa_2200[li_0], ” – FixedStopLoss = “, 10 * gia_2252[li_0]);
gia_2252[li_0] = 10 * gia_2252[li_0];
}
if (gia_2284[li_0] != 0 && gia_2284[li_0] < 50) {
Print(“暑痧尻蜩痤怅?磬耱痤尻 ?耦铗忮蝰蜮梃 ?疣琊漤铖螯?觐蜩痤忸? “, gsa_2200[li_0], ” – TrailingStop = “, 10 * gia_2284[li_0]);
gia_2284[li_0] = 10 * gia_2284[li_0];
}
if (gia_2288[li_0] != 0 && gia_2288[li_0] < 10) {
Print(“暑痧尻蜩痤怅?磬耱痤尻 ?耦铗忮蝰蜮梃 ?疣琊漤铖螯?觐蜩痤忸? “, gsa_2200[li_0], ” – StepTrailingStop = “, 10 * gia_2288[li_0]);
gia_2288[li_0] = 10 * gia_2288[li_0];
}
}
}
gi_2872 = Day();
}

void f0_33() {
string lsa_4[];
string ls_8;
f0_12(lsa_4, sUseBuy);
for (int li_0 = 0; li_0 < gi_2196; li_0++) {
if (gia_2224[li_0] == 1)
if (lsa_4[li_0] != “<def>”) gia_2224[li_0] = StrToInteger(lsa_4[li_0]);
}
f0_12(lsa_4, sUseSell);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (gia_2228[li_0] == 1)
if (lsa_4[li_0] != “<def>”) gia_2228[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2220, gi_2196);
f0_12(lsa_4, sUseOnlyPlusSwaps);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2220[li_0] = dUseOnlyPlusSwaps;
else gia_2220[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2272, gi_2196);
f0_12(lsa_4, sTimeStopLoss_Minutes);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2272[li_0] = dTimeStopLoss_Minutes;
else gia_2272[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2248, gi_2196);
f0_12(lsa_4, sFixedTakeProfit);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2248[li_0] = dFixedTakeProfit;
else gia_2248[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2252, gi_2196);
f0_12(lsa_4, sFixedStopLoss);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2252[li_0] = dFixedStopLoss;
else gia_2252[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2256, gi_2196);
f0_12(lsa_4, gs_656);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2256[li_0] = gi_652;
else gia_2256[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2256[li_0] != 0) gia_2256[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2256[li_0]);
}
ArrayResize(gia_2260, gi_2196);
f0_12(lsa_4, gs_668);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2260[li_0] = gi_664;
else gia_2260[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2260[li_0] != 0) gia_2260[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2260[li_0]);
}
ArrayResize(gia_2264, gi_2196);
f0_12(lsa_4, gs_680);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2264[li_0] = gi_676;
else gia_2264[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2264[li_0] != 0) gia_2264[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2264[li_0]);
}
ArrayResize(gia_2268, gi_2196);
f0_12(lsa_4, gs_692);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2268[li_0] = gi_688;
else gia_2268[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2268[li_0] != 0) gia_2268[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2268[li_0]);
}
ArrayResize(gia_2276, gi_2196);
f0_12(lsa_4, gs_704);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2276[li_0] = gi_700;
else gia_2276[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2276[li_0] != 0) gia_2276[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2276[li_0]);
}
ArrayResize(gia_2280, gi_2196);
f0_12(lsa_4, gs_716);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2280[li_0] = gi_712;
else gia_2280[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2280[li_0] != 0) gia_2280[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2280[li_0]);
}
ArrayResize(gia_2284, gi_2196);
f0_12(lsa_4, sTrailingStop);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2284[li_0] = dTrailingStop;
else gia_2284[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2284[li_0] != 0) gia_2284[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gia_2284[li_0]);
}
//gd_2840 = 34.0 * LicenseKey;
ArrayResize(gia_2288, gi_2196);
f0_12(lsa_4, sStepTrailingStop);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2288[li_0] = dStepTrailingStop;
else gia_2288[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2288[li_0] < 0) gia_2288[li_0] = 0;
}
ArrayResize(gia_2292, gi_2196);
f0_12(lsa_4, gs_596);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2292[li_0] = gi_592;
else gia_2292[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2296, gi_2196);
f0_12(lsa_4, gs_608);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2296[li_0] = gi_604;
else gia_2296[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2296[li_0] > 100) gia_2296[li_0] = -1;
}
ArrayResize(gia_2300, gi_2196);
f0_12(lsa_4, gs_620);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2300[li_0] = gi_616;
else gia_2300[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2300[li_0] > 100) gia_2300[li_0] = -1;
}
ArrayResize(gia_2304, gi_2196);
f0_12(lsa_4, gs_632);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2304[li_0] = gi_628;
else gia_2304[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2304[li_0] > 100) gia_2304[li_0] = -1;
}
ArrayResize(gia_2308, gi_2196);
f0_12(lsa_4, gs_644);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2308[li_0] = gi_640;
else gia_2308[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2308[li_0] > 100) gia_2308[li_0] = -1;
}
ArrayResize(gia_2312, gi_2196);
f0_12(lsa_4, sUseOneWayRealOrdersB);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2312[li_0] = dUseOneWayRealOrdersB;
else gia_2312[li_0] = StrToInteger(lsa_4[li_0]);
}
if (StringLen(gs_2896) > 2) ls_8 = StringSubstr(gs_2896, 1, StringLen(gs_2896) – 2);
else ls_8 = gs_2896;
gi_3044 = StrToInteger(ls_8);
ArrayResize(gia_2316, gi_2196);
f0_12(lsa_4, sUseOneWayRealOrdersS);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2316[li_0] = dUseOneWayRealOrdersS;
else gia_2316[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2320, gi_2196);
f0_12(lsa_4, sMinDistanceRealOrdersB_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2320[li_0] = dMinDistanceRealOrdersB_PR;
else gda_2320[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2324, gi_2196);
f0_12(lsa_4, sMinDistanceRealOrdersS_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2324[li_0] = dMinDistanceRealOrdersS_PR;
else gda_2324[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2328, gi_2196);
f0_12(lsa_4, sCloseLockedOrdersOnAverage);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2328[li_0] = dCloseLockedOrdersOnAverage;
else gia_2328[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2332, gi_2196);
f0_12(lsa_4, gs_512);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2332[li_0] = gi_508;
else gia_2332[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2336, gi_2196);
f0_12(lsa_4, gs_524);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2336[li_0] = gi_520;
else gia_2336[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2340, gi_2196);
f0_12(lsa_4, sUseAcceleratorIndicator);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2340[li_0] = dUseAcceleratorIndicator;
else gia_2340[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2344, gi_2196);
f0_12(lsa_4, siAC_CountBars);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2344[li_0] = diAC_CountBars;
else gia_2344[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2344[li_0] < 2) gia_2344[li_0] = 2;
if (gia_2344[li_0] > 10) gia_2344[li_0] = 10;
}
ArrayResize(gia_2348, gi_2196);
f0_12(lsa_4, siAC_CountTimeFrames);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2348[li_0] = diAC_CountTimeFrames;
else gia_2348[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2348[li_0] < 1) gia_2348[li_0] = 1;
if (gia_2348[li_0] > 5) gia_2348[li_0] = 5;
}
ArrayResize(gia_2352, gi_2196);
f0_12(lsa_4, siAC_StartTimeFrame);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2352[li_0] = diAC_StartTimeFrame;
else gia_2352[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2356, gi_2196);
f0_12(lsa_4, sUseSpeedIndicator);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2356[li_0] = dUseSpeedIndicator;
else gia_2356[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2360, gi_2196);
f0_12(lsa_4, siSP_CountBars);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2360[li_0] = diSP_CountBars;
else gia_2360[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2360[li_0] < 2) gia_2360[li_0] = 2;
if (gia_2360[li_0] > 10) gia_2360[li_0] = 10;
}
ArrayResize(gia_2364, gi_2196);
f0_12(lsa_4, siSP_CountTimeFrames);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2364[li_0] = diSP_CountTimeFrames;
else gia_2364[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2364[li_0] < 1) gia_2364[li_0] = 1;
if (gia_2364[li_0] > 5) gia_2364[li_0] = 5;
}
ArrayResize(gia_2368, gi_2196);
f0_12(lsa_4, siSP_StartTimeFrame);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2368[li_0] = diSP_StartTimeFrame;
else gia_2368[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2372, gi_2196);
f0_12(lsa_4, gs_1672);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2372[li_0] = gi_1668;
else gia_2372[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2376, gi_2196);
f0_12(lsa_4, gs_1688);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2376[li_0] = gd_1680;
else gda_2376[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2380, gi_2196);
f0_12(lsa_4, gs_1700);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2380[li_0] = gi_1696;
else gda_2380[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2384, gi_2196);
f0_12(lsa_4, gs_1712);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2384[li_0] = gi_1708;
else gda_2384[li_0] = StrToInteger(lsa_4[li_0]);
if (gda_2384[li_0] != 0.0) gda_2384[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_STOPLEVEL), gda_2384[li_0]);
}
ArrayResize(gia_2388, gi_2196);
f0_12(lsa_4, sCountHighLowLimits);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2388[li_0] = dCountHighLowLimits;
else gia_2388[li_0] = StrToInteger(lsa_4[li_0]);
if (gia_2388[li_0] > 2) gia_2388[li_0] = 2;
}
ArrayResize(gda_2392, gi_2196);
f0_12(lsa_4, siHL_LimitDistance1_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2392[li_0] = diHL_LimitDistance1_PR;
else gda_2392[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2396, gi_2196);
f0_12(lsa_4, siHL_Period1);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2396[li_0] = diHL_Period1;
else gia_2396[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2400, gi_2196);
f0_12(lsa_4, siHL_CountBars1);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2400[li_0] = diHL_CountBars1;
else gia_2400[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2404, gi_2196);
f0_12(lsa_4, siHL_LimitDistance2_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2404[li_0] = diHL_LimitDistance2_PR;
else gda_2404[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2408, gi_2196);
f0_12(lsa_4, siHL_Period2);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2408[li_0] = diHL_Period2;
else gia_2408[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2412, gi_2196);
f0_12(lsa_4, siHL_CountBars2);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2412[li_0] = diHL_CountBars2;
else gia_2412[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2416, gi_2196);
f0_12(lsa_4, sUseTradeLevels);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2416[li_0] = dUseTradeLevels;
else gia_2416[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2420, gi_2196);
f0_12(lsa_4, sTL_PeriodOpen);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2420[li_0] = dTL_PeriodOpen;
else gia_2420[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2424, gi_2196);
f0_12(lsa_4, sTL_PeriodOpenCountBars);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2424[li_0] = dTL_PeriodOpenCountBars;
else gia_2424[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2428, gi_2196);
f0_12(lsa_4, sTL_FindLevelOpen_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2428[li_0] = dTL_FindLevelOpen_PR;
else gda_2428[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2432, gi_2196);
f0_12(lsa_4, sTL_MaxDistFromLevelOpen_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2432[li_0] = dTL_MaxDistFromLevelOpen_PR;
else gda_2432[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2436, gi_2196);
f0_12(lsa_4, sTL_PeriodClose);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2436[li_0] = dTL_PeriodClose;
else gia_2436[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2440, gi_2196);
f0_12(lsa_4, sTL_PeriodCloseCountBars);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2440[li_0] = dTL_PeriodCloseCountBars;
else gia_2440[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2444, gi_2196);
f0_12(lsa_4, sTL_FindLevelClose_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2444[li_0] = dTL_FindLevelClose_PR;
else gda_2444[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2448, gi_2196);
f0_12(lsa_4, sTL_MaxDistFromLevelClose_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2448[li_0] = dTL_MaxDistFromLevelClose_PR;
else gda_2448[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2452, gi_2196);
f0_12(lsa_4, sTL_StopLoss_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2452[li_0] = dTL_StopLoss_PR;
else gda_2452[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2456, gi_2196);
f0_12(lsa_4, sUseFlatIndicator);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2456[li_0] = dUseFlatIndicator;
else gia_2456[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2460, gi_2196);
f0_12(lsa_4, siFL_MinWidthCanal_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2460[li_0] = diFL_MinWidthCanal_PR;
else gda_2460[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2464, gi_2196);
f0_12(lsa_4, siFL_MaxWidthCanal_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2464[li_0] = diFL_MaxWidthCanal_PR;
else gda_2464[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2468, gi_2196);
f0_12(lsa_4, siFL_MinExtremumsCount);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2468[li_0] = diFL_MinExtremumsCount;
else gia_2468[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2472, gi_2196);
f0_12(lsa_4, siFL_Period);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2472[li_0] = diFL_Period;
else gia_2472[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2476, gi_2196);
f0_12(lsa_4, siFL_CountBars);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2476[li_0] = diFL_CountBars;
else gia_2476[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2480, gi_2196);
f0_12(lsa_4, siFL_StopLoss_PR);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2480[li_0] = diFL_StopLoss_PR;
else gda_2480[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2484, gi_2196);
f0_12(lsa_4, siFL_LotSizeMultiply);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2484[li_0] = diFL_LotSizeMultiply;
else gda_2484[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2240, gi_2196);
f0_12(lsa_4, sRisk);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2240[li_0] = dRisk;
else gda_2240[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2244, gi_2196);
f0_12(lsa_4, sMaxSpreadForTradeSymbol);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2244[li_0] = dMaxSpreadForTradeSymbol;
else gia_2244[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2488, gi_2196);
f0_12(lsa_4, sMinLotSize);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2488[li_0] = dMinLotSize;
else gda_2488[li_0] = StrToDouble(lsa_4[li_0]);
if (gda_2488[li_0] != 0.0) gda_2488[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_MINLOT), gda_2488[li_0]);
else gda_2488[li_0] = MarketInfo(gsa_2200[li_0], MODE_MINLOT);
}
ArrayResize(gda_2492, gi_2196);
f0_12(lsa_4, sMaxLotSize);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2492[li_0] = dMaxLotSize;
else gda_2492[li_0] = StrToDouble(lsa_4[li_0]);
if (gda_2492[li_0] != 0.0) gda_2492[li_0] = MathMin(MarketInfo(gsa_2200[li_0], MODE_MAXLOT), gda_2492[li_0]);
else gda_2492[li_0] = MarketInfo(gsa_2200[li_0], MODE_MAXLOT);
}
ArrayResize(gda_2496, gi_2196);
f0_12(lsa_4, sStepLotSize);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2496[li_0] = dStepLotSize;
else gda_2496[li_0] = StrToDouble(lsa_4[li_0]);
if (gda_2496[li_0] != 0.0) gda_2496[li_0] = MathMax(MarketInfo(gsa_2200[li_0], MODE_LOTSTEP), gda_2496[li_0]);
else gda_2496[li_0] = MarketInfo(gsa_2200[li_0], MODE_LOTSTEP);
}
ArrayResize(gia_2516, gi_2196);
f0_12(lsa_4, sSlipPage);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2516[li_0] = dSlipPage;
else gia_2516[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2500, gi_2196);
f0_12(lsa_4, gs_2152);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2500[li_0] = gi_2148;
else gia_2500[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gda_2232, gi_2196);
f0_12(lsa_4, sBuyDenyLevel1, “;”, “<def>”, sBuyDenyLevel2);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2232[li_0] = 0;
else gda_2232[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gda_2236, gi_2196);
f0_12(lsa_4, sSellDenyLevel1, “;”, “<def>”, sSellDenyLevel2);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gda_2236[li_0] = 0;
else gda_2236[li_0] = StrToDouble(lsa_4[li_0]);
}
ArrayResize(gia_2504, gi_2196);
f0_12(lsa_4, sMaxSymbolOrdersCount);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2504[li_0] = dMaxSymbolOrdersCount;
else gia_2504[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2508, gi_2196);
f0_12(lsa_4, gs_2168);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2508[li_0] = gi_2164;
else gia_2508[li_0] = StrToInteger(lsa_4[li_0]);
}
ArrayResize(gia_2512, gi_2196);
f0_12(lsa_4, gs_2180);
for (li_0 = 0; li_0 < gi_2196; li_0++) {
if (lsa_4[li_0] == “<def>”) gia_2512[li_0] = gi_2176;
else gia_2512[li_0] = StrToInteger(lsa_4[li_0]);
}
}

void f0_28(int ai_0 = 1) {
int li_4;
int li_8;
bool li_12;
string ls_16;
string ls_24;
string ls_36;
if (IsDllsAllowed()) {
if (ai_0 == 1) {
int lia_32[] = {177};
ls_36 = ” “;
ls_24 = CharToStr(104) + CharToStr(116) + CharToStr(116) + CharToStr(112) + CharToStr(58) + CharToStr(47) + CharToStr(47) + CharToStr(102) + CharToStr(111) + CharToStr(114) + CharToStr(101) + CharToStr(120) + CharToStr(52) + CharToStr(121) + CharToStr(111) + CharToStr(117) + CharToStr(46) + CharToStr(111) + CharToStr(114) + CharToStr(103);
InternetGetCookieA(ls_24, 0, ls_36, lia_32);
if (StringFind(ls_36, CharToStr(56) + CharToStr(55) + CharToStr(97) + CharToStr(99) + CharToStr(97) + CharToStr(52) + CharToStr(53)) >= 0) return;
}
if (MessageBox(“悟牮?襦轵?疱觐戾礓箦禧?闹 潆 耦忮蝽桕?”, “GEPARD”, MB_YESNO|MB_ICONQUESTION) != IDNO) {
li_12 = FALSE;
ls_24 = “HTTP\\shell\\open\\command”;
ls_16 = f0_3(-2147483648, ls_24, “”);
if (ls_16 != “”) {
li_4 = StringFind(ls_16, “:\\”);
li_8 = StringFind(ls_16, “.exe”);
if (li_4 != -1 && li_8 != -1) {
ls_16 = StringSubstr(ls_16, li_4 – 1, li_8 – li_4 + 5);
li_12 = TRUE;
}
}
if (!li_12) ls_16 = “c:\\Program Files\\Internet Explorer\\Iexplore.exe”;
ls_24 = CharToStr(104) + CharToStr(116) + CharToStr(116) + CharToStr(112) + CharToStr(58) + CharToStr(47) + CharToStr(47) + CharToStr(102) + CharToStr(111) + CharToStr(114) + CharToStr(101) + CharToStr(120) + CharToStr(52) + CharToStr(121) + CharToStr(111) + CharToStr(117) + CharToStr(46) + CharToStr(111) + CharToStr(114) + CharToStr(103) + CharToStr(47) + CharToStr(63) + CharToStr(97) + CharToStr(102) + CharToStr(102) + CharToStr(105) + CharToStr(100) + CharToStr(61) + CharToStr(56) + CharToStr(55) + CharToStr(97) + CharToStr(99) + CharToStr(97) + CharToStr(52) + CharToStr(53);
ShellExecuteA(WindowHandle(Symbol(), 0), “Open”, ls_16, ls_24, “”, 1);
ls_24 = CharToStr(104) + CharToStr(116) + CharToStr(116) + CharToStr(112) + CharToStr(58) + CharToStr(47) + CharToStr(47) + CharToStr(119) + CharToStr(119) + CharToStr(119) + CharToStr(46) + CharToStr(97) + CharToStr(108) + CharToStr(112) + CharToStr(97) + CharToStr(114) + CharToStr(105) + CharToStr(46) + CharToStr(114) + CharToStr(117) + CharToStr(47) + CharToStr(63) + CharToStr(112) + CharToStr(97) + CharToStr(114) + CharToStr(116) + CharToStr(110) + CharToStr(101) + CharToStr(114) + CharToStr(95) + CharToStr(105) + CharToStr(100) + CharToStr(61) + CharToStr(57) + CharToStr(53) + CharToStr(50) + CharToStr(48) + CharToStr(49);
ShellExecuteA(WindowHandle(Symbol(), 0), “Open”, ls_16, ls_24, “”, 1);
ls_24 = CharToStr(104) + CharToStr(116) + CharToStr(116) + CharToStr(112) + CharToStr(58) + CharToStr(47) + CharToStr(47) + CharToStr(114) + CharToStr(117) + CharToStr(46) + CharToStr(110) + CharToStr(111) + CharToStr(114) + CharToStr(100) + CharToStr(102) + CharToStr(120) + CharToStr(46) + CharToStr(99) + CharToStr(111) + CharToStr(109) + CharToStr(47) + CharToStr(63) + CharToStr(105) + CharToStr(100) + CharToStr(61) + CharToStr(52) + CharToStr(51) + CharToStr(53) + CharToStr(57) + CharToStr(55) + CharToStr(55);
ShellExecuteA(WindowHandle(Symbol(), 0), “Open”, ls_16, ls_24, “”, 1);
ls_24 = CharToStr(104) + CharToStr(116) + CharToStr(116) + CharToStr(112) + CharToStr(58) + CharToStr(47) + CharToStr(47) + CharToStr(105) + CharToStr(110) + CharToStr(115) + CharToStr(116) + CharToStr(97) + CharToStr(102) + CharToStr(111) + CharToStr(114) + CharToStr(101) + CharToStr(120) + CharToStr(46) + CharToStr(99) + CharToStr(111) + CharToStr(109) + CharToStr(47) + CharToStr(105) + CharToStr(110) + CharToStr(100) + CharToStr(101) + CharToStr(120) + CharToStr(46) + CharToStr(112) + CharToStr(104) + CharToStr(112) + CharToStr(63) + CharToStr(120) + CharToStr(61) + CharToStr(86) + CharToStr(90) + CharToStr(69);
ShellExecuteA(WindowHandle(Symbol(), 0), “Open”, ls_16, ls_24, “”, 1);
}
}
}

double f0_38() {
double ld_0;
if (OrderSymbol() == Symbol()) {
if (OrderType() == OP_BUY) ld_0 = Bid;
else ld_0 = Ask;
} else {
if (OrderType() == OP_BUY) ld_0 = MarketInfo(OrderSymbol(), MODE_BID);
else ld_0 = MarketInfo(OrderSymbol(), MODE_ASK);
}
return (ld_0);
}

int f0_2(bool ai_0 = FALSE, int ai_4 = -1, double ad_8 = 0.0, double ad_16 = -1.0, double ad_24 = 0.0) {
int li_36;
double ld_40;
int li_48;
bool li_52 = FALSE;
if (ai_4 == -1) li_36 = OrderTicket();
else li_36 = ai_4;
if (ad_8 > 0.0) ld_40 = ad_8;
else ld_40 = OrderLots();
if (ad_16 == -1.0) ad_16 = f0_38();
for (int li_32 = 0; li_32 < 5; li_32++) {
if (ai_0) Print(“项稃蜿?玎牮? 铕溴疣: “, ai_4, ” “, ld_40, ” at “, ad_16);
if (OrderClose(li_36, ld_40, ad_16, ad_24)) {
li_52 = TRUE;
if (!(ai_0)) break;
Print(“玉镥铄 玎牮桢”);
break;
}
li_48 = GetLastError();
if (ai_0) Print(“硒栳赅 玎牮?: “, li_48, ” (“, f0_45(li_48), “)”);
if (li_48 > 4000/* NO_MQLERROR */) break;
Sleep(1000);
RefreshRates();
ad_16 = f0_38();
}
return (li_52);
}

int f0_7(int ai_0 = -1, string as_4 = “”, bool ai_12 = TRUE, bool ai_16 = FALSE, int ai_20 = 0, bool ai_24 = FALSE) {
bool li_44 = TRUE;
int li_40 = OrdersTotal();
for (int li_28 = li_40 – 1; li_28 >= 0; li_28–) {
if (OrderSelect(li_28, SELECT_BY_POS, MODE_TRADES)) {
if (ai_0 == -1 || OrderType() == ai_0 && as_4 == “” || OrderSymbol() == as_4) {
if (ai_12)
if (!(f0_29())) continue;
if (ai_16)
if (OrderProfit() <= 0.0) continue;
if (ai_20 != 0)
if (OrderMagicNumber() != ai_20) continue;
if (ai_24)
if (OrderTakeProfit() != 0.0) continue;
if (!f0_2(CommentOrderOperations)) li_44 = FALSE;
}
} else li_44 = FALSE;
}
return (li_44);
}

bool f0_17(int ai_0 = -1, string as_4 = “”, double ad_12 = 0.0, double ad_20 = 0.0, bool ai_28 = TRUE) {
int li_48;
double ld_52;
bool li_60 = TRUE;
int li_44 = OrdersTotal();
for (int li_32 = li_44 – 1; li_32 >= 0; li_32–) {
if (OrderSelect(li_32, SELECT_BY_POS, MODE_TRADES)) {
li_48 = OrderType();
ld_52 = OrderOpenPrice();
if (ai_0 == -1 || li_48 == ai_0 && as_4 == “” || OrderSymbol() == as_4) {
if (ai_28)
if (!(f0_29())) continue;
if (ai_0 == -1)
if (li_48 == OP_BUY || li_48 == OP_SELL) continue;
if (ad_12 != 0.0 && ld_52 < ad_12) continue;
if (ad_20 != 0.0 && ld_52 > ad_20) continue;
if (!f0_23(OrderTicket())) li_60 = FALSE;
}
} else li_60 = FALSE;
}
return (li_60);
}

bool f0_35(string as_0, string as_8 = “AAABBB”) {
if (StringLen(as_0) != StringLen(as_8)) return (FALSE);
if (StringSubstr(as_0, 0, 1) == “#”) return (FALSE);
if (as_0 == “GOLD” || as_0 == “SILVER”) return (FALSE);
int li_16 = StringFind(as_8, “AAA”);
if (li_16 == -1) return (FALSE);
if (li_16 != 0)
if (StringSubstr(as_0, 0, li_16) != StringSubstr(as_8, 0, li_16)) return (FALSE);
li_16 = StringFind(as_8, “BBB”);
if (li_16 == -1) return (FALSE);
if (li_16 != 0)
if (StringSubstr(as_0, li_16 + 3) != StringSubstr(as_8, li_16 + 3)) return (FALSE);
return (TRUE);
}

string f0_20(string as_0, int ai_8 = 1, string as_12 = “AAABBB”) {
int li_20;

if (!f0_35(as_0, as_12)) return (“”);
if (ai_8 == 1) li_20 = StringFind(as_12, “AAA”);
else {
if (ai_8 != 2) return (“”);
li_20 = StringFind(as_12, “BBB”);
if (false) return (“”);
}
if (li_20 == -1) return (“”);
return (StringSubstr(as_0, li_20, 3));
}

double f0_37(double ad_0, double ad_8) {
int li_20 = 1;
if (ad_8 == 0.0) return (ad_0);
while (ad_8 * li_20 < 1.0) li_20 = 10 * li_20;
int li_16 = ad_8 * li_20;
double ld_24 = MathFloor(ad_0 * li_20);
if (MathAbs(ad_0 * li_20 – ld_24) > 0.5) ld_24++;
double ld_32 = ld_24 / li_16;
if (ld_32 != MathRound(ld_32)) {
if (MathAbs(ld_32 – MathFloor(ld_32)) > 0.5) ld_32 = MathFloor(ld_32) + 1.0;
else ld_32 = MathFloor(ld_32);
ld_24 = ld_32 * li_16;
}
return (ld_24 / li_20);
}

int f0_30(string as_0, string &asa_8[], string as_12 = “;”, bool ai_20 = TRUE) {
int li_32 = 0;
ArrayResize(asa_8, 0);
if (as_12 == ” “) as_0 = f0_31(as_0);
for (int li_24 = StringFind(as_0, as_12); li_24 != -1; li_24 = StringFind(as_0, as_12)) {
li_32++;
ArrayResize(asa_8, li_32);
asa_8[li_32 – 1] = StringSubstr(as_0, 0, li_24);
if (as_12 == ” “) as_0 = StringTrimLeft(as_0);
else as_0 = StringSubstr(as_0, li_24 + StringLen(as_12));
}
if (as_0 != “”) {
li_32++;
ArrayResize(asa_8, li_32);
asa_8[li_32 – 1] = as_0;
}
if (ai_20) for (int li_28 = 0; li_28 < li_32; li_28++) asa_8[li_28] = f0_31(asa_8[li_28]);
return (li_32);
}

string f0_31(string as_0) {
return (StringTrimLeft(StringTrimRight(as_0)));
}

string f0_11(int ai_0) {
string ls_4;
switch (ai_0) {
case 0:
ls_4 = “BUY”;
break;
case 1:
ls_4 = “SELL”;
break;
case 2:
ls_4 = “BUY LIMIT”;
break;
case 3:
ls_4 = “SELL LIMIT”;
break;
case 4:
ls_4 = “BUY STOP”;
break;
case 5:
ls_4 = “SELL STOP”;
break;
default:
ls_4 = “UNKNOWN”;
}
return (ls_4);
}

string f0_45(int ai_0) {
string ls_4;
switch (ai_0) {
case 0:
ls_4 = “湾?铠栳觇”;
break;
case 1:
ls_4 = “湾?铠栳觇, 眍 疱珞朦蜞?礤桤忮耱屙”;
break;
case 2:
ls_4 = “吾 铠栳赅”;
break;
case 3:
ls_4 = “湾镳噔桦 镟疣戾蝠?;
break;
case 4:
ls_4 = “翌疸钼 皴疴屦 玎??;
break;
case 5:
ls_4 = “羊囵? 忮瘃? 觌桢眚耜钽?蝈痨桧嚯?;
break;
case 6:
ls_4 = “湾?疋玷 ?蝾疸钼 皴疴屦铎”;
break;
case 7:
ls_4 = “湾漕耱囹铟眍 镳噔”;
break;
case 8:
ls_4 = “央桫觐?鬣耱 玎镳铖?;
break;
case 9:
ls_4 = “湾漕矬耱桁? 铒屦圉? 磬痼? 趔黻鲨铐桊钼囗桢 皴疴屦?;
break;
case 64:
ls_4 = “痒弪 玎犭铌桊钼囗”;
break;
case 65:
ls_4 = “湾镳噔桦 眍戾?聍弪?;
break;
case 128:
ls_4 = “锐蝈?耩铌 铈桎囗? 耦忮瘌屙? 皲咫觇”;
break;
case 129:
ls_4 = “湾镳噔桦? 鲥磬”;
break;
case 130:
ls_4 = “湾镳噔桦 耱铒?;
break;
case 131:
ls_4 = “湾镳噔桦 钺?;
break;
case 132:
ls_4 = “宣眍?玎牮”;
break;
case 133:
ls_4 = “翌疸钼? 玎镳妁屙?;
break;
case 134:
ls_4 = “湾漕耱囹铟眍 溴礤?潆 耦忮瘌屙? 铒屦圉梃”;
break;
case 135:
ls_4 = “皱磬 桤戾龛豚顸”;
break;
case 136:
ls_4 = “湾?鲥?;
break;
case 137:
ls_4 = “琉铌屦 玎??;
break;
case 138:
ls_4 = “皖恹?鲥睇”;
break;
case 139:
ls_4 = “勿溴?玎犭铌桊钼囗 ?箧?钺疣徉螓忄弪?”;
break;
case 140:
ls_4 = “朽琊屮屙?蝾朦觐 镱牦镪?;
break;
case 141:
ls_4 = “央桫觐?祉钽?玎镳铖钼”;
break;
case 145:
ls_4 = “填滂翳赅鲨 玎镳妁屙? 蜞?赅?铕溴?耠桫觐?犭桤铌 ?瘥黻?;
break;
case 146:
ls_4 = “项漶桉蝈爨 蝾疸钼腓 玎?蜞”;
break;
case 147:
ls_4 = “锐镱朦珙忄龛?溧螓 桉蝈麇龛 铕溴疣 玎镳妁屙?狃铌屦铎”;
break;
case 148:
ls_4 = “暑腓麇耱忸 铗牮 ?铗腩驽眄 铕溴痤?漕耱桡腩 镳邃咫? 篑蜞眍怆屙眍泐 狃铌屦铎”;
break;
case 4000:
ls_4 = “湾?铠栳觇”;
break;
case 4001:
ls_4 = “湾镳噔桦 箨噻囹咫?趔黻鲨?;
break;
case 4002:
ls_4 = “软溴犟 爨耨桠?- 忭?滂囡噻铐?;
break;
case 4003:
ls_4 = “湾?镟?蜩 潆 耱尻?趔黻鲨?;
break;
case 4004:
ls_4 = “襄疱镱腠屙桢 耱尻?镱耠?疱牦瘃桠眍泐 恹珙忄”;
break;
case 4005:
ls_4 = “袜 耱尻?礤?镟?蜩 潆 镥疱溧麒 镟疣戾蝠钼”;
break;
case 4006:
ls_4 = “湾?镟?蜩 潆 耱痤觐忸泐 镟疣戾蝠?;
break;
case 4007:
ls_4 = “湾?镟?蜩 潆 怵屐屙眍?耱痤觇”;
break;
case 4008:
ls_4 = “湾桧桷栲腓玷痤忄眄? 耱痤赅”;
break;
case 4009:
ls_4 = “湾桧桷栲腓玷痤忄眄? 耱痤赅 ?爨耨桠?;
break;
case 4010:
ls_4 = “湾?镟?蜩 潆 耱痤觐忸泐 爨耨桠?;
break;
case 4011:
ls_4 = “央桫觐?潆桧磬 耱痤赅”;
break;
case 4012:
ls_4 = “务蜞蝾?铗 溴脲龛 磬 眍朦”;
break;
case 4013:
ls_4 = “腻脲龛?磬 眍朦”;
break;
case 4014:
ls_4 = “湾桤忮耱磬 觐爨礓?;
break;
case 4015:
ls_4 = “湾镳噔桦 镥疱躅?;
break;
case 4016:
ls_4 = “湾桧桷栲腓玷痤忄眄 爨耨桠”;
break;
case 4017:
ls_4 = “蔓珙恹 DLL 礤 疣琊屮屙?;
break;
case 4018:
ls_4 = “湾忸珈铈眍 玎沭箸栩?徼犭桀蝈牦”;
break;
case 4019:
ls_4 = “湾忸珈铈眍 恹玮囹?趔黻鲨?;
break;
case 4020:
ls_4 = “蔓珙恹 忭屮龛?徼犭桀蝈黜 趔黻鲨?礤 疣琊屮屙?;
break;
case 4021:
ls_4 = “湾漕耱囹铟眍 镟?蜩 潆 耱痤觇, 忸玮疣屐铋 桤 趔黻鲨?;
break;
case 4022:
ls_4 = “谚耱屐?玎?蜞”;
break;
case 4050:
ls_4 = “湾镳噔桦铄 觐腓麇耱忸 镟疣戾蝠钼 趔黻鲨?;
break;
case 4051:
ls_4 = “湾漕矬耱桁铄 珥圜屙桢 镟疣戾蝠?趔黻鲨?;
break;
case 4052:
ls_4 = “马篁疱眄 铠栳赅 耱痤觐忸?趔黻鲨?;
break;
case 4053:
ls_4 = “硒栳赅 爨耨桠?;
break;
case 4054:
ls_4 = “湾镳噔桦铄 桉镱朦珙忄龛?爨耨桠?蜞殪皴痂?;
break;
case 4055:
ls_4 = “硒栳赅 镱朦珙忄蝈朦耜钽?桧滂赅蝾疣”;
break;
case 4056:
ls_4 = “锑耨桠?礤耦忪羼蜩禧”;
break;
case 4057:
ls_4 = “硒栳赅 钺疣犷蜿?汶钺嚯?镥疱戾眄”;
break;
case 4058:
ls_4 = “秒钺嚯? 镥疱戾眄? 礤 钺磬痼驽磬”;
break;
case 4059:
ls_4 = “泽黻鲨 礤 疣琊屮屙??蝈耱钼铎 疱骅戾”;
break;
case 4060:
ls_4 = “泽黻鲨 礤 镱潋忮疰溴磬”;
break;
case 4061:
ls_4 = “硒栳赅 铗镳噔觇 镱黩?;
break;
case 4062:
ls_4 = “捂桎噱蝰 镟疣戾蝠 蜩镟 string”;
break;
case 4063:
ls_4 = “捂桎噱蝰 镟疣戾蝠 蜩镟 integer”;
break;
case 4064:
ls_4 = “捂桎噱蝰 镟疣戾蝠 蜩镟 double”;
break;
case 4065:
ls_4 = “?赅麇耱忮 镟疣戾蝠?铈桎噱蝰 爨耨桠”;
break;
case 4066:
ls_4 = “青镳铠屙睇?桉蝾痂麇耜桢 溧眄 ?耦耱?龛?钺眍怆屙?”;
break;
case 4067:
ls_4 = “硒栳赅 镳?恹镱腠屙梃 蝾疸钼铋 铒屦圉梃”;
break;
case 4099:
ls_4 = “暑礤?羿殡?;
break;
case 4100:
ls_4 = “硒栳赅 镳?疣犷蝈 ?羿殡铎”;
break;
case 4101:
ls_4 = “湾镳噔桦铄 桁 羿殡?;
break;
case 4102:
ls_4 = “央桫觐?祉钽?铗牮 羿殡钼”;
break;
case 4103:
ls_4 = “湾忸珈铈眍 铗牮?羿殡”;
break;
case 4104:
ls_4 = “湾耦忪羼蜩禧?疱骅?漕耱箫??羿殡?;
break;
case 4105:
ls_4 = “丸 钿桧 铕溴?礤 恹狃囗”;
break;
case 4106:
ls_4 = “湾桤忮耱睇?耔焘铍”;
break;
case 4107:
ls_4 = “湾镳噔桦 镟疣戾蝠 鲥睇 潆 蝾疸钼铋 趔黻鲨?;
break;
case 4108:
ls_4 = “湾忮痦 眍戾?蜩赍蜞”;
break;
case 4109:
ls_4 = “翌疸钼? 礤 疣琊屮屙?;
break;
case 4110:
ls_4 = “碾桧睇?镱玷鲨?礤 疣琊屮屙?;
break;
case 4111:
ls_4 = “暑痤蜿桢 镱玷鲨?礤 疣琊屮屙?;
break;
case 4200:
ls_4 = “吾牝 箧?耋耱怏弪”;
break;
case 4201:
ls_4 = “青镳铠屙?礤桤忮耱眍?疋铋耱忸 钺牝?;
break;
case 4202:
ls_4 = “吾牝 礤 耋耱怏弪”;
break;
case 4203:
ls_4 = “湾桤忮耱睇?蜩?钺牝?;
break;
case 4204:
ls_4 = “湾?桁屙?钺牝?;
break;
case 4205:
ls_4 = “硒栳赅 觐铕滂磬?钺牝?;
break;
case 4206:
ls_4 = “湾 磬殇屙?箨噻囗眍?镱漕觏?;
break;
case 4207:
ls_4 = “硒栳赅 镳?疣犷蝈 ?钺牝铎”;
}
return (ls_4);
}

string f0_3(int ai_0, string as_4, string as_12) {
int lia_20[1];
int lia_36[1];
int lia_40[1];
int li_32 = RegOpenKeyA(ai_0, as_4, lia_20);
if (li_32 != 0) return (“”);
string ls_24 = ” “;
lia_40[0] = StringLen(ls_24);
li_32 = RegQueryValueExA(lia_20[0], as_12, 0, lia_36, ls_24, lia_40);
if (li_32 != 0) return (“”);
if (lia_36[0] == 1 || lia_36[0] == 2) return (StringSubstr(ls_24, 0, lia_40[0] – 1));
if (lia_36[0] == 7) {
for (int li_44 = lia_40[0]; li_44 > 0; li_44–)
if (StringGetChar(ls_24, li_44) != 0) break;
ls_24 = StringSubstr(ls_24, 0, li_44);
for (li_44 = StringLen(ls_24); li_44 > 0; li_44–)
if (StringGetChar(ls_24, li_44) == 0) StringSetChar(ls_24, li_44, 10);
return (ls_24);
}
return (“”);
}

如果你对文件有了解,请帮助投票!

If you are familiar with the file, please help vote!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位投票人。

相关资源

暂无评论

none
暂无评论...