bool gi_196 = FALSE;
bool gi_200 = TRUE;
int gi_204 = 18;
int gi_208 = 1;
int gi_212 = 1;
int gi_216;
int gi_220;
int gi_224 = 1;
bool gi_228 = TRUE;
int gi_232 = 0;
int gi_236 = 100000;
int gi_240 = 1;
double gd_244;
string g_symbol_252;
void CheckVersion() {
string ls_0;
string ls_8;
if (gi_228 != FALSE) {
if (TimeCurrent() > gi_232) {
ls_0 = "..........................................................";
ls_0 = Version(gs_136);
if (ls_0 != gs_144) {
Print("Current System Version: " + gs_144);
Print("Actual System Version: " + ls_0);
ls_8 = "Please close this application and run EA_SHARK5.0_ULTIMATE_UPDATE.exe for updating the build version";
Print(ls_8);
Alert(ls_8);
gi_228 = FALSE;
}
gi_232 = TimeCurrent();
gi_232 += 3600 * gi_224;
}
}
}
void Registered() {
Print("registering with Advisor:" + gs_136 + " Account:" + AccountName() + "...");
int l_bool_0 = IsTesting();
int li_4 = IsOptimization();
gi_216 = Init(gs_136, AccountName(), Moneymanagement, Lots, MaxLots, MaximumRisk, MarketInfo(Symbol(), MODE_MINLOT), MarketInfo(Symbol(), MODE_MAXLOT), l_bool_0, li_4, AccountCurrency(), AccountLeverage(), gi_236, CheckSL(gi_164, ATR_Timeframe, ATR_Period, ATR_border, StopLoss_mode_A, StopLoss_mode_B), Symbol());
if (gi_216 == 0) {
Print("You have registered");
return;
}
if (gi_216 == 1) {
Print("EA SHARK 5.0 ULTIMATE >> No license for this account. Contact:
[email protected]");
Alert("EA SHARK 5.0 ULTIMATE >> No license for this account. Contact:
[email protected]");
return;
}
if (gi_216 == -1) {
Print("Error connect to DB for registrated");
Alert("EA SHARK 5.0 ULTIMATE >> Error connect to DB for registrated");
gi_220 = TimeCurrent();
gi_220 += 3600 * gi_212;
return;
}
Print("Unknown error");
}