Jump to content

Forex Magic Machine


Recommended Posts

  • Replies 75
  • Created
  • Last Reply

Top Posters In This Topic

Re: [Req] Forex Magic Machine

 

I did find the system via google. its an exe file, however it requires a serial number. Not sure how to get one.

 

Its another unprotected site. Go to Google.. type site:http://www.theforexmagicmachine.com

 

It will give you all the pages in the domain. Go to the index page, and you should be able to download yourselves.

Link to comment
Share on other sites

Re: [Req] Forex Magic Machine

 

int g_period_76 = 5;
int g_period_80 = 3;
int g_slowing_84 = 3;
bool gi_88 = FALSE;
int g_period_92 = 14;
int gi_96 = 50;
bool gi_100 = FALSE;
int g_period_104 = 14;
bool gi_108 = FALSE;
int g_period_112 = 13;
bool gi_116 = FALSE;
int g_period_120 = 13;
bool gi_124 = FALSE;
int g_period_128 = 12;
int g_period_132 = 25;
int g_period_136 = 9;
bool gi_140 = TRUE;
int gi_144 = 10;
bool gi_148 = FALSE;
int g_period_152 = 20;
bool gi_156 = FALSE;
extern double Lots = 0.5;
double gd_168 = 80.0;
double gd_176 = 20.0;
extern bool RiskMM = TRUE;
extern double RiskPercent = 20.0;
bool gi_196 = FALSE;
double gd_200 = 2.0;
extern double MinLots = 0.3;
extern double MaxLots = 100.0;
int gi_224 = 15;
extern int StopLoss = 120;
extern int TakeProfit = 15;
bool gi_236 = FALSE;
bool gi_240 = FALSE;
int gi_244 = 15;
int gi_248 = 0;
int gi_252 = 0;
extern int MaxOrders = 100;
int g_slippage_260 = 3;
int g_magic_264 = 18091;
int g_magic_268 = 18092;
bool gi_272 = FALSE;
int gi_276 = 10080;
datetime g_time_280;
datetime g_time_284;
double gd_unused_304 = 0.0;
double gd_312 = 1.0;
double gd_320 = 1.0;

int init() {
  int li_0;
  int l_ord_total_4 = OrdersTotal();
  if (li_0 == 0 && l_ord_total_4 > 0) {
     for (int l_pos_8 = 0; l_pos_8 < l_ord_total_4; l_pos_8++) {
        if (OrderSelect(l_pos_8, SELECT_BY_POS)) {
           if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_264 || OrderMagicNumber() == g_magic_268) {
              li_0 = NormalizeDouble(OrderLots() / Lots, (MarketInfo(Symbol(), MODE_MINLOT) == 0.01) + 1);
              break;
           }
        }
     }
  }
  int l_hist_total_12 = OrdersHistoryTotal();
  if (li_0 == 0 && l_hist_total_12 > 0) {
     for (l_pos_8 = 0; l_pos_8 < l_hist_total_12; l_pos_8++) {
        if (OrderSelect(l_pos_8, SELECT_BY_POS, MODE_HISTORY)) {
           if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_264 || OrderMagicNumber() == g_magic_268) {
              li_0 = NormalizeDouble(OrderLots() / Lots, (MarketInfo(Symbol(), MODE_MINLOT) == 0.01) + 1);
              break;
           }
        }
     }
  }
  if (li_0 > 0) gd_312 = li_0;
  return (0);
}

int start() {
  double l_istochastic_8;
  double l_istochastic_16;
  double l_istochastic_24;
  double l_istochastic_32;
  double l_irsi_40;
  double l_irsi_48;
  double l_iadx_56;
  double l_iadx_64;
  double l_iadx_72;
  double l_iadx_80;
  double l_ibearspower_88;
  double l_ibullspower_96;
  double l_ibearspower_104;
  double l_ibullspower_112;
  double l_imacd_120;
  double l_imacd_128;
  double l_imacd_136;
  double l_imacd_144;
  double l_iclose_152;
  double l_iclose_160;
  double ld_168;
  double l_iclose_176;
  double l_iclose_184;
  double ld_192;
  double l_ima_200;
  double l_ima_208;
  string ls_216;
  string ls_224;
  string ls_232;
  string ls_240;
  double l_price_248;
  double l_price_256;
  double ld_304;
  double l_lots_312;
  double l_lots_320;
  int l_ticket_328;
  int l_ticket_332;
  if (gi_244 > 0) MoveTrailingStop();
  if (gi_252 > 0) MoveBreakEven();
  int li_0 = 1;
  for (int l_shift_4 = 1; l_shift_4 <= li_0; l_shift_4++) {
     l_istochastic_8 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_MAIN, l_shift_4 + 1);
     l_istochastic_16 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_SIGNAL, l_shift_4 + 1);
     l_istochastic_24 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_MAIN, l_shift_4);
     l_istochastic_32 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_SIGNAL, l_shift_4);
     l_irsi_40 = iRSI(NULL, 0, g_period_92, PRICE_CLOSE, l_shift_4 + 1);
     l_irsi_48 = iRSI(NULL, 0, g_period_92, PRICE_CLOSE, l_shift_4);
     l_iadx_56 = iADX(NULL, 0, g_period_104, PRICE_CLOSE, MODE_PLUSDI, l_shift_4 + 1);
     l_iadx_64 = iADX(NULL, 0, g_period_104, PRICE_CLOSE, MODE_MINUSDI, l_shift_4 + 1);
     l_iadx_72 = iADX(NULL, 0, g_period_104, PRICE_CLOSE, MODE_PLUSDI, l_shift_4);
     l_iadx_80 = iADX(NULL, 0, g_period_104, PRICE_CLOSE, MODE_MINUSDI, l_shift_4);
     l_ibearspower_88 = iBearsPower(NULL, 0, g_period_112, PRICE_CLOSE, l_shift_4 + 1);
     l_ibullspower_96 = iBullsPower(NULL, 0, g_period_120, PRICE_CLOSE, l_shift_4 + 1);
     l_ibearspower_104 = iBearsPower(NULL, 0, g_period_112, PRICE_CLOSE, l_shift_4);
     l_ibullspower_112 = iBullsPower(NULL, 0, g_period_120, PRICE_CLOSE, l_shift_4);
     l_imacd_120 = iMACD(NULL, 0, g_period_128, g_period_132, g_period_136, PRICE_CLOSE, MODE_MAIN, l_shift_4 + 1);
     l_imacd_128 = iMACD(NULL, 0, g_period_128, g_period_132, g_period_136, PRICE_CLOSE, MODE_SIGNAL, l_shift_4 + 1);
     l_imacd_136 = iMACD(NULL, 0, g_period_128, g_period_132, g_period_136, PRICE_CLOSE, MODE_MAIN, l_shift_4);
     l_imacd_144 = iMACD(NULL, 0, g_period_128, g_period_132, g_period_136, PRICE_CLOSE, MODE_SIGNAL, l_shift_4);
     l_iclose_152 = iClose(NULL, 0, l_shift_4 + gi_144);
     l_iclose_160 = iClose(NULL, 0, l_shift_4 + gi_144 + gi_144);
     ld_168 = l_iclose_152 - l_iclose_160;
     l_iclose_176 = iClose(NULL, 0, l_shift_4);
     l_iclose_184 = iClose(NULL, 0, l_shift_4 + gi_144);
     ld_192 = l_iclose_176 - l_iclose_184;
     l_ima_200 = iMA(Symbol(), 0, g_period_152, 0, MODE_SMA, PRICE_CLOSE, l_shift_4 + 1);
     l_ima_208 = iMA(Symbol(), 0, g_period_152, 0, MODE_SMA, PRICE_CLOSE, l_shift_4);
     ls_216 = "false";
     ls_224 = "false";
     if ((gi_88 == FALSE && l_istochastic_24 > l_istochastic_32) || (gi_88 && l_istochastic_8 < l_istochastic_16 && l_istochastic_24 > l_istochastic_32) && (gi_100 == FALSE &&
        l_irsi_48 > gi_96) || (gi_100 && l_irsi_40 < gi_96 && l_irsi_48 > gi_96) && (gi_108 == FALSE && l_iadx_72 > l_iadx_80) || (gi_108 && l_iadx_56 < l_iadx_64 && l_iadx_72 > l_iadx_80) &&
        (gi_116 == FALSE && l_ibearspower_104 > 0.0) || (gi_116 && l_ibearspower_88 < 0.0 && l_ibearspower_104 > 0.0) && (gi_124 == FALSE && l_ibullspower_112 > 0.0) || (gi_124 &&
        l_ibullspower_96 < 0.0 && l_ibullspower_112 > 0.0) && (gi_140 == FALSE && l_imacd_136 > l_imacd_144) || (gi_140 && l_imacd_120 < l_imacd_128 && l_imacd_136 > l_imacd_144) &&
        (gi_148 == FALSE && ld_192 > 0.0) || (gi_148 && ld_168 < 0.0 && ld_192 > 0.0) && (gi_156 == FALSE && Close[l_shift_4] > l_ima_208) || (gi_156 && Close[l_shift_4 +
        1] < l_ima_200 && Close[l_shift_4] > l_ima_208)) ls_216 = "true";
     if ((gi_88 == FALSE && l_istochastic_24 > l_istochastic_32) || (gi_88 && l_istochastic_8 > l_istochastic_16 && l_istochastic_24 < l_istochastic_32) && (gi_100 == FALSE &&
        l_irsi_48 < gi_96) || (gi_100 && l_irsi_40 > gi_96 && l_irsi_48 < gi_96) && (gi_108 == FALSE && l_iadx_72 < l_iadx_80) || (gi_108 && l_iadx_56 > l_iadx_64 && l_iadx_72 < l_iadx_80) &&
        (gi_116 == FALSE && l_ibearspower_104 < 0.0) || (gi_116 && l_ibearspower_88 > 0.0 && l_ibearspower_104 < 0.0) && (gi_124 == FALSE && l_ibullspower_112 < 0.0) || (gi_124 &&
        l_ibullspower_96 > 0.0 && l_ibullspower_112 < 0.0) && (gi_140 == FALSE && l_imacd_136 < l_imacd_144) || (gi_140 && l_imacd_120 > l_imacd_128 && l_imacd_136 < l_imacd_144) &&
        (gi_148 == FALSE && ld_192 < 0.0) || (gi_148 && ld_168 > 0.0 && ld_192 < 0.0) && (gi_156 == FALSE && Close[l_shift_4] < l_ima_208) || (gi_156 && Close[l_shift_4 +
        1] > l_ima_200 && Close[l_shift_4] < l_ima_208)) ls_224 = "true";
     ls_232 = "false";
     ls_240 = "false";
     if (ls_216 == "true") {
        if (gi_272) ls_240 = "true";
        else ls_232 = "true";
     }
     if (ls_224 == "true") {
        if (gi_272) ls_232 = "true";
        else ls_240 = "true";
     }
  }
  if (RiskMM) CalculateMM();
  int l_datetime_344 = 0;
  if (gi_276 > 0) l_datetime_344 = TimeCurrent() + 60 * gi_276 - 5;
  if (CountOrders(OP_BUY, g_magic_264) + CountOrders(OP_SELL, g_magic_264) + CountOrders(OP_BUY, g_magic_268) + CountOrders(OP_SELL, g_magic_268) < MaxOrders) {
     if (ls_232 == "true" && NewBarBuy()) {
        if (gi_236 == FALSE && StopLoss > 0) l_price_248 = Low[l_shift_4] - (gi_224 + StopLoss) * Point;
        else l_price_248 = 0;
        if (gi_240 == FALSE && TakeProfit > 0) l_price_256 = High[l_shift_4] + (gi_224 + TakeProfit) * Point;
        else l_price_256 = 0;
        if (gi_196) ld_304 = NormalizeDouble(Lots * MartingaleFactor(), 2);
        else ld_304 = Lots;
        if (ld_304 < MinLots) ld_304 = MinLots;
        if (ld_304 > MaxLots) ld_304 = MaxLots;
        l_lots_312 = NormalizeDouble(ld_304 * (gd_168 / 100.0), 2);
        l_lots_320 = NormalizeDouble(ld_304 * (gd_176 / 100.0), 2);
        l_ticket_328 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_312, High[l_shift_4] + gi_224 * Point, g_slippage_260, l_price_248, l_price_256, "Forex Magic Machine Standard Version", g_magic_264, l_datetime_344, Blue);
        l_ticket_332 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_320, High[l_shift_4] + gi_224 * Point, g_slippage_260, l_price_248, 0, "Forex Magic Machine Standard Version", g_magic_268, l_datetime_344, Blue);
     }
     if (ls_240 == "true" && NewBarSell()) {
        if (gi_236 == FALSE && StopLoss > 0) l_price_248 = High[l_shift_4] + (gi_224 + StopLoss) * Point;
        else l_price_248 = 0;
        if (gi_240 == FALSE && TakeProfit > 0) l_price_256 = Low[l_shift_4] - (gi_224 + TakeProfit) * Point;
        else l_price_256 = 0;
        if (gi_196) ld_304 = NormalizeDouble(Lots * MartingaleFactor(), 2);
        else ld_304 = Lots;
        if (ld_304 < MinLots) ld_304 = MinLots;
        if (ld_304 > MaxLots) ld_304 = MaxLots;
        l_lots_312 = NormalizeDouble(ld_304 * (gd_168 / 100.0), 2);
        l_lots_320 = NormalizeDouble(ld_304 * (gd_176 / 100.0), 2);
        l_ticket_328 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_312, Low[l_shift_4] - gi_224 * Point, g_slippage_260, l_price_248, l_price_256, "Forex Magic Machine Standard Version", g_magic_264, l_datetime_344, Red);
        l_ticket_332 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_320, Low[l_shift_4] - gi_224 * Point, g_slippage_260, l_price_248, 0, "Forex Magic Machine Standard Version", g_magic_268, l_datetime_344, Red);
     }
  }
  int li_unused_348 = 0;
  if (l_ticket_328 < 0 && l_ticket_332 < 0) {
     if (GetLastError() == 134/* NOT_ENOUGH_MONEY */) {
        li_unused_348 = 1;
        Print("Not enough money!");
     }
     return (-1);
  }
  return (0);
}

int CountOrders(int a_cmd_0, int a_magic_4) {
  int l_count_8 = 0;
  for (int l_pos_12 = 0; l_pos_12 < OrdersTotal(); l_pos_12++) {
     OrderSelect(l_pos_12, SELECT_BY_POS, MODE_TRADES);
     if (OrderSymbol() == Symbol())
        if (OrderType() == a_cmd_0 && OrderMagicNumber() == a_magic_4 || a_magic_4 == 0) l_count_8++;
  }
  return (l_count_8);
}

void MoveTrailingStop() {
  int l_ord_total_4 = OrdersTotal();
  for (int l_pos_0 = 0; l_pos_0 < l_ord_total_4; l_pos_0++) {
     OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
     if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_268) {
        if (OrderType() == OP_BUY && NormalizeDouble(Ask - OrderOpenPrice(), Digits) > gi_244 * Point) {
           if (gi_244 > 0 && Ask > NormalizeDouble(OrderOpenPrice(), Digits)) {
              if (NormalizeDouble(OrderStopLoss(), Digits) < NormalizeDouble(Bid - Point * (gi_244 + gi_248), Digits) || OrderStopLoss() == 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Bid - Point * gi_244, Digits), OrderTakeProfit(), 0, Blue);
                 return;
              }
           }
        }
        if (OrderType() == OP_SELL && NormalizeDouble(OrderOpenPrice() - Bid, Digits) > gi_244 * Point) {
           if (gi_244 > 0 && Bid < NormalizeDouble(OrderOpenPrice(), Digits)) {
              if (NormalizeDouble(OrderStopLoss(), Digits) > NormalizeDouble(Ask + Point * (gi_244 + gi_248), Digits) || OrderStopLoss() == 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Ask + Point * gi_244, Digits), OrderTakeProfit(), 0, Red);
                 return;
              }
           }
        }
     }
  }
}

void MoveBreakEven() {
  int l_ord_total_4 = OrdersTotal();
  for (int l_pos_0 = 0; l_pos_0 < l_ord_total_4; l_pos_0++) {
     OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
     if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_268) {
        if (OrderType() == OP_BUY) {
           if (gi_252 <= 0) continue;
           if (NormalizeDouble(Bid - OrderOpenPrice(), Digits) <= gi_252 * Point) continue;
           if (NormalizeDouble(OrderStopLoss() - OrderOpenPrice(), Digits) >= 0.0) continue;
           OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(OrderOpenPrice() + 0.0 * Point, Digits), OrderTakeProfit(), 0, Blue);
           return;
        }
        if (gi_252 > 0) {
           if (NormalizeDouble(OrderOpenPrice() - Ask, Digits) > gi_252 * Point) {
              if (NormalizeDouble(OrderOpenPrice() - OrderStopLoss(), Digits) < 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(OrderOpenPrice() - 0.0 * Point, Digits), OrderTakeProfit(), 0, Red);
                 return;
              }
           }
        }
     }
  }
}

int NewBarBuy() {
  if (g_time_280 < Time[0]) {
     g_time_280 = Time[0];
     return (1);
  }
  return (0);
}

int NewBarSell() {
  if (g_time_284 < Time[0]) {
     g_time_284 = Time[0];
     return (1);
  }
  return (0);
}

void CalculateMM() {
  double l_minlot_0 = MarketInfo(Symbol(), MODE_MINLOT);
  double l_maxlot_8 = MarketInfo(Symbol(), MODE_MAXLOT);
  Lots = AccountFreeMargin() / 100000.0 * RiskPercent;
  Lots = MathMin(l_maxlot_8, MathMax(l_minlot_0, Lots));
  if (l_minlot_0 < 0.1) Lots = NormalizeDouble(Lots, 2);
  else {
     if (l_minlot_0 < 1.0) Lots = NormalizeDouble(Lots, 1);
     else Lots = NormalizeDouble(Lots, 0);
  }
  if (Lots < l_minlot_0) Lots = l_minlot_0;
  if (Lots > l_maxlot_8) Lots = l_maxlot_8;
}

int MartingaleFactor() {
  int l_hist_total_0 = OrdersHistoryTotal();
  if (l_hist_total_0 > 0) {
     for (int l_pos_4 = l_hist_total_0 - 1; l_pos_4 >= 0; l_pos_4--) {
        if (OrderSelect(l_pos_4, SELECT_BY_POS, MODE_HISTORY)) {
           if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_264 || OrderMagicNumber() == g_magic_268) {
              if (OrderProfit() < 0.0) {
                 gd_312 *= gd_200;
                 return (gd_312);
              }
              gd_312 = gd_320;
              if (gd_312 <= 0.0) gd_312 = 1;
              return (gd_312);
           }
        }
     }
  }
  return (gd_312);
}

there . Find me range bar ... will ya... :shand:

[spoiler=stttttt... hey You .. YES you ... let tell me you A SECRET ... click here ... yeah ... click on this button ] II Vocabulary that you should know:

PLON=it mean someting that really bad ... REEEELY BAD like a BLOOD sucker stuff ...

CEMPLON= the PRODUCER OF SOMETHING THAT CLAIM GOOD but IT IS NOT ... and WASTED all YOUR MONEY!

---- make sure Oxford or Cambridge knows it ...--- K =D>

 

Link to comment
Share on other sites

Re: [Req] Forex Magic Machine

 

hmm ... the paltinum version eh ....


int g_period_76 = 5;
int g_period_80 = 3;
int g_slowing_84 = 3;
int g_period_88 = 2;
int g_period_92 = 12;
double gd_96 = 0.003;
double gd_104 = 0.018;
int g_period_112 = 19;
int g_period_116 = 50;
bool gi_120 = FALSE;
extern double Lots = 0.1;
double gd_132 = 80.0;
double gd_140 = 20.0;
extern bool RiskMM = TRUE;
extern double RiskPercent = 2.0;
extern double MinLots = 0.01;
extern double MaxLots = 100.0;
int gi_176 = 23;
extern int StopLoss = 70;
extern int TakeProfit = 30;
int g_timeframe_188 = PERIOD_M1;
int g_period_192 = 14;
double gd_196 = 7.0;
extern int MaxOrders = 100;
int g_slippage_208 = 3;
int g_magic_212 = 19091;
int g_magic_216 = 19092;
bool gi_220 = FALSE;
int gi_224 = 20160;
datetime g_time_228;
datetime g_time_232;
double gd_unused_252 = 0.0;
double gd_unused_260 = 1.0;
double gd_unused_268 = 1.0;

int init() {
  return (0);
}

int start() {
  double l_istochastic_8;
  double l_istochastic_16;
  double l_istochastic_24;
  double l_istochastic_32;
  double l_irsi_40;
  double l_irsi_48;
  double l_ibearspower_56;
  double l_ibearspower_64;
  double l_isar_72;
  double l_isar_80;
  string ls_88;
  string ls_96;
  string ls_104;
  string ls_112;
  double l_price_120;
  double l_price_128;
  double ld_176;
  double l_lots_184;
  double l_lots_192;
  int l_ticket_200;
  int l_ticket_204;
  if (g_period_192 > 0) MoveTrailingStop();
  int li_0 = 1;
  for (int l_shift_4 = 1; l_shift_4 <= li_0; l_shift_4++) {
     l_istochastic_8 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_MAIN, l_shift_4 + 1);
     l_istochastic_16 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_SIGNAL, l_shift_4 + 1);
     l_istochastic_24 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_MAIN, l_shift_4);
     l_istochastic_32 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_SIGNAL, l_shift_4);
     l_irsi_40 = iRSI(NULL, 0, g_period_88, PRICE_CLOSE, l_shift_4 + 1);
     l_irsi_48 = iRSI(NULL, 0, g_period_88, PRICE_CLOSE, l_shift_4);
     l_ibearspower_56 = iBearsPower(NULL, 0, g_period_92, PRICE_CLOSE, l_shift_4 + 1);
     l_ibearspower_64 = iBearsPower(NULL, 0, g_period_92, PRICE_CLOSE, l_shift_4);
     l_isar_72 = iSAR(NULL, 0, gd_96, gd_104, l_shift_4 + 1);
     l_isar_80 = iSAR(NULL, 0, gd_96, gd_104, l_shift_4);
     ls_88 = "false";
     ls_96 = "false";
     if (l_istochastic_24 > l_istochastic_32 && l_irsi_48 > 50.0 && l_ibearspower_64 > 0.0 && Open[l_shift_4] > l_isar_80 && iMA(Symbol(), 0, g_period_112, 0, MODE_SMA, PRICE_CLOSE, l_shift_4) > iMA(Symbol(), 0, g_period_116, 0, MODE_SMA, PRICE_CLOSE, l_shift_4 +
        1) && gi_120 == FALSE || (gi_120 && Close[0] > Open[0])) ls_88 = "true";
     if (l_istochastic_24 > l_istochastic_32 && l_irsi_48 < 50.0 && l_ibearspower_64 < 0.0 && Open[l_shift_4] < l_isar_80 && iMA(Symbol(), 0, g_period_112, 0, MODE_SMA, PRICE_CLOSE, l_shift_4) < iMA(Symbol(), 0, g_period_116, 0, MODE_SMA, PRICE_CLOSE, l_shift_4 +
        1) && gi_120 == FALSE || (gi_120 && Close[0] < Open[0])) ls_96 = "true";
     ls_104 = "false";
     ls_112 = "false";
     if (ls_88 == "true") {
        if (gi_220) ls_112 = "true";
        else ls_104 = "true";
     }
     if (ls_96 == "true") {
        if (gi_220) ls_104 = "true";
        else ls_112 = "true";
     }
  }
  if (RiskMM) CalculateMM();
  int l_datetime_216 = 0;
  if (gi_224 > 0) l_datetime_216 = TimeCurrent() + 60 * gi_224 - 5;
  if (CountOrders(OP_BUY, g_magic_212) + CountOrders(OP_SELL, g_magic_212) + CountOrders(OP_BUY, g_magic_216) + CountOrders(OP_SELL, g_magic_216) < MaxOrders) {
     if (ls_104 == "true" && NewBarBuy()) {
        if (StopLoss > 0) l_price_120 = Low[l_shift_4] - (gi_176 + StopLoss) * Point - NormalizeDouble(iATR(NULL, 0, 14, 1) / 10.0 / 2.0, Digits);
        else l_price_120 = 0;
        if (TakeProfit > 0) l_price_128 = High[l_shift_4] + (gi_176 + TakeProfit) * Point;
        else l_price_128 = 0;
        ld_176 = Lots;
        if (ld_176 < MinLots) ld_176 = MinLots;
        if (ld_176 > MaxLots) ld_176 = MaxLots;
        l_lots_184 = NormalizeDouble(ld_176 * (gd_132 / 100.0), 2);
        l_lots_192 = NormalizeDouble(ld_176 * (gd_140 / 100.0), 2);
        l_ticket_200 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_184, High[l_shift_4] + gi_176 * Point, g_slippage_208, l_price_120, l_price_128, "The Forex Magic Machine Advance Version", g_magic_212, l_datetime_216, Blue);
        l_ticket_204 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_192, High[l_shift_4] + gi_176 * Point, g_slippage_208, l_price_120, 0, "The Forex Magic Machine Advance Version", g_magic_216, l_datetime_216, Blue);
     }
     if (ls_112 == "true" && NewBarSell()) {
        if (StopLoss > 0) l_price_120 = High[l_shift_4] + (gi_176 + StopLoss) * Point + NormalizeDouble(iATR(NULL, 0, 14, 1) / 10.0 / 2.0, Digits);
        else l_price_120 = 0;
        if (TakeProfit > 0) l_price_128 = Low[l_shift_4] - (gi_176 + TakeProfit) * Point;
        else l_price_128 = 0;
        ld_176 = Lots;
        if (ld_176 < MinLots) ld_176 = MinLots;
        if (ld_176 > MaxLots) ld_176 = MaxLots;
        l_lots_184 = NormalizeDouble(ld_176 * (gd_132 / 100.0), 2);
        l_lots_192 = NormalizeDouble(ld_176 * (gd_140 / 100.0), 2);
        l_ticket_200 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_184, Low[l_shift_4] - gi_176 * Point, g_slippage_208, l_price_120, l_price_128, "The Forex Magic Machine Advance Version", g_magic_212, l_datetime_216, Red);
        l_ticket_204 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_192, Low[l_shift_4] - gi_176 * Point, g_slippage_208, l_price_120, 0, "The Forex Magic Machine Advance Version", g_magic_216, l_datetime_216, Red);
     }
  }
  int li_unused_220 = 0;
  if (l_ticket_200 < 0 && l_ticket_204 < 0) {
     if (GetLastError() == 134/* NOT_ENOUGH_MONEY */) {
        li_unused_220 = 1;
        Print("Not enough money!");
     }
     return (-1);
  }
  return (0);
}

int CountOrders(int a_cmd_0, int a_magic_4) {
  int l_count_8 = 0;
  for (int l_pos_12 = 0; l_pos_12 < OrdersTotal(); l_pos_12++) {
     OrderSelect(l_pos_12, SELECT_BY_POS, MODE_TRADES);
     if (OrderSymbol() == Symbol())
        if (OrderType() == a_cmd_0 && OrderMagicNumber() == a_magic_4 || a_magic_4 == 0) l_count_8++;
  }
  return (l_count_8);
}

void MoveTrailingStop() {
  int l_ord_total_4 = OrdersTotal();
  for (int l_pos_0 = 0; l_pos_0 < l_ord_total_4; l_pos_0++) {
     OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
     if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_216) {
        if (OrderType() == OP_BUY && NormalizeDouble(Ask - OrderOpenPrice(), Digits) > NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits)) {
           if (g_period_192 > 0 && Ask > NormalizeDouble(OrderOpenPrice(), Digits)) {
              if (NormalizeDouble(OrderStopLoss(), Digits) < NormalizeDouble(Bid - NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits) || OrderStopLoss() == 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Bid - NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits), OrderTakeProfit(), 0, Blue);
                 return;
              }
           }
        }
        if (OrderType() == OP_SELL && NormalizeDouble(OrderOpenPrice() - Bid, Digits) > NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits)) {
           if (g_period_192 > 0 && Bid < NormalizeDouble(OrderOpenPrice(), Digits)) {
              if (NormalizeDouble(OrderStopLoss(), Digits) > NormalizeDouble(Ask + NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits) || OrderStopLoss() == 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Ask + NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits), OrderTakeProfit(), 0, Red);
                 return;
              }
           }
        }
     }
  }
}

int NewBarBuy() {
  if (g_time_228 < Time[0]) {
     g_time_228 = Time[0];
     return (1);
  }
  return (0);
}

int NewBarSell() {
  if (g_time_232 < Time[0]) {
     g_time_232 = Time[0];
     return (1);
  }
  return (0);
}

void CalculateMM() {
  double l_minlot_0 = MarketInfo(Symbol(), MODE_MINLOT);
  double l_maxlot_8 = MarketInfo(Symbol(), MODE_MAXLOT);
  Lots = AccountFreeMargin() / 100000.0 * RiskPercent;
  Lots = MathMin(l_maxlot_8, MathMax(l_minlot_0, Lots));
  if (l_minlot_0 < 0.1) Lots = NormalizeDouble(Lots, 2);
  else {
     if (l_minlot_0 < 1.0) Lots = NormalizeDouble(Lots, 1);
     else Lots = NormalizeDouble(Lots, 0);
  }
  if (Lots < l_minlot_0) Lots = l_minlot_0;
  if (Lots > l_maxlot_8) Lots = l_maxlot_8;
}

 

somehow when it gets more advance ... it gets smaller ... LOL :mrgreen: :mrgreen:

[spoiler=stttttt... hey You .. YES you ... let tell me you A SECRET ... click here ... yeah ... click on this button ] II Vocabulary that you should know:

PLON=it mean someting that really bad ... REEEELY BAD like a BLOOD sucker stuff ...

CEMPLON= the PRODUCER OF SOMETHING THAT CLAIM GOOD but IT IS NOT ... and WASTED all YOUR MONEY!

---- make sure Oxford or Cambridge knows it ...--- K =D>

 

Link to comment
Share on other sites

Re: [Req] Forex Magic Machine

 

the gold version ...


int g_period_76 = 5;
int g_period_80 = 3;
int g_slowing_84 = 3;
int g_period_88 = 2;
int g_period_92 = 12;
double gd_96 = 0.003;
double gd_104 = 0.018;
int g_period_112 = 19;
int g_period_116 = 50;
bool gi_120 = FALSE;
extern double Lots = 0.1;
double gd_132 = 80.0;
double gd_140 = 20.0;
extern bool RiskMM = TRUE;
extern double RiskPercent = 2.0;
extern double MinLots = 0.01;
extern double MaxLots = 100.0;
int gi_176 = 23;
extern int StopLoss = 70;
extern int TakeProfit = 30;
int g_timeframe_188 = PERIOD_M1;
int g_period_192 = 14;
double gd_196 = 7.0;
extern int MaxOrders = 100;
int g_slippage_208 = 3;
int g_magic_212 = 19091;
int g_magic_216 = 19092;
bool gi_220 = FALSE;
int gi_224 = 20160;
datetime g_time_228;
datetime g_time_232;
double gd_unused_252 = 0.0;
double gd_unused_260 = 1.0;
double gd_unused_268 = 1.0;

int init() {
  return (0);
}

int start() {
  double l_istochastic_8;
  double l_istochastic_16;
  double l_istochastic_24;
  double l_istochastic_32;
  double l_irsi_40;
  double l_irsi_48;
  double l_ibearspower_56;
  double l_ibearspower_64;
  double l_isar_72;
  double l_isar_80;
  string ls_88;
  string ls_96;
  string ls_104;
  string ls_112;
  double l_price_120;
  double l_price_128;
  double ld_176;
  double l_lots_184;
  double l_lots_192;
  int l_ticket_200;
  int l_ticket_204;
  if (g_period_192 > 0) MoveTrailingStop();
  int li_0 = 1;
  for (int l_shift_4 = 1; l_shift_4 <= li_0; l_shift_4++) {
     l_istochastic_8 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_MAIN, l_shift_4 + 1);
     l_istochastic_16 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_SIGNAL, l_shift_4 + 1);
     l_istochastic_24 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_MAIN, l_shift_4);
     l_istochastic_32 = iStochastic(NULL, 0, g_period_76, g_period_80, g_slowing_84, MODE_SMA, 0, MODE_SIGNAL, l_shift_4);
     l_irsi_40 = iRSI(NULL, 0, g_period_88, PRICE_CLOSE, l_shift_4 + 1);
     l_irsi_48 = iRSI(NULL, 0, g_period_88, PRICE_CLOSE, l_shift_4);
     l_ibearspower_56 = iBearsPower(NULL, 0, g_period_92, PRICE_CLOSE, l_shift_4 + 1);
     l_ibearspower_64 = iBearsPower(NULL, 0, g_period_92, PRICE_CLOSE, l_shift_4);
     l_isar_72 = iSAR(NULL, 0, gd_96, gd_104, l_shift_4 + 1);
     l_isar_80 = iSAR(NULL, 0, gd_96, gd_104, l_shift_4);
     ls_88 = "false";
     ls_96 = "false";
     if (l_istochastic_24 > l_istochastic_32 && l_irsi_48 > 50.0 && l_ibearspower_64 > 0.0 && Open[l_shift_4] > l_isar_80 && iMA(Symbol(), 0, g_period_112, 0, MODE_SMA, PRICE_CLOSE, l_shift_4) > iMA(Symbol(), 0, g_period_116, 0, MODE_SMA, PRICE_CLOSE, l_shift_4 +
        1) && gi_120 == FALSE || (gi_120 && Close[0] > Open[0])) ls_88 = "true";
     if (l_istochastic_24 > l_istochastic_32 && l_irsi_48 < 50.0 && l_ibearspower_64 < 0.0 && Open[l_shift_4] < l_isar_80 && iMA(Symbol(), 0, g_period_112, 0, MODE_SMA, PRICE_CLOSE, l_shift_4) < iMA(Symbol(), 0, g_period_116, 0, MODE_SMA, PRICE_CLOSE, l_shift_4 +
        1) && gi_120 == FALSE || (gi_120 && Close[0] < Open[0])) ls_96 = "true";
     ls_104 = "false";
     ls_112 = "false";
     if (ls_88 == "true") {
        if (gi_220) ls_112 = "true";
        else ls_104 = "true";
     }
     if (ls_96 == "true") {
        if (gi_220) ls_104 = "true";
        else ls_112 = "true";
     }
  }
  if (RiskMM) CalculateMM();
  int l_datetime_216 = 0;
  if (gi_224 > 0) l_datetime_216 = TimeCurrent() + 60 * gi_224 - 5;
  if (CountOrders(OP_BUY, g_magic_212) + CountOrders(OP_SELL, g_magic_212) + CountOrders(OP_BUY, g_magic_216) + CountOrders(OP_SELL, g_magic_216) < MaxOrders) {
     if (ls_104 == "true" && NewBarBuy()) {
        if (StopLoss > 0) l_price_120 = Low[l_shift_4] - (gi_176 + StopLoss) * Point - NormalizeDouble(iATR(NULL, 0, 14, 1) / 10.0 / 2.0, Digits);
        else l_price_120 = 0;
        if (TakeProfit > 0) l_price_128 = High[l_shift_4] + (gi_176 + TakeProfit) * Point;
        else l_price_128 = 0;
        ld_176 = Lots;
        if (ld_176 < MinLots) ld_176 = MinLots;
        if (ld_176 > MaxLots) ld_176 = MaxLots;
        l_lots_184 = NormalizeDouble(ld_176 * (gd_132 / 100.0), 2);
        l_lots_192 = NormalizeDouble(ld_176 * (gd_140 / 100.0), 2);
        l_ticket_200 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_184, High[l_shift_4] + gi_176 * Point, g_slippage_208, l_price_120, l_price_128, "The Forex Magic Machine Advance Version", g_magic_212, l_datetime_216, Blue);
        l_ticket_204 = OrderSend(Symbol(), OP_BUYSTOP, l_lots_192, High[l_shift_4] + gi_176 * Point, g_slippage_208, l_price_120, 0, "The Forex Magic Machine Advance Version", g_magic_216, l_datetime_216, Blue);
     }
     if (ls_112 == "true" && NewBarSell()) {
        if (StopLoss > 0) l_price_120 = High[l_shift_4] + (gi_176 + StopLoss) * Point + NormalizeDouble(iATR(NULL, 0, 14, 1) / 10.0 / 2.0, Digits);
        else l_price_120 = 0;
        if (TakeProfit > 0) l_price_128 = Low[l_shift_4] - (gi_176 + TakeProfit) * Point;
        else l_price_128 = 0;
        ld_176 = Lots;
        if (ld_176 < MinLots) ld_176 = MinLots;
        if (ld_176 > MaxLots) ld_176 = MaxLots;
        l_lots_184 = NormalizeDouble(ld_176 * (gd_132 / 100.0), 2);
        l_lots_192 = NormalizeDouble(ld_176 * (gd_140 / 100.0), 2);
        l_ticket_200 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_184, Low[l_shift_4] - gi_176 * Point, g_slippage_208, l_price_120, l_price_128, "The Forex Magic Machine Advance Version", g_magic_212, l_datetime_216, Red);
        l_ticket_204 = OrderSend(Symbol(), OP_SELLSTOP, l_lots_192, Low[l_shift_4] - gi_176 * Point, g_slippage_208, l_price_120, 0, "The Forex Magic Machine Advance Version", g_magic_216, l_datetime_216, Red);
     }
  }
  int li_unused_220 = 0;
  if (l_ticket_200 < 0 && l_ticket_204 < 0) {
     if (GetLastError() == 134/* NOT_ENOUGH_MONEY */) {
        li_unused_220 = 1;
        Print("Not enough money!");
     }
     return (-1);
  }
  return (0);
}

int CountOrders(int a_cmd_0, int a_magic_4) {
  int l_count_8 = 0;
  for (int l_pos_12 = 0; l_pos_12 < OrdersTotal(); l_pos_12++) {
     OrderSelect(l_pos_12, SELECT_BY_POS, MODE_TRADES);
     if (OrderSymbol() == Symbol())
        if (OrderType() == a_cmd_0 && OrderMagicNumber() == a_magic_4 || a_magic_4 == 0) l_count_8++;
  }
  return (l_count_8);
}

void MoveTrailingStop() {
  int l_ord_total_4 = OrdersTotal();
  for (int l_pos_0 = 0; l_pos_0 < l_ord_total_4; l_pos_0++) {
     OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);
     if (OrderType() <= OP_SELL && OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_216) {
        if (OrderType() == OP_BUY && NormalizeDouble(Ask - OrderOpenPrice(), Digits) > NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits)) {
           if (g_period_192 > 0 && Ask > NormalizeDouble(OrderOpenPrice(), Digits)) {
              if (NormalizeDouble(OrderStopLoss(), Digits) < NormalizeDouble(Bid - NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits) || OrderStopLoss() == 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Bid - NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits), OrderTakeProfit(), 0, Blue);
                 return;
              }
           }
        }
        if (OrderType() == OP_SELL && NormalizeDouble(OrderOpenPrice() - Bid, Digits) > NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits)) {
           if (g_period_192 > 0 && Bid < NormalizeDouble(OrderOpenPrice(), Digits)) {
              if (NormalizeDouble(OrderStopLoss(), Digits) > NormalizeDouble(Ask + NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits) || OrderStopLoss() == 0.0) {
                 OrderModify(OrderTicket(), OrderOpenPrice(), NormalizeDouble(Ask + NormalizeDouble(iATR(NULL, g_timeframe_188, g_period_192, 1) * gd_196, Digits), Digits), OrderTakeProfit(), 0, Red);
                 return;
              }
           }
        }
     }
  }
}

int NewBarBuy() {
  if (g_time_228 < Time[0]) {
     g_time_228 = Time[0];
     return (1);
  }
  return (0);
}

int NewBarSell() {
  if (g_time_232 < Time[0]) {
     g_time_232 = Time[0];
     return (1);
  }
  return (0);
}

void CalculateMM() {
  double l_minlot_0 = MarketInfo(Symbol(), MODE_MINLOT);
  double l_maxlot_8 = MarketInfo(Symbol(), MODE_MAXLOT);
  Lots = AccountFreeMargin() / 100000.0 * RiskPercent;
  Lots = MathMin(l_maxlot_8, MathMax(l_minlot_0, Lots));
  if (l_minlot_0 < 0.1) Lots = NormalizeDouble(Lots, 2);
  else {
     if (l_minlot_0 < 1.0) Lots = NormalizeDouble(Lots, 1);
     else Lots = NormalizeDouble(Lots, 0);
  }
  if (Lots < l_minlot_0) Lots = l_minlot_0;
  if (Lots > l_maxlot_8) Lots = l_maxlot_8;
}

 

maybe their CREDIT LIMIT .... :mrgreen: :mrgreen: :mrgreen: :mrgreen:

[spoiler=stttttt... hey You .. YES you ... let tell me you A SECRET ... click here ... yeah ... click on this button ] II Vocabulary that you should know:

PLON=it mean someting that really bad ... REEEELY BAD like a BLOOD sucker stuff ...

CEMPLON= the PRODUCER OF SOMETHING THAT CLAIM GOOD but IT IS NOT ... and WASTED all YOUR MONEY!

---- make sure Oxford or Cambridge knows it ...--- K =D>

 

Link to comment
Share on other sites

Re: [Req] Forex Magic Machine

 

what is better platinum or gold?

 

Platinum... it seems...http://theforexmagicmachine.com/plan.html

 

"Retail Price $1,997 SALE Only $197"

 

:mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:

 

I'm a bit suspicious bout this CEMPLON ... it hadn't been sell yet .. what a CEMPLON ... :mrgreen: :mrgreen:

[spoiler=stttttt... hey You .. YES you ... let tell me you A SECRET ... click here ... yeah ... click on this button ] II Vocabulary that you should know:

PLON=it mean someting that really bad ... REEEELY BAD like a BLOOD sucker stuff ...

CEMPLON= the PRODUCER OF SOMETHING THAT CLAIM GOOD but IT IS NOT ... and WASTED all YOUR MONEY!

---- make sure Oxford or Cambridge knows it ...--- K =D>

 

Link to comment
Share on other sites

Re: Forex Magic Machine

 

I'm a bit suspicious bout this CEMPLON ... it hadn't been sell yet .. what a CEMPLON ... :mrgreen: :mrgreen:

 

wakakakak susah wak kardel kalau cemplon udah banyak, ea ini di jual berapa $..197 ?

aslinya namanya kalau nggak salah nih vforce like EA ini.

kalau nggak salah sampai versi 2 mungkin itu yang platinium.

Iam getting a lot OrderSend 130 error in back tests, and it seems it doesnt work for 5-digit broker. Did any1 did some back test? Post results here... :peace:

ini mungkin akibat pending order (100 buah) kebanyakan dan expired juga lama sekali.

expiration=20160 jadi kira kira hampir 2 minggu baru delete pending order.

 

google translte

This may be due to pending orders (100 units) and most of the old one expired.

expiration = 20160 so think about almost 2 weeks new delete pending orders.

Link to comment
Share on other sites

Guest dave_rimmer

Re: Forex Magic Machine

 

Anyone post pdf Manual Please as all links are dead.

thanks

 

all u need is just compile those code. somehow we do need mirror for the bonus and goodies inside ...:d

 

can anyone help?

 

K'

Link to comment
Share on other sites

Guest james_phuc28

Re: Forex Magic Machine/ Can not do backtest because of errors

 

Hi,

 

I tried to do backtesting of Magic machine robot, but it has error "Ordersend 131" all the times.

 

Could anybody try to double-check and correct the errors of this EA?

 

Thanks and regards,

James

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...