questo ea non sembra aprire trades nel tester. sai dirmi perchè? 
#property copyright "JorgeFx Ea";
#property link "www.jorgefx.com";
#property version "23.2";
#property strict
/*
#import "kernel32.dll"

int CreateFileW(string,int,int,int,int,int,int);
int GetFileSize(int,int);
int SetFilePointer(int,int,int&,int);
int ReadFile(int,uchar&[],int,int&[],int);
int CloseHandle(int);

#import
*/
extern int MagicID = 16888;
extern double LOTS = 0.01;
extern int risk = 3;
extern double SL = 320;
extern double TP = 27;

union Price
{
   public:
      uchar m_0[8];
      double m_52;
};


//bool returned_b;
//long returned_l;
//long Il_00088;
double Id_00078;
double Ind_000;
int Ii_0000C;
string Is_00050;
int returned_i;
int Gi_00000;
long Il_00090;
long Gl_00000;
int Gi_00001;
long Gl_00001;
long Gl_00002;
bool Gb_00002;
int Ii_0004C;
int Gi_00002;
int Gi_00003;
double Ind_004;
long Gl_00003;
bool Gb_00004;
double Gd_00002;
int Gi_00004;
double Gd_00005;
double Gd_00004;
bool Gb_00006;
long Gl_00006;
int Gi_00006;
int Gi_00007;
int Gi_00008;
bool Gb_00009;
double Gd_00006;
double Gd_00008;
int Gi_00009;
double Gd_0000A;
double Gd_00009;
int Gi_0000A;
int Gi_0000B;
int Gi_0000C;
bool Gb_0000D;
double Gd_0000C;
int Gi_0000D;
double Gd_0000E;
double Gd_0000D;
int Gi_0000E;
int Gi_0000F;
int Gi_00010;
bool Gb_00011;
double Gd_00010;
int Gi_00011;
double Gd_00012;
double Gd_00011;
int Gi_00012;
int Gi_00013;
int Gi_00014;
bool Gb_00015;
double Gd_00014;
int Gi_00015;
double Gd_00016;
double Gd_00015;
int Gi_00016;
int Gi_00017;
int Gi_00018;
int Gi_00019;
int Gi_0001A;
int Gi_0001B;
int Gi_0001C;
bool Gb_0001B;
int Gi_0001D;
int Gi_0001E;
bool Gb_0001D;
int Gi_0001F;
bool Gb_00020;
double Gd_0001D;
double Gd_0001F;
double Gd_00020;
double Gd_00021;
double Gd_00022;
double Gd_00023;
bool Gb_00023;
int Gi_00023;
double Gd_00024;
double Gd_00025;
int Gi_00026;
double Gd_00027;
double Gd_00028;
double Gd_00029;
double Gd_0002A;
double Gd_0002B;
bool Gb_0002B;
int Ii_00080;
int Gi_0002B;
int Gi_0002C;
bool Gb_0002D;
double Gd_0002C;
double Gd_0002D;
double Gd_0002E;
double Gd_0002F;
double Gd_00030;
bool Gb_00030;
int Gi_00030;
double Gd_00031;
double Gd_00032;
int Gi_00033;
double Gd_00034;
double Gd_00035;
double Gd_00036;
double Gd_00037;
double Gd_00038;
bool Gb_00038;
string Is_00000;
int Ii_00010;
bool Ib_00014;
bool Ib_00015;
string Is_00060;
uchar Gc_00002;
char Gc_00001;
uchar Gc_00004;
char Gc_00003;
int Gi_00005;
uchar Gc_00006;
char Gc_00005;
uchar Gc_00008;
char Gc_00007;
uchar Gc_0000A;
char Gc_00009;
uchar Gc_0000C;
char Gc_0000B;
uchar Gc_0000E;
char Gc_0000D;
uchar Gc_00010;
char Gc_0000F;
char Gc_00011;
char Gc_00012;
char Gc_00013;
char Gc_00014;
char Gc_00015;
char Gc_00016;
char Gc_00017;
double Gd_00018;
double Gd_00019;
long Gl_0001A;
double Gd_0001C;
double Gd_0001E;
int Gi_00020;
int Gi_00021;
double Gd_00001;
double Gd_00003;
double Gd_00000;
double Gd_00007;
long Gl_0000C;
long Gl_0000B;
bool Gb_0000F;
double Gd_0000F;
double Id_00018[][2];
Price Input_Price_00000070;
bool order_check;

int init()
{
   string tmp_str00000;
   int Li_FFFFC;
   string Ls_FFFF0;
   
   Is_00000 = "www.jorgefx.com";
   Ii_0000C = 3;
   Ii_00010 = 10;
   Ib_00014 = true;
   Ib_00015 = true;
   Ii_0004C = 0;
   Id_00078 = 0;
   Ii_00080 = 0;
//   Il_00088 = 1701381600;
   Il_00090 = 0;
   
   if (IsDllsAllowed() != true) { 
   Alert("Make Sure DLL Import is Allowed");
   ExpertRemove();
   Li_FFFFC = 1;
   return Li_FFFFC;
   } 

   Id_00078 = _Point;
   if (_Digits == 5 || _Digits == 3) { 
   
   Id_00078 = (Id_00078 * 10);
   Ii_0000C = Ii_0000C * 10;
   } 
   ChartSetInteger(0, 17, 0, 0);
   ChartSetInteger(0, 0, 1);
   Ls_FFFF0 = AccountInfoString(3);
   if (Ls_FFFF0 == "") { 
   Ls_FFFF0 = "default";
   } 
   tmp_str00000 = TerminalInfoString(3);
   tmp_str00000 = tmp_str00000 + "\\history\\";
   tmp_str00000 = tmp_str00000 + Ls_FFFF0;
   tmp_str00000 = tmp_str00000 + "\\";
   tmp_str00000 = tmp_str00000 + _Symbol;
   tmp_str00000 = tmp_str00000 + "240";
   tmp_str00000 = tmp_str00000 + ".hst";
   Is_00050 = tmp_str00000;
//   func_1020(tmp_str00000);
   Li_FFFFC = 0;
   
   return Li_FFFFC;
}

void OnTick()
{
   string tmp_str00000;
   string tmp_str00001;
   string tmp_str00002;
   int Li_FFFFC;
   int Li_FFFF8;
   double WPR;
   double Awesome;
   double Ld_FFFE0;
   double Ld_FFFD8;
   double Ld_FFFD0;
   double Ld_FFFC8;
   double Ld_FFFC0;
   double Ld_FFFB8;

   if (Il_00090 == Time[0]) return; 
   Il_00090 = Time[0];
   ChartRedraw(0);
   Gl_00002 = iVolume(_Symbol, 15, 0);
   if (Gl_00002 > iVolume(_Symbol, 15, 1)) return; 
   Gb_00002 = !Ii_0004C;
   Gi_00002 = Gb_00002;
   if (Gi_00002 > 0) return; 
   Li_FFFFC = -1;
   Li_FFFF8 = 0;
   Gi_00002 = Ii_0004C - 1;
   if (Gi_00002 > 0) { 
   do { 
   if ((Id_00018[Li_FFFF8, 0] >= Time[0])) break; 
   Li_FFFFC = Li_FFFF8 + 1;
   Li_FFFF8 = Li_FFFF8 + 1;
   Gi_00004 = Ii_0004C - 1;
   } while (Li_FFFF8 < Gi_00004); 
   } 
//   HideTestIndicators(true);
   WPR = iWPR(_Symbol, 0, 150, 0);
   Awesome = iAO(_Symbol, 0, 0);
   HideTestIndicators(false);
   Ld_FFFE0 = NormalizeDouble(Id_00018[Li_FFFFC, 1], _Digits);
//   ObjectDelete("level");
   Gd_00005 = Ld_FFFE0;
//   tmp_str00000 = "level";
   if ((Ld_FFFE0 > iOpen(_Symbol, 1, 0))) { 
   tmp_str00001 = "BUY = " + DoubleToString(Ld_FFFE0, _Digits);
   Comment(tmp_str00001);
   } 
   if ((Gd_00005 < iOpen(_Symbol, 1, 0))) { 
   tmp_str00002 = "SELL= " + DoubleToString(Gd_00005, _Digits);
   Comment(tmp_str00002);
   } 
/*   if (ObjectFind(tmp_str00000) != -1) { 
   ObjectMove(tmp_str00000, 0, iTime(_Symbol, 1, 0), Gd_00005);
   } 
   else { 
   ObjectCreate(0, tmp_str00000, OBJ_HLINE, 0, 0, Gd_00005, 0, 0, 0, 0);
   ObjectSet(tmp_str00000, OBJPROP_COLOR, 16776960);
   ObjectSet(tmp_str00000, OBJPROP_STYLE, 0);
   ObjectSet(tmp_str00000, OBJPROP_WIDTH, 2);
   ObjectSet(tmp_str00000, OBJPROP_BACK, 1);
   } 
*/
   if ((Id_00018[Li_FFFFC, 1] > Open[0])) { 
   Comment("BUY - ", Id_00018[Li_FFFFC, 1]);
   } 
   if ((Id_00018[Li_FFFFC, 1] < Open[0])) { 
   Comment("SELL - ", Id_00018[Li_FFFFC, 1]);
   } 
   if ((Id_00018[Li_FFFFC, 1] > Open[0])) { 
   Comment("BUY jorgefx ea - ", Id_00018[Li_FFFFC, 1]);
   } 
   if ((Id_00018[Li_FFFFC, 1] < Open[0])) { 
   Comment("SELL jorgefx ea - ", Id_00018[Li_FFFFC, 1]);
   } 
   Ld_FFFD8 = MarketInfo(_Symbol, MODE_SPREAD);
   MarketInfo(_Symbol, MODE_SPREAD);
   Gi_00016 = 0;
   Gi_00017 = OrdersTotal() - 1;
   Gi_00018 = Gi_00017;
   if (Gi_00017 >= 0) { 
   do { 
   order_check = OrderSelect(Gi_00018, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_BUY) { 
   Gi_00016 = Gi_00016 + 1;
   } 
   Gi_00018 = Gi_00018 - 1;
   } while (Gi_00018 >= 0); 
   } 
   if (Gi_00016 >= 70) return; 
   Gi_00017 = 0;
   Gi_00019 = OrdersTotal() - 1;
   Gi_0001A = Gi_00019;
   if (Gi_00019 >= 0) { 
   do { 
   order_check = OrderSelect(Gi_0001A, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_SELL) { 
   Gi_00017 = Gi_00017 + 1;
   } 
   Gi_0001A = Gi_0001A - 1;
   } while (Gi_0001A >= 0); 
   } 
   if (Gi_00017 >= 70) return; 
   Gi_00019 = 0;
   Gi_0001B = OrdersTotal() - 1;
   Gi_0001C = Gi_0001B;
   if (Gi_0001B >= 0) { 
   do { 
   order_check = OrderSelect(Gi_0001C, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_BUY) { 
   Gi_00019 = Gi_00019 + 1;
   } 
   Gi_0001C = Gi_0001C - 1;
   } while (Gi_0001C >= 0); 
   } 
   if (Gi_00019 >= 70) return; 
   if (((iWPR(_Symbol, 0, 150, 0) - 10) >= -1)) return; 
   Gi_0001B = 0;
   Gi_0001D = OrdersTotal() - 1;
   Gi_0001E = Gi_0001D;
   if (Gi_0001D >= 0) { 
   do { 
   order_check = OrderSelect(Gi_0001E, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_SELL) { 
   Gi_0001B = Gi_0001B + 1;
   } 
   Gi_0001E = Gi_0001E - 1;
   } while (Gi_0001E >= 0); 
   } 
   if (Gi_0001B >= 70) return; 
   if (((iWPR(_Symbol, 0, 150, 0) - 90) <= -99)) return; 
   if ((Id_00018[Li_FFFFC, 1] > Open[0]) && func_1043()) { 
   Gd_00020 = (SL * Id_00078);
   Ld_FFFD0 = NormalizeDouble((Ask - Gd_00020), _Digits);
   Ld_FFFC8 = NormalizeDouble(((TP * Id_00078) + Ask), _Digits);
   Gd_00020 = 0;
   Gd_00021 = MarketInfo(_Symbol, MODE_MINLOT);
   Gd_00022 = MarketInfo(_Symbol, MODE_MAXLOT);
   if (risk != 0) {
   Gd_00020 = NormalizeDouble((((AccountBalance() * risk) / 100) / 10000), 2);
   if ((Gd_00020 < Gd_00021)) { 
   Gd_00020 = Gd_00021;
   } 
   if ((Gd_00020 > Gd_00022)) {
   Gd_00020 = Gd_00022;
   }}
   else{
   Gd_00020 = LOTS;
   }
   if ((AccountFreeMarginCheck(_Symbol, 0, Gd_00020) > 0)) { 
   Gd_00028 = 0;
   Gd_00029 = MarketInfo(_Symbol, MODE_MINLOT);
   Gd_0002A = MarketInfo(_Symbol, MODE_MAXLOT);
   if (risk != 0) {
   Gd_00028 = NormalizeDouble((((AccountBalance() * risk) / 100) / 10000), 2);
   if ((Gd_00028 < Gd_00029)) { 
   Gd_00028 = Gd_00029;
   } 
   if ((Gd_00028 > Gd_0002A)) {
   Gd_00028 = Gd_0002A;
   }}
   else{
   Gd_00028 = LOTS;
   }
   Ii_00080 = OrderSend(_Symbol, 0, Gd_00028, Ask, Ii_0000C, Ld_FFFD0, Ld_FFFC8, "", MagicID, 0, 32768);
   func_1030();
   }} 
   if ((Id_00018[Li_FFFFC, 1] >= Open[0])) return; 
   if (!func_1044()) return; 
   Ld_FFFC0 = NormalizeDouble(((SL * Id_00078) + Bid), _Digits);
   Gd_0002D = (TP * Id_00078);
   Ld_FFFB8 = NormalizeDouble((Bid - Gd_0002D), _Digits);
   Gd_0002D = 0;
   Gd_0002E = MarketInfo(_Symbol, MODE_MINLOT);
   Gd_0002F = MarketInfo(_Symbol, MODE_MAXLOT);
   if (risk != 0) {
   Gd_0002D = NormalizeDouble((((AccountBalance() * risk) / 100) / 10000), 2);
   if ((Gd_0002D < Gd_0002E)) { 
   Gd_0002D = Gd_0002E;
   } 
   if ((Gd_0002D > Gd_0002F)) {
   Gd_0002D = Gd_0002F;
   }}
   else{
   Gd_0002D = LOTS;
   }
   if ((AccountFreeMarginCheck(_Symbol, 1, Gd_0002D) <= 0)) return; 
   Gd_00035 = 0;
   Gd_00036 = MarketInfo(_Symbol, MODE_MINLOT);
   Gd_00037 = MarketInfo(_Symbol, MODE_MAXLOT);
   if (risk != 0) {
   Gd_00035 = NormalizeDouble((((AccountBalance() * risk) / 100) / 10000), 2);
   if ((Gd_00035 < Gd_00036)) { 
   Gd_00035 = Gd_00036;
   } 
   if ((Gd_00035 > Gd_00037)) {
   Gd_00035 = Gd_00037;
   }}
   else{
   Gd_00035 = LOTS;
   }
   Ii_00080 = OrderSend(_Symbol, 1, Gd_00035, Bid, Ii_0000C, Ld_FFFC0, Ld_FFFB8, "", MagicID, 0, 32768);
   func_1029();
   
}

void OnDeinit(const int reason)
{
   ObjectsDeleteAll(-1, -1);
   ChartRedraw(0);
}
/*
void func_1020(string Fa_s_00)
{
   string tmp_str00000;
   int Li_FFFFC;
   string Ls_FFFF0;
   int Li_FFFEC;
   int Li_FFFE8;
   int Li_FFFE4 = 0;
   int Li_FFF78;
   int Li_FFF3C;
   double Ld_FFF30;

   Li_FFFFC = 0;
   Li_FFFEC = 0;
   Li_FFFE8 = 0;
   char Lc_FFF7C[];
   Li_FFF78 = 0;
   int Li_FFF74[1];
   Li_FFF3C = 0;
   Ld_FFF30 = 0;
   Ls_FFFF0 = "";
   tmp_str00000 = Fa_s_00;
   Gi_00000 = CreateFileW(tmp_str00000, -2147483648, 3, 0, 3, 0, 0);
   Li_FFFEC = Gi_00000;
   if (Gi_00000 == -1) { 
   Comment("");
   ArrayFree(Li_FFF74);
   ArrayFree(Lc_FFF7C);
   return;
   } 
   Li_FFFE8 = GetFileSize(Li_FFFEC, 0);
   if (Li_FFFE8 <= 0) { 
   ArrayFree(Li_FFF74);
   ArrayFree(Lc_FFF7C);
   return ;
   } 
   Gi_00000 = Li_FFFE8 - 148;
   Gi_00000 = Gi_00000 / 60;
   if (Gi_00000 == Ii_0004C) { 
   ArrayFree(Li_FFF74);
   ArrayFree(Lc_FFF7C);
   return ;
   } 
   SetFilePointer(Li_FFFEC, 148, Li_FFFE4, 0);
   Gi_00000 = Li_FFFE8 - 148;
   Ii_0004C = Gi_00000 / 60;
   ArrayResize(Id_00018, Ii_0004C, 0);
   Li_FFF78 = 60;
   ArrayResize(Lc_FFF7C, 60, 0);
   Li_FFF3C = 0;
   if (Ii_0004C > 0) { 
   do { 
   ReadFile(Li_FFFEC, Lc_FFF7C, Li_FFF78, Li_FFF74, 0);
   if (Li_FFF74[0] == Li_FFF78) { 
   Gc_00002 = Lc_FFF7C[0];
   Gc_00004 = Lc_FFF7C[1];
   Gc_00006 = Lc_FFF7C[2];
   Gc_00008 = Lc_FFF7C[3];
   Gc_0000A = Lc_FFF7C[4];
   Gc_0000C = Lc_FFF7C[5];
   Gc_0000E = Lc_FFF7C[6];
   Gc_00010 = Lc_FFF7C[7];
   Is_00060 = StringFormat("0x%02x%02x%02x%02x%02x%02x%02x%02x", Gc_00010, Gc_0000E, Gc_0000C, Gc_0000A, Gc_00008, Gc_00006, Gc_00004, Gc_00002);
   Input_Price_00000070.m_0[0] = Lc_FFF7C[32];
   Input_Price_00000070.m_0[1] = Lc_FFF7C[33];
   Input_Price_00000070.m_0[2] = Lc_FFF7C[34];
   Input_Price_00000070.m_0[3] = Lc_FFF7C[35];
   Input_Price_00000070.m_0[4] = Lc_FFF7C[36];
   Input_Price_00000070.m_0[5] = Lc_FFF7C[37];
   Input_Price_00000070.m_0[6] = Lc_FFF7C[38];
   Input_Price_00000070.m_0[7] = Lc_FFF7C[39];
   Ld_FFF30 = Input_Price_00000070.m_52;
   Id_00018[Li_FFFFC, 0] = StringToDouble(Is_00060);
   Id_00018[Li_FFFFC, 1] = Ld_FFF30;
   Li_FFFFC = Li_FFFFC + 1;
   tmp_str00000 = TimeToString(StringToTime(Is_00060), 3);
   tmp_str00000 = tmp_str00000 + " ";
   tmp_str00000 = tmp_str00000 + DoubleToString(Ld_FFF30, 8);
   Ls_FFFF0 = tmp_str00000;
   } 
   else { 
   CloseHandle(Li_FFFEC);
   ArrayFree(Li_FFF74);
   ArrayFree(Lc_FFF7C);
   return ;
   } 
   Li_FFF3C = Li_FFF3C + 1;
   } while (Li_FFF3C < Ii_0004C); 
   } 
   CloseHandle(Li_FFFEC);
   Gi_0001A = Li_FFFFC - 1;
   tmp_str00000 = DoubleToString(Id_00018[Gi_0001A, 0], 3);
   tmp_str00000 = tmp_str00000 + " ";
   Gi_0001D = Gi_0001A;
   tmp_str00000 = tmp_str00000 + DoubleToString(Id_00018[Gi_0001A, 1], 8);
   tmp_str00000 = tmp_str00000 + " ";
   Gi_0001E = Li_FFFFC - 2;
   tmp_str00000 = tmp_str00000 + DoubleToString(Id_00018[Gi_0001E, 1], 3);
   tmp_str00000 = tmp_str00000 + " ";
   Gi_00021 = Gi_0001E;
   tmp_str00000 = tmp_str00000 + DoubleToString(Id_00018[Gi_0001E, 1], 8);
   Ls_FFFF0 = tmp_str00000;
   Is_00060 = tmp_str00000;
   ArrayFree(Li_FFF74);
   ArrayFree(Lc_FFF7C);
   
}
*/
void func_1029()
{
   bool Lb_FFFFF;
   int Li_FFFF8;

   Lb_FFFFF = false;
   Gi_00000 = 0;
   Gi_00001 = OrdersTotal() - 1;
   Gi_00002 = Gi_00001;
   if (Gi_00001 >= 0) { 
   do { 
   order_check = OrderSelect(Gi_00002, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_BUY) { 
   Gi_00000 = Gi_00000 + 1;
   } 
   Gi_00002 = Gi_00002 - 1;
   } while (Gi_00002 >= 0); 
   } 
   if (Gi_00000 <= 0) return; 
   do { 
   Li_FFFF8 = OrdersTotal() - 1;
   if (Li_FFFF8 >= 0) { 
   do { 
   if (OrderSelect(Li_FFFF8, 0, 0) && OrderSymbol() == _Symbol && OrderMagicNumber() == MagicID && OrderType() == OP_BUY) { 
   Lb_FFFFF = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), Ii_0000C, 16776960);
   } 
   Li_FFFF8 = Li_FFFF8 - 1;
   } while (Li_FFFF8 >= 0); 
   } 
   Gi_00004 = 0;
   Gi_00005 = OrdersTotal() - 1;
   Gi_00006 = Gi_00005;
   if (Gi_00005 >= 0) { 
   do { 
   order_check = OrderSelect(Gi_00006, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_BUY) { 
   Gi_00004 = Gi_00004 + 1;
   } 
   Gi_00006 = Gi_00006 - 1;
   } while (Gi_00006 >= 0); 
   } 
   } while (Gi_00004 > 0); 
   
}

void func_1030()
{
   bool Lb_FFFFF;
   int Li_FFFF8;

   Lb_FFFFF = false;
   Gi_00000 = 0;
   Gi_00001 = OrdersTotal() - 1;
   Gi_00002 = Gi_00001;
   if (Gi_00001 >= 0) { 
   do { 
   order_check = OrderSelect(Gi_00002, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_SELL) { 
   Gi_00000 = Gi_00000 + 1;
   } 
   Gi_00002 = Gi_00002 - 1;
   } while (Gi_00002 >= 0); 
   } 
   if (Gi_00000 <= 0) return; 
   do { 
   Li_FFFF8 = OrdersTotal() - 1;
   if (Li_FFFF8 >= 0) { 
   do { 
   if (OrderSelect(Li_FFFF8, 0, 0) && OrderSymbol() == _Symbol && OrderMagicNumber() == MagicID && OrderType() == OP_SELL) { 
   Lb_FFFFF = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), Ii_0000C, 16776960);
   } 
   Li_FFFF8 = Li_FFFF8 - 1;
   } while (Li_FFFF8 >= 0); 
   } 
   Gi_00004 = 0;
   Gi_00005 = OrdersTotal() - 1;
   Gi_00006 = Gi_00005;
   if (Gi_00005 >= 0) { 
   do { 
   order_check = OrderSelect(Gi_00006, 0, 0);
   if (OrderMagicNumber() == MagicID && OrderSymbol() == _Symbol && OrderType() == OP_SELL) { 
   Gi_00004 = Gi_00004 + 1;
   } 
   Gi_00006 = Gi_00006 - 1;
   } while (Gi_00006 >= 0); 
   } 
   } while (Gi_00004 > 0); 
   
}

bool func_1043()
{
   double WPR;
   double Awesome;
   double Ld_FFFE0;
   double Ld_FFFD8;
   double Ld_FFFD0;
   double Ld_FFFC8;
   double Ld_FFFC0;
   double Ld_FFFB8;
   double Ld_FFFB0;
   double Ld_FFFA8;
   double Ld_FFFA0;
   double Ld_FFF98;
   double Ld_FFF90;
   bool Lb_FFFFF;

   WPR = 0;
   Awesome = 0;
   Ld_FFFE0 = 0;
   Ld_FFFD8 = 0;
   Ld_FFFD0 = 0;
   Ld_FFFC8 = 0;
   Ld_FFFC0 = 0;
   Ld_FFFB8 = 0;
   Ld_FFFB0 = 0;
   Ld_FFFA8 = 0;
   Ld_FFFA0 = 0;
   Ld_FFF98 = 0;
   WPR = Open[1];
   Awesome = Close[1];
   Ld_FFFE0 = High[0];
   Ld_FFFD8 = Low[1];
   Ld_FFFB8 = Open[2];
   Ld_FFFC0 = Close[2];
   Ld_FFFD0 = High[2];
   Ld_FFFC8 = Low[2];
   Ld_FFFB0 = (Ld_FFFE0 - Ld_FFFD8);
   Ld_FFFA8 = (Ld_FFFD0 - Ld_FFFC8);
   Gd_00008 = (Ld_FFFB0 * 0.4);
   Ld_FFFA0 = (Ld_FFFE0 - Gd_00008);
   Ld_FFF98 = Ld_FFFA0;
   Gd_00008 = 0;
   double Ld_FFF70[4];
   Gi_00009 = 0;
   Gi_0000A = 1;
   do { 
   if (TimeDayOfWeek(Time[Gi_0000A]) != 0) { 
   Gd_00008 = ((High[Gi_0000A] - Low[Gi_0000A]) + Gd_00008);
   Gi_00009 = Gi_00009 + 1;
   } 
   Gi_0000A = Gi_0000A + 1;
   } while (Gi_00009 < 4); 
   Gd_0000E = (Gd_00008 / 4);
   ArrayFree(Ld_FFF70);
   Ld_FFF90 = Gd_0000E;
   if ((Awesome <= Ld_FFF98)) return false; 
   if ((WPR <= Ld_FFFA0)) return false; 
   if ((Ld_FFFB0 <= (Gd_0000E * 0.5))) return false; 
   if ((((Ld_FFFB0 * 0.25) + Ld_FFFD8) >= Ld_FFFC8)) return false; 
   Gi_0000F = ArrayMinimum(Low, 3, 3);
   if ((Low[Gi_0000F] <= Low[1])) return false; 
   Lb_FFFFF = true;
   return Lb_FFFFF;
   
   Lb_FFFFF = false;
   
   return Lb_FFFFF;
}

bool func_1044()
{
   double WPR;
   double Awesome;
   double Ld_FFFE0;
   double Ld_FFFD8;
   double Ld_FFFD0;
   double Ld_FFFC8;
   double Ld_FFFC0;
   double Ld_FFFB8;
   double Ld_FFFB0;
   double Ld_FFFA8;
   double Ld_FFFA0;
   double Ld_FFF98;
   double Ld_FFF90;
   bool Lb_FFFFF;

   WPR = 0;
   Awesome = 0;
   Ld_FFFE0 = 0;
   Ld_FFFD8 = 0;
   Ld_FFFD0 = 0;
   Ld_FFFC8 = 0;
   Ld_FFFC0 = 0;
   Ld_FFFB8 = 0;
   Ld_FFFB0 = 0;
   Ld_FFFA8 = 0;
   Ld_FFFA0 = 0;
   Ld_FFF98 = 0;
   WPR = Open[1];
   Awesome = Close[1];
   Ld_FFFE0 = High[1];
   Ld_FFFD8 = Low[1];
   Ld_FFFB8 = Open[2];
   Ld_FFFC0 = Close[2];
   Ld_FFFD0 = High[2];
   Ld_FFFC8 = Low[2];
   Ld_FFFB0 = (Ld_FFFE0 - Ld_FFFD8);
   Ld_FFFA8 = (Ld_FFFD0 - Ld_FFFC8);
   Ld_FFFA0 = ((Ld_FFFB0 * 0.4) + Ld_FFFD8);
   Ld_FFF98 = Ld_FFFA0;
   Gd_00008 = 0;
   double Ld_FFF70[4];
   Gi_00009 = 0;
   Gi_0000A = 1;
   do { 
   if (TimeDayOfWeek(Time[Gi_0000A]) != 0) { 
   Gd_00008 = ((High[Gi_0000A] - Low[Gi_0000A]) + Gd_00008);
   Gi_00009 = Gi_00009 + 1;
   } 
   Gi_0000A = Gi_0000A + 1;
   } while (Gi_00009 < 4); 
   Gd_0000E = (Gd_00008 / 4);
   ArrayFree(Ld_FFF70);
   Ld_FFF90 = Gd_0000E;
   if ((Awesome >= Ld_FFF98)) return false; 
   if ((WPR >= Ld_FFFA0)) return false; 
   if ((Ld_FFFB0 <= (Gd_0000E * 0.5))) return false; 
   Gd_0000F = (Ld_FFFB0 * 0.25);
   if (((Ld_FFFE0 - Gd_0000F) <= Ld_FFFD0)) return false; 
   Gi_0000F = ArrayMaximum(High, 3, 3);
   if ((High[Gi_0000F] >= High[1])) return false; 
   Lb_FFFFF = true;
   return Lb_FFFFF;
   
   Lb_FFFFF = false;
   
   return Lb_FFFFF;
}