有您的持续关注
我们会做得更好

智能交易系统 Auto Cash Generator V16.0



Auto Cash Generator EA网络上存在很多版本,Auto Cash Generator V16.0 属于加码类型。适合迷你账号轻仓。

本网收集整理智能交易EA仅为MQL4编程爱好者提供语法及相关编程技巧的学习研究之用,智能交易存在极高的风险测试请用模拟盘,请勿用于实盘。Auto Cash Generator V16.0 EA源码:

//+------------------------------------------------------------------+
//|                                    Auto Cash Generator V16.0.mq4 |
//|                                     Copyright 2014, QQ:125808047 |
//+------------------------------------------------------------------+
#property copyright "www.pyramidrobotforex.com"
#property link      "http://www.125808047.com/"

extern string PyramidEA = ".:: PyramidEA ULTIMATE v2009i ::.";
extern string AccountTypeInfo = "0=Standart(1 Lot), 1=Normal(0.1 Lot), 2=Micro(0.01 Lot)";
extern int AccountType = 1;
extern double Lots = 0.1;
extern int MODE = 1;
extern int MAGIC = 123456;
extern double TakeProfit = 60.0;
extern double StopLoss = 1000.0;
extern int MaxTrades = 10;
extern double PipStep = 80.0;
extern int TrailStop = 20;
extern int TrailStep = 2;
int g_magic_148;
int gi_152 = 174372;
double gd_172 = 0.0;
double gd_180 = 0.0;
double gd_188 = 0.0;
double gd_196 = 0.0;
double gd_204 = 0.0;
double gd_212 = 0.0;
double gd_220 = 0.0;
double gd_228 = 0.0;
double gd_236 = 0.0;
double gd_244 = 0.0;
double gd_252 = 0.0;
int gi_unused_260 = 0;
int gi_264 = 0;
int gi_unused_268 = 0;
int g_count_272 = 0;
int g_pos_276 = 0;
int g_slippage_280 = 5;
double g_price_284 = 0.0;
double g_price_292 = 0.0;
double g_ask_300 = 0.0;
double g_bid_308 = 0.0;
double gd_316 = 0.0;
double g_lots_324 = 0.0;
double gd_unused_332 = 0.0;
int g_cmd_340 = OP_BUY;
int gi_344 = 0;
bool gi_348 = TRUE;
double g_ord_open_price_352 = 0.0;
int gi_360 = 0;
double gd_364 = 0.0;
int g_ticket_372 = 0;
int gi_376 = 0;
double g_price_380 = 0.0;
double g_ord_lots_388 = 0.0;
double gd_unused_396 = 0.0;
string gs_404 = "";
int g_count_412 = 0;
bool cg = false;

void deinit() {
   Comment("www.125808047.com");
}

int start() {
   g_magic_148 = MAGIC;
   if (AccountType == 0) {
      gd_172 = 1;
      gd_180 = 2;
      gd_188 = 5;
      gd_196 = 8;
      gd_204 = 18;
      gd_212 = 33;
      gd_220 = 69;
      gd_228 = 96;
      gd_236 = 100;
      gd_244 = 100;
      gd_252 = 100;
   }
   if (AccountType == 1) {
      gd_172 = 0.1;
      gd_180 = 0.2;
      gd_188 = 0.4;
      gd_196 = 0.8;
      gd_204 = 1.6;
      gd_212 = 3.2;
      gd_220 = 6.4;
      gd_228 = 12.8;
      gd_236 = 20.0;
      gd_244 = 10.0;
      gd_252 = 10.0;
   }
   if (AccountType == 2) {
      gd_172 = 0.01;
      gd_180 = 0.02;
      gd_188 = 0.05;
      gd_196 = 0.08;
      gd_204 = 0.18;
      gd_212 = 0.33;
      gd_220 = 0.69;
      gd_228 = 0.96;
      gd_236 = 1.0;
      gd_244 = 1.0;
      gd_252 = 1.0;
   }
   double l_ima_12 = iMA(NULL, PERIOD_H1, 12, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_20 = iMA(NULL, PERIOD_H1, 32, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_28 = iMA(NULL, PERIOD_H1, 32, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_36 = iMA(NULL, PERIOD_H1, 32, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_44 = iMA(NULL, PERIOD_H1, 8, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_52 = iMA(NULL, PERIOD_H1, 26, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_60 = iMA(NULL, PERIOD_H1, 26, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_68 = iMA(NULL, PERIOD_H1, 26, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_76 = iMA(NULL, PERIOD_H1, 9, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_84 = iMA(NULL, PERIOD_H1, 28, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_92 = iMA(NULL, PERIOD_H1, 28, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_100 = iMA(NULL, PERIOD_H1, 28, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_108 = iMA(NULL, PERIOD_H1, 10, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_116 = iMA(NULL, PERIOD_H1, 30, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_124 = iMA(NULL, PERIOD_H1, 30, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_132 = iMA(NULL, PERIOD_H1, 30, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_140 = iMA(NULL, PERIOD_H1, 14, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_148 = iMA(NULL, PERIOD_H1, 34, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_156 = iMA(NULL, PERIOD_H1, 34, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_164 = iMA(NULL, PERIOD_H1, 34, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_172 = iMA(NULL, PERIOD_H1, 16, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_180 = iMA(NULL, PERIOD_H1, 36, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_188 = iMA(NULL, PERIOD_H1, 36, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_196 = iMA(NULL, PERIOD_H1, 36, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_204 = iMA(NULL, PERIOD_H1, 18, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_212 = iMA(NULL, PERIOD_H1, 38, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_220 = iMA(NULL, PERIOD_H1, 38, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_228 = iMA(NULL, PERIOD_H1, 38, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_236 = iMA(NULL, PERIOD_H1, 20, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_244 = iMA(NULL, PERIOD_H1, 40, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_252 = iMA(NULL, PERIOD_H1, 40, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_260 = iMA(NULL, PERIOD_H1, 40, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_268 = iMA(NULL, PERIOD_H1, 22, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_276 = iMA(NULL, PERIOD_H1, 44, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_284 = iMA(NULL, PERIOD_H1, 44, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_292 = iMA(NULL, PERIOD_H1, 44, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_300 = iMA(NULL, PERIOD_H1, 26, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_308 = iMA(NULL, PERIOD_H1, 50, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_316 = iMA(NULL, PERIOD_H1, 50, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_324 = iMA(NULL, PERIOD_H1, 50, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_332 = iMA(NULL, PERIOD_H1, 30, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_340 = iMA(NULL, PERIOD_H1, 55, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_348 = iMA(NULL, PERIOD_H1, 55, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_356 = iMA(NULL, PERIOD_H1, 55, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_364 = iMA(NULL, PERIOD_H1, 33, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_372 = iMA(NULL, PERIOD_H1, 60, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_380 = iMA(NULL, PERIOD_H1, 60, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_388 = iMA(NULL, PERIOD_H1, 60, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_396 = iMA(NULL, PERIOD_H1, 36, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_404 = iMA(NULL, PERIOD_H1, 66, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_412 = iMA(NULL, PERIOD_H1, 66, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_420 = iMA(NULL, PERIOD_H1, 66, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_428 = iMA(NULL, PERIOD_H1, 40, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_436 = iMA(NULL, PERIOD_H1, 70, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_444 = iMA(NULL, PERIOD_H1, 70, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_452 = iMA(NULL, PERIOD_H1, 70, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_460 = iMA(NULL, PERIOD_H1, 50, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_468 = iMA(NULL, PERIOD_H1, 96, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_476 = iMA(NULL, PERIOD_H1, 96, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_484 = iMA(NULL, PERIOD_H1, 96, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_492 = iMA(NULL, PERIOD_H1, 55, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_500 = iMA(NULL, PERIOD_H1, 100, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_508 = iMA(NULL, PERIOD_H1, 100, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_516 = iMA(NULL, PERIOD_H1, 100, 0, MODE_SMA, PRICE_LOW, 0);
   double l_ima_524 = iMA(NULL, PERIOD_H1, 15, 0, MODE_EMA, PRICE_CLOSE, 0);
   double l_ima_532 = iMA(NULL, PERIOD_H1, 14, 0, MODE_SMA, PRICE_HIGH, 0);
   double l_ima_540 = iMA(NULL, PERIOD_H1, 14, 0, MODE_SMA, PRICE_CLOSE, 0);
   double l_ima_548 = iMA(NULL, PERIOD_H1, 14, 0, MODE_SMA, PRICE_LOW, 0);
   double l_icustom_556 = iCustom(NULL, PERIOD_M30, "PyramidIndicator1", 1, 12, 0, 0);
   double l_icustom_564 = iCustom(NULL, PERIOD_M30, "PyramidIndicator1", 1, 12, 1, 0);
   double l_icustom_572 = iCustom(NULL, PERIOD_H1, "PyramidIndicator2", 10, 0, 0);
   double l_icustom_580 = iCustom(NULL, PERIOD_H1, "PyramidIndicator2", 10, 1, 0);
   double l_icustom_588 = iCustom(NULL, PERIOD_H1, "PyramidIndicator2", 10, 2, 0);
   double ld_596 = NormalizeDouble(MarketInfo(Symbol(), MODE_MINLOT), 2);
   double ld_604 = NormalizeDouble(MarketInfo(Symbol(), MODE_MAXLOT), 2);
   double ld_612 = NormalizeDouble(MarketInfo(Symbol(), MODE_LOTSIZE), 0);
   double l_tickvalue_620 = MarketInfo(Symbol(), MODE_TICKVALUE);
   if (gd_316 < ld_596) gd_316 = ld_596;
   if (gd_316 > ld_604) gd_316 = ld_604;
   g_count_272 = 0;
   g_count_412 = 0;
   for (g_pos_276 = 0; g_pos_276 < OrdersTotal(); g_pos_276++) {
      cg = OrderSelect(g_pos_276, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_148) g_count_272++;
      if (OrderMagicNumber() == g_magic_148) g_count_412++;
   }
   if (gi_360 > g_count_272) {
      for (g_pos_276 = OrdersTotal(); g_pos_276 >= 0; g_pos_276--) {
         cg = OrderSelect(g_pos_276, SELECT_BY_POS, MODE_TRADES);
         g_cmd_340 = OrderType();
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_148) {
            if (g_cmd_340 == OP_BUY) cg = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), g_slippage_280, Blue);
            if (g_cmd_340 == OP_SELL) cg = OrderClose(OrderTicket(), OrderLots(), OrderClosePrice(), g_slippage_280, Red);
            return (0);
         }
      }
   }
   gi_360 = g_count_272;
   if (g_count_272 >= MaxTrades) gi_348 = FALSE;
   else gi_348 = TRUE;
   if (g_ord_open_price_352 == 0.0) {
      for (g_pos_276 = 0; g_pos_276 < OrdersTotal(); g_pos_276++) {
         cg = OrderSelect(g_pos_276, SELECT_BY_POS, MODE_TRADES);
         g_cmd_340 = OrderType();
         if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_148) {
            g_ord_open_price_352 = OrderOpenPrice();
            if (g_cmd_340 == OP_BUY) gi_344 = 2;
            if (g_cmd_340 == OP_SELL) gi_344 = 1;
         }
      }
   }
   if (g_count_412 < 1) {
      gi_344 = 3;
      gi_264 = FALSE;
      if (l_ima_12 < l_ima_20 && l_ima_12 < l_ima_28 && l_ima_12 < l_ima_36 && l_icustom_556 >= l_icustom_564) gi_344 = 1;
      if (l_ima_12 > l_ima_36 && l_ima_12 > l_ima_28 && l_ima_12 > l_ima_20 && l_icustom_556 <= l_icustom_564) gi_344 = 2;
   }
   for (g_pos_276 = OrdersTotal(); g_pos_276 >= 0; g_pos_276--) {
      cg = OrderSelect(g_pos_276, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_148) {
         if (OrderType() == OP_SELL) {
            if (PipStep > 0.0) {
               if (OrderOpenPrice() - Ask >= PipStep * Point + TrailStop * Point) {
                  if (OrderStopLoss() > Ask + Point * PipStep) {
                     cg = OrderModify(OrderTicket(), OrderOpenPrice(), Ask + Point * PipStep, OrderClosePrice() - TakeProfit * Point - PipStep * Point, 0, Green);
                     gi_264 = TRUE;
                     return (0);
                  }
               }
            }
         }
         if (OrderType() == OP_BUY) {
            if (PipStep > 0.0) {
               if (Bid - OrderOpenPrice() >= PipStep * Point + TrailStop * Point) {
                  if (OrderStopLoss() < Bid - Point * PipStep) {
                     cg = OrderModify(OrderTicket(), OrderOpenPrice(), Bid - Point * PipStep, OrderClosePrice() + TakeProfit * Point + PipStep * Point, 0, Green);
                     gi_264 = TRUE;
                     return (0);
                  }
               }
            }
         }
      }
   }
   gd_364 = 0;
   g_ticket_372 = 0;
   gi_376 = FALSE;
   g_price_380 = 0;
   g_ord_lots_388 = 0;
   for (g_pos_276 = 0; g_pos_276 < OrdersTotal(); g_pos_276++) {
      cg = OrderSelect(g_pos_276, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == g_magic_148) {
         g_ticket_372 = OrderTicket();
         if (OrderType() == OP_BUY) gi_376 = FALSE;
         if (OrderType() == OP_SELL) gi_376 = TRUE;
         g_price_380 = OrderClosePrice();
         g_ord_lots_388 = OrderLots();
         if (gi_376 == FALSE) {
            if (OrderClosePrice() < OrderOpenPrice()) gd_364 -= (OrderOpenPrice() - OrderClosePrice()) * OrderLots() / Point;
            if (OrderClosePrice() > OrderOpenPrice()) gd_364 += (OrderClosePrice() - OrderOpenPrice()) * OrderLots() / Point;
         }
         if (gi_376 == TRUE) {
            if (OrderClosePrice() > OrderOpenPrice()) gd_364 -= (OrderClosePrice() - OrderOpenPrice()) * OrderLots() / Point;
            if (OrderClosePrice() < OrderOpenPrice()) gd_364 += (OrderOpenPrice() - OrderClosePrice()) * OrderLots() / Point;
         }
      }
   }
   if (gi_344 == 3) gs_404 = " | Waiting strong signal...";
   else gs_404 = "";
   Comment("Account: ", AccountNumber(), " | Name: ", AccountName(), " | Laverage: 1:", AccountLeverage(), " | Total Balance: ", DoubleToStr(AccountBalance(), 2), " | Profit: $", DoubleToStr(AccountProfit(), 2), "+/- ", gs_404, 
   "\n", PyramidEA);
   if (AccountEquity() > AccountBalance()) {
      if (gi_344 == 2 && (l_ima_12 <= l_ima_20 && l_ima_12 <= l_ima_28)) {
         cg = OrderClose(g_ticket_372, g_ord_lots_388, g_price_380, g_slippage_280, Blue);
         gi_348 = FALSE;
         return (0);
      }
      if (gi_344 == 1 && (l_ima_12 >= l_ima_36 && l_ima_12 >= l_ima_28)) {
         cg = OrderClose(g_ticket_372, g_ord_lots_388, g_price_380, g_slippage_280, Red);
         gi_348 = FALSE;
         return (0);
      }
      if (gi_264 == FALSE) {
         if (gi_344 == 2 && (g_count_272 >= TrailStep && Bid - g_ord_open_price_352 >= TrailStop * Point)) {
            cg = OrderClose(g_ticket_372, g_ord_lots_388, g_price_380, g_slippage_280, Yellow);
            gi_348 = FALSE;
            return (0);
         }
         if (gi_344 == 1 && (g_count_272 >= TrailStep && g_ord_open_price_352 - Ask >= TrailStop * Point)) {
            cg = OrderClose(g_ticket_372, g_ord_lots_388, g_price_380, g_slippage_280, Yellow);
            gi_348 = FALSE;
            return (0);
         }
      }
      if (gi_264 == TRUE) {
         if (gi_344 == 2 && (l_icustom_556 >= l_icustom_564 && l_icustom_588 == l_icustom_572)) {
            cg = OrderClose(g_ticket_372, g_ord_lots_388, g_price_380, g_slippage_280, Green);
            gi_348 = FALSE;
            return (0);
         }
         if (gi_344 == 1 && (l_icustom_556 <= l_icustom_564 && l_icustom_580 == l_icustom_572)) {
            cg = OrderClose(g_ticket_372, g_ord_lots_388, g_price_380, g_slippage_280, Green);
            gi_348 = FALSE;
            return (0);
         }
      }
   }
   if (gi_344 == 1 && gi_348) {
      if (Bid - g_ord_open_price_352 >= TrailStop * Point || g_count_272 < 1) {
         g_bid_308 = Bid;
         g_ord_open_price_352 = 0;
         if (TakeProfit == 0.0) g_price_292 = 0;
         else g_price_292 = g_bid_308 - TakeProfit * Point;
         if (StopLoss == 0.0) g_price_284 = 0;
         else g_price_284 = NormalizeDouble(g_bid_308 + StopLoss * Point + (MaxTrades - g_count_272) * TrailStop * Point, Digits);
         if (g_count_272 != 0) {
            for (g_pos_276 = 1; g_pos_276 <= g_count_272; g_pos_276++) {
               if (g_count_272 == 1) g_lots_324 = NormalizeDouble(gd_180, AccountType) * MODE;
               if (g_count_272 == 2) g_lots_324 = NormalizeDouble(gd_188, AccountType) * MODE;
               if (g_count_272 == 3) g_lots_324 = NormalizeDouble(gd_196, AccountType) * MODE;
               if (g_count_272 == 4) g_lots_324 = NormalizeDouble(gd_204, AccountType) * MODE;
               if (g_count_272 == 5) g_lots_324 = NormalizeDouble(gd_212, AccountType) * MODE;
               if (g_count_272 == 6) g_lots_324 = NormalizeDouble(gd_220, AccountType) * MODE;
               if (g_count_272 == 7) g_lots_324 = NormalizeDouble(gd_228, AccountType) * MODE;
               if (g_count_272 == 8) g_lots_324 = NormalizeDouble(gd_236, AccountType) * MODE;
               if (g_count_272 == 9) g_lots_324 = NormalizeDouble(gd_244, AccountType) * MODE;
               if (g_count_272 == 10) g_lots_324 = NormalizeDouble(gd_252, AccountType) * MODE;
            }
         } else g_lots_324 = NormalizeDouble(gd_172, AccountType) * MODE;
         if (g_lots_324 >= ld_604) g_lots_324 = ld_604;
         cg = OrderSend(Symbol(), OP_SELL, g_lots_324, g_bid_308, g_slippage_280, g_price_284, g_price_292, "", g_magic_148, 0, Red);
         return (0);
      }
   }
   if (gi_344 == 2 && gi_348) {
      if (g_ord_open_price_352 - Ask >= TrailStop * Point || g_count_272 < 1) {
         g_ask_300 = Ask;
         g_ord_open_price_352 = 0;
         if (TakeProfit == 0.0) g_price_292 = 0;
         else g_price_292 = g_ask_300 + TakeProfit * Point;
         if (StopLoss == 0.0) g_price_284 = 0;
         else g_price_284 = NormalizeDouble(g_ask_300 - StopLoss * Point - (MaxTrades - g_count_272) * TrailStop * Point, Digits);
         if (g_count_272 != 0) {
            for (g_pos_276 = 1; g_pos_276 <= g_count_272; g_pos_276++) {
               if (g_count_272 == 1) g_lots_324 = NormalizeDouble(gd_180, AccountType) * MODE;
               if (g_count_272 == 2) g_lots_324 = NormalizeDouble(gd_188, AccountType) * MODE;
               if (g_count_272 == 3) g_lots_324 = NormalizeDouble(gd_196, AccountType) * MODE;
               if (g_count_272 == 4) g_lots_324 = NormalizeDouble(gd_204, AccountType) * MODE;
               if (g_count_272 == 5) g_lots_324 = NormalizeDouble(gd_212, AccountType) * MODE;
               if (g_count_272 == 6) g_lots_324 = NormalizeDouble(gd_220, AccountType) * MODE;
               if (g_count_272 == 7) g_lots_324 = NormalizeDouble(gd_228, AccountType) * MODE;
               if (g_count_272 == 8) g_lots_324 = NormalizeDouble(gd_236, AccountType) * MODE;
               if (g_count_272 == 9) g_lots_324 = NormalizeDouble(gd_244, AccountType) * MODE;
               if (g_count_272 == 10) g_lots_324 = NormalizeDouble(gd_252, AccountType) * MODE;
            }
         } else g_lots_324 = NormalizeDouble(gd_172, AccountType) * MODE;
         if (g_lots_324 >= ld_604) g_lots_324 = ld_604;
         cg = OrderSend(Symbol(), OP_BUY, g_lots_324, g_ask_300, g_slippage_280, g_price_284, g_price_292, "", g_magic_148, 0, Blue);
         return (0);
      }
   }
   return (0);
}

如您喜欢此文章请点下面分享按钮↴峰汇在线 » 智能交易系统 Auto Cash Generator V16.0
上一篇:
下一篇:
分享到:更多 ()