Codificação de sucata
Forex Vzlomshik Pro.
#propriedade de direitos autorais "Forex Vzlomshik Pro"
#property link "google"
extern bool UseManualLots = FALSE;
Dual duplo externo = 0,01;
external double Booster = 1,55;
extern double TakeProfit = 20,0;
Duplo duplo PipStarter = 50,0;
cadeia externa ________Misc_Settinngs________ = "-------------- Configurações diversas --------------";
extern bool TurboMode = VERDADEIRO;
externo duplo TurboDivider = 3.0;
extern bool ContinueTrading = VERDADEIRO;
extern bool MM = FALSE;
divisor duplo externo = 100,0;
extern bool chartDisplay = TRUE;
Cadeia externa ____Addtional_Safe_Guards_____ = "---------- Guardas de Segurança Adicionais ----------";
extern bool UseStoplossPct = FALSE;
extern double StoplossPct = 30,0;
extern bool UseTakeProfitPct = FALSE;
extern double TakeProfitPct = 1,0;
extern bool UseTrailingStop = FALSE;
Extern Double StartTrailing = 15,0;
external double StopTrailing = 5.0;
dual duplo externo = 7,0;
duplo Gd_228 = 1,0;
duplo G_lots_240 = 50,0;
Cadeia externa ___________Sistema_1____________ = "------------------ Configurações do Sistema 1 -------------------";
extern bool UseStrategy_1 = TRUE;
extern int MagicNumber_1 = 1000;
extern int MaxTrades_1 = 15;
extern bool UseDollarTakeProfit_s1 = FALSE;
Double Double DollarTakeProfit_s1 = 15.0;
int G_timeframe_284 = PERIOD_H1;
duplo G_pips_288 = 500,0;
bool Gi_296 = FALSE;
duplo Gd_300 = 72,0;
external string system1_comment = "Forex Vzlomshik Pro System 1";
int G_pos_436 = 0;
duplo Gd_444 = 0,0;
bool Gi_452 = FALSE;
bool Gi_456 = FALSE;
bool Gi_460 = FALSE;
bool Gi_468 = FALSE;
int G_datetime_488 = 1;
Cadeia externa __________Sistema_2_____________ = "------------------- Configurações do Sistema 2 -------------------";
extern bool UseStrategy_2 = TRUE;
external int MagicNumber_2 = 2000;
int externo MaxTrades_2 = 15;
extern bool UseDollarTakeProfit_s2 = FALSE;
Double Double DollarTakeProfit_s2 = 15.0;
int G_timeframe_536 = PERIOD_M1;
duplo G_pips_540 = 500,0;
bool Gi_548 = FALSE;
duplo Gd_552 = 72,0;
external string system2_comment = "Forex Vzlomshik Pro System 2";
int G_pos_688 = 0;
duplo Gd_696 = 0,0;
bool Gi_704 = FALSE;
bool Gi_708 = FALSE;
bool Gi_712 = FALSE;
bool Gi_720 = FALSE;
int G_datetime_740 = 1;
Cadeia externa __________Sistema_3___________ = "------------------- Configurações do Sistema 3 --------------------";
extern bool UseStrategy_3 = TRUE;
extern int MagicNumber_3 = 3000;
int externo MaxTrades_3 = 15;
extern bool UseDollarTakeProfit_s3 = FALSE;
external double DollarTakeProfit_s3 = 15.0;
bool Gi_788 = FALSE;
duplo Gd_792 = 72,0;
duplo G_pips_800 = 500,0;
external string system3_comment = "Forex Vzlomshik Pro System 3";
int G_pos_936 = 0;
duplo Gd_944 = 0,0;
bool Gi_952 = FALSE;
bool Gi_956 = FALSE;
bool Gi_960 = FALSE;
bool Gi_968 = FALSE;
int Gi_unused_1020 = 0;
int Gi_unused_1024 = 1;
int Gi_unused_1028 = 250;
if (Digits == 3 || Digits == 5) Gd_228 = 10;
Gd_896 = MarketInfo (Symbol (), MODE_SPREAD) * Ponto;
Gd_396 = MarketInfo (Symbol (), MODE_SPREAD) * Ponto;
Gd_648 = MarketInfo (Symbol (), MODE_SPREAD) * Ponto;
int ind_counted_104 = IndicatorCounted ();
G_lotstep_996 = MarketInfo (Symbol (), MODE_LOTSTEP);
G_minlot_1004 = MarketInfo (Símbolo (), MODE_MINLOT);
se (UseManualLots == FALSE)
se (G_lotstep_996 == 0.1 & amp; & amp; G_minlot_1004 == 0.1)
se (G_lotstep_996 == 0,01 & amp; & amp; G_minlot_1004 == 0,1)
se (G_lotstep_996 == 0.001 & amp; & amp; G_minlot_1004 == 0.01)
se (Lots & gt; G_lots_240) Lots = G_lots_240;
Ld_24 = Gd_492 + Gd_744 + Gd_988;
+ "____________Forex Vzlomshik PRO 1.14 _______________"
+ "Alavancagem Acct:" + AccountLeverage ()
+ "System 1 Open Trades:" + f0_38 () + "Lucro corrente $:" + Ls_0.
+ "System 2 Open Trades:" + f0_23 () + "Lucro corrente $:" + Ls_8.
+ "System 3 Open Trades:" + f0_28 () + "Lucro corrente $:" + Ls_16.
+ "Lucro total:" + Ld_24.
+ "Total Total de Negociações Abertas:" + OrdersTotal ()
se (Gi_224 == 1) G_timeframe_236 = 1;
se (Gi_224 == 2) G_timeframe_236 = 5;
se (Gi_224 == 3) G_timeframe_236 = 15;
se (Gi_224 == 4) G_timeframe_236 = 30;
se (Gi_224 == 5) G_timeframe_236 = 60;
se (Gi_224 == 6) G_timeframe_236 = 240;
se (Gi_224 == 7) G_timeframe_236 = 1440;
se (Gi_224 == 8) G_timeframe_236 = 10080;
se (Gi_224 == 9) G_timeframe_236 = 43200;
se (Gi_224 == 0) G_timeframe_236 = Período ();
duplo Ld_108 = Booster;
int Li_116 = Gi_212;
duplo Ld_120 = TakeProfit;
bool bool_128 = UseStoplossPct;
duplo Ld_132 = StoplossPct;
bool bool_140 = UseTakeProfitPct;
duplo Ld_144 = TakeProfitPct;
bool bool_152 = UseTrailingStop;
duplo Ld_156 = StartTrailing;
duplo Ld_164 = StopTrailing;
duplo Ld_172 = escorregamento;
se (TurboMode == TRUE)
se (Gi_784 == 1) Gd_808 = PipStarter / TurboDivider;
se (Gi_784 == 2) Gd_808 = 2,0 * (PipStarter / TurboDivider);
se (Gi_784 & gt; = 3) Gd_808 = PipStarter;
> else Gd_808 = PipStarter;
se (MathCeil (AccountBalance ()) & lt; 999.0) Ld_64 = Lots;
else Ld_64 = 0.00001 * MathCeil (AccountBalance () / Divider);
> else Ld_64 = Lots;
se (bool_152) f0_24 (Ld_156, Ld_164, G_price_856);
se (TimeCurrent () & gt; = Gi_920)
Imprimir ("Fechado Todo o sistema 3 negocia porque TimeOut foi alcançado");
duplo Ld_180 = f0_2 ();
se (bool_128 == VERDADEIRO)
se (Ld_180 & lt; 0,0 & amp; amp; MathAbs (Ld_180) & gt; Ld_132 / 100.0 * f0_25 ())
Imprimir ("Fechou todas as negociações sob este par porque StoplossPCT foi cumprido");
se (Ld_180 & gt; 0,0 & amp; & amp; MathAbs (Ld_180) & gt; Ld_144 / 100.0 * f0_25 ())
Imprimir ("Fechou todas as negociações sob este par porque TakeProfitPCT foi cumprido");
se (UseDollarTakeProfit_s3 == VERDADEIRO)
se (Gd_988 & gt; DollarTakeProfit_s3)
Imprimir ("Fechou todas as negociações da Estratégia 3 sob este par porque DollarTakeProfit foi cumprido!");
se (Tempo [0]! = Gi_916)
se (Gi_940 == 0) Gi_904 = FALSE;
para (G_pos_936 = OrdemTotal () - 1; G_pos_936 & gt; = 0; G_pos_936--)
OrderSelect (G_pos_936, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_BUY)
se (OrderType () == OP_SELL)
se (Gi_940 & lt; = MaxTrades_3)
se (Gi_956! = FALSE & amp; Gd_880 - Pergunte & gt; = Gd_808 * Gd_228 * Ponto) Gi_952 = VERDADEIRO;
se (Gi_960! = FALSE & amp; Bid - Gd_888 & gt; = Gd_808 * Gd_228 * Ponto) Gi_952 = TRUE;
Gd_928 = NormalizeDouble (Ld_64 * MathPow (Ld_108, Gi_924), Li_116);
Gi_964 = f0_35 (1, Gd_928, NormalizeDouble (Bid, Digits), Ld_172 * Gd_228, NormalizeDouble (Ask, Digits), 0, 0, system3_comment + ": Basket #" + Gi_924, MagicNumber_3,
Imprimir ("Error_s3_1:", GetLastError (), Gd_928);
Gd_928 = NormalizeDouble (Ld_64 * MathPow (Ld_108, Gi_924), Li_116);
Gi_964 = f0_35 (0, Gd_928, NormalizeDouble (Ask, Digits), Ld_172 * Gd_228, NormalizeDouble (Bid, Digits), 0, 0, system3_comment + ": Basket #" + Gi_924, MagicNumber_3,
se (Gi_952! = FALSE & amp; & amp; Gi_940 & lt; 1)
ihigh_32 = iHigh (Symbol (), 0, 1);
ilow_40 = iLow (Symbol (), 0, 2);
Gd_864 = NormalizeDouble (Bid, Digits);
Gd_872 = NormalizeDouble (Ask, Digits);
se (Gi_960 == FALSE & amp; & amp; Gi_956 == FALSE)
Gd_928 = NormalizeDouble (Ld_64 * MathPow (Ld_108, Gi_924), Li_116);
se (UseStrategy_3! = FALSE & amp; & amp; ContinueTrading! = FALSE)
se (ihigh_32 & gt; ilow_40)
se (iRSI (NULL, G_timeframe_236, 14, PRICE_CLOSE, 1) & gt; 30.0)
Gi_964 = f0_35 (1, Gd_928, Gd_864, Ld_172 * Gd_228, Gd_864, 0, 0, system3_comment + ": Basket #" + Gi_924, MagicNumber_3, 0, Black);
se (iRSI (NULL, G_timeframe_236, 14, PRICE_CLOSE, 1) & lt; 70.0)
Gi_964 = f0_35 (0, Gd_928, Gd_872, Ld_172 * Gd_228, Gd_872, 0, 0, system3_comment + ": Basket #" + Gi_924, MagicNumber_3, 0, Green);
se (Gi_964 & gt; 0) Gi_920 = TimeCurrent () + 3600.0 * Gd_792;
para (G_pos_936 = OrdemTotal () - 1; G_pos_936 & gt; = 0; G_pos_936--)
OrderSelect (G_pos_936, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_BUY || OrderType () == OP_SELL)
G_price_856 + = OrderOpenPrice () * OrderLots ();
se (Gi_940 & gt; 0) G_price_856 = NormalizeDouble (G_price_856 / Ld_188, Digits);
para (G_pos_936 = OrdemTotal () - 1; G_pos_936 & gt; = 0; G_pos_936--)
OrderSelect (G_pos_936, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_BUY)
G_price_824 = G_price_856 + Ld_120 * Gd_228 * Ponto;
Gd_944 = G_price_856 - G_pips_800 * Ponto;
se (OrderType () == OP_SELL)
G_price_824 = G_price_856 - Ld_120 * Gd_228 * Ponto;
Gd_944 = G_price_856 + G_pips_800 * Ponto;
se (Gi_904 == VERDADEIRO)
para (int Li_196 = OrdersTotal () - 1; Li_196 & gt; = 0; Li_196--)
se (f0_29 (Li_196, SELECT_BY_POS))
enquanto (! OrderModify (OrderTicket (), G_price_856, OrderStopLoss (), G_price_824, 0, Amarelo))
se (Gi_280 == 1) Gd_308 = PipStarter / TurboDivider;
se (Gi_280 == 2) Gd_308 = 2,0 * (PipStarter / TurboDivider);
se (Gi_280 & gt; = 3) Gd_308 = PipStarter;
> else Gd_308 = PipStarter;
se (MathCeil (AccountBalance ()) & lt; 999.0) Ld_72 = Lotes;
else Ld_72 = 0.00001 * MathCeil (AccountBalance () / Divider);
> else Ld_72 = Lots;
se (bool_244) f0_33 (Ld_248, Ld_256, G_price_356);
se (TimeCurrent () & gt; = Gi_420)
Imprimir ("Fechado Todos os negócios do sistema 1 devido ao TimeOut");
se (Ld_272 & lt; 0,0 & amp; amp; MathAbs (Ld_272) & gt; Ld_224 / 100.0 * f0_18 ())
Imprimir ("Fechou todas as negociações sob este par porque StoplossPCT foi cumprido");
se (Ld_272 & gt; 0,0 & amp; & amp; MathAbs (Ld_272) & gt; Ld_236 / 100.0 * f0_18 ())
Imprimir ("Fechou todas as negociações sob este par porque TakeProfitPCT foi cumprido");
se (Ld_272 & gt; DollarTakeProfit_s1)
Imprimir ("Fechou todas as negociações da Estratégia 1 ao abrigo deste par porque DollarTakeProfit foi cumprido!");
se (Tempo [0]! = Gi_416)
se (Gi_440 == 0) Gi_404 = FALSE;
para (G_pos_436 = OrdersTotal () - 1; G_pos_436 & gt; = 0; G_pos_436--)
OrderSelect (G_pos_436, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_BUY)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_SELL)
se (Gi_440 & gt; 0 & amp; & amp; MaxTrades_1 & gt; = Gi_440)
se (Gi_456! = FALSE & amp; Gd_380 - Ask & gt; = Gd_308 * Gd_228 * Point) Gi_452 = TRUE;
se (Gi_460! = FALSE & amp; Bid - Gd_388 & gt; = Gd_308 * Gd_228 * Ponto) Gi_452 = TRUE;
Gd_428 = NormalizeDouble (Ld_72 * MathPow (Ld_200, Gi_424), Li_208);
Gi_464 = f0_7 (1, Gd_428, NormalizeDouble (Bid, Digits), Ld_264 * Gd_228, NormalizeDouble (Ask, Digits), 0, 0, system1_comment + ": Basket #" + Gi_424, MagicNumber_1,
Gd_428 = NormalizeDouble (Ld_72 * MathPow (Ld_200, Gi_424), Li_208);
Gi_464 = f0_7 (0, Gd_428, NormalizeDouble (Ask, Digits), Ld_264 * Gd_228, NormalizeDouble (Bid, Digits), 0, 0, system1_comment + ": Basket #" + Gi_424, MagicNumber_1,
se (iTime (NULL, G_timeframe_284, 0)! = G_datetime_488)
para (int Li_280 = Li_80; Li_280 & gt; = 1; Li_280--)
OrderSelect (Li_280 - 1, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; & amp; OrderMagicNumber () == MagicNumber_1) count_84 ++;
se (Li_80 == 0 || count_84 & lt; 1)
iclose_48 = iClose (Symbol (), 0, 2);
iclose_56 = iClose (Symbol (), 0, 1);
Gd_364 = NormalizeDouble (Bid, Digits);
Gd_372 = NormalizeDouble (Ask, Digits);
se (Gi_460 == FALSE & amp; & amp; g_456 == FALSE)
Gd_428 = NormalizeDouble (Ld_72 * MathPow (Booster, Gi_424), Li_208);
se (iclose_48 & gt; iclose_56)
se (UseStrategy_1 & amp; & ContinuingTrading)
Gi_464 = f0_7 (1, Gd_428, Gd_364, Ld_264 * Gd_228, Gd_364, 0, 0, system1_comment + ": Basket #" + Gi_424, MagicNumber_1, 0, Black);
se (UseStrategy_1! = FALSE & amp; & amp; ContinueTrading! = FALSE)
Gi_464 = f0_7 (0, Gd_428, Gd_372, Ld_264 * Gd_228, Gd_372, 0, 0, system1_comment + ": Basket #" + Gi_424, MagicNumber_1, 0, Green);
se (Gi_464 & gt; 0) Gi_420 = TimeCurrent () + 3600.0 * Gd_300;
G_datetime_488 = iTime (NULL, G_timeframe_284, 0);
para (G_pos_436 = OrdersTotal () - 1; G_pos_436 & gt; = 0; G_pos_436--)
OrderSelect (G_pos_436, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1 == 1)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_BUY || OrderType () == OP_SELL)
G_price_356 + = OrderOpenPrice () * OrderLots ();
se (Gi_440 & gt; 0) G_price_356 = NormalizeDouble (G_price_356 / Ld_284, Digits);
para (G_pos_436 = OrdersTotal () - 1; G_pos_436 & gt; = 0; G_pos_436--)
OrderSelect (G_pos_436, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1 == 1)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_BUY)
G_price_324 = G_price_356 + Ld_212 * Gd_228 * Ponto;
Gd_444 = G_price_356 - G_pips_288 * Ponto;
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_SELL)
G_price_324 = G_price_356 - Ld_212 * Gd_228 * Ponto;
Gd_444 = G_price_356 + G_pips_288 * Ponto;
se (Gi_404 == VERDADEIRO)
para (int Li_292 = OrdersTotal () - 1; Li_292 & gt; = 0; Li_292--)
se (f0_22 (Li_292, SELECT_BY_POS))
enquanto (! OrderModify (OrderTicket (), G_price_356, OrderStopLoss (), G_price_324, 0, Amarelo))
se (Gi_532 == 1) Gd_560 = PipStarter / TurboDivider;
se (Gi_532 == 2) Gd_560 = 2,0 * (PipStarter / TurboDivider);
se (Gi_532 & gt; = 3) Gd_560 = PipStarter;
> else Gd_560 = PipStarter;
se (MathCeil (AccountBalance ()) & lt; 999.0) Ld_88 = Lots;
else Ld_88 = 0.00001 * MathCeil (AccountBalance () / Divider);
> else Ld_88 = Lots;
se (bool_340) f0_10 (Ld_344, Ld_352, G_price_608);
se (TimeCurrent () & gt; = Gi_672)
Imprimir ("Cerrado Todos os negócios do sistema 2 devido ao TimeOut");
se (Ld_368 & lt; 0,0 & amp; amp; MathAbs (Ld_368) & gt; Ld_320 / 100.0 * f0_21 ())
Imprimir ("Fechou todas as negociações sob este par porque StoplossPCT foi cumprido");
se (Ld_368 & gt; 0,0 & amp; & amp; MathAbs (Ld_368) & gt; Ld_332 / 100.0 * f0_21 ())
Imprimir ("Fechou todas as negociações sob este par porque TakeProfitPCT foi cumprido");
se (Ld_368 & gt; DollarTakeProfit_s2)
Print ("Fechou todas as negociações da Estratégia 2 sob este par porque DollarTakeProfit foi cumprido!");
se (Tempo [0]! = Gi_668)
se (Gi_692 == 0) Gi_656 = FALSE;
para (G_pos_688 = OrdersTotal () - 1; G_pos_688 & gt; = 0; G_pos_688--)
OrderSelect (G_pos_688, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2)
se (OrderType () == OP_BUY)
se (OrderType () == OP_SELL)
se (Gi_692 & lt; = MaxTrades_2)
se (Gi_708! = FALSE & amp; Gd_632 - Ask & gt; = Gd_560 * Gd_228 * Point) Gi_704 = TRUE;
se (Gi_712! = FALSE & amp; Bid - Gd_640 & gt; = Gd_560 * Gd_228 * Ponto) Gi_704 = TRUE;
Gd_680 = NormalizeDouble (Ld_88 * MathPow (Ld_296, Gi_676), Li_304);
Gi_716 = f0_6 (1, Gd_680, NormalizeDouble (Bid, Digits), Ld_360 * Gd_228, NormalizeDouble (Ask, Digits), 0, 0, system2_comment + ": Basket #" + Gi_676, MagicNumber_2,
Gd_680 = NormalizeDouble (Ld_88 * MathPow (Ld_296, Gi_676), Li_304);
Gi_716 = f0_6 (0, Gd_680, NormalizeDouble (Ask, Digits), Ld_360 * Gd_228, NormalizeDouble (Bid, Digits), 0, 0, system2_comment + ": Basket #" + Gi_676, MagicNumber_2,
se (iTime (NULL, G_timeframe_536, 0)! = G_datetime_740)
para (int Li_376 = Li_96; Li_376 & gt; = 1; Li_376--)
OrderSelect (Li_376 - 1, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2) count_100 ++;
se (Li_96 == 0 || count_100 & lt; 1)
iclose_48 = iClose (Symbol (), 0, 2);
iclose_56 = iClose (Symbol (), 0, 1);
Gd_616 = NormalizeDouble (Bid, Digits);
Gd_624 = NormalizeDouble (Ask, Digits);
se (Gi_712 == FALSE & amp; & amp; Gi_708 == FALSE)
Gd_680 = NormalizeDouble (Ld_88 * MathPow (Ld_296, Gi_676), Li_304);
se (UseStrategy_2! = FALSE & amp; & amp; ContinueTrading! = FALSE)
se (iclose_48 & gt; iclose_56)
se (iRSI (NULL, G_timeframe_236, 14, PRICE_CLOSE, 1) & gt; 30.0)
Gi_716 = f0_6 (1, Gd_680, Gd_616, Ld_360 * Gd_228, Gd_616, 0, 0, system2_comment + ": Basket #" + Gi_676, MagicNumber_2, 0, Black);
se (iRSI (NULL, G_timeframe_236, 14, PRICE_CLOSE, 1) & lt; 70.0)
Gi_716 = f0_6 (0, Gd_680, Gd_624, Ld_360 * Gd_228, Gd_624, 0, 0, system2_comment + ": Basket #" + Gi_676, MagicNumber_2, 0, Green);
se (Gi_716 & gt; 0) Gi_672 = TimeCurrent () + 3600.0 * Gd_552;
G_datetime_740 = iTime (NULL, G_timeframe_536, 0);
para (G_pos_688 = OrdersTotal () - 1; G_pos_688 & gt; = 0; G_pos_688--)
OrderSelect (G_pos_688, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2)
se (OrderType () == OP_BUY || OrderType () == OP_SELL)
G_price_608 + = OrderOpenPrice () * OrderLots ();
se (Gi_692 & gt; 0) G_price_608 = NormalizeDouble (G_price_608 / Ld_380, Digits);
para (G_pos_688 = OrdersTotal () - 1; G_pos_688 & gt; = 0; G_pos_688--)
OrderSelect (G_pos_688, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2 == 1)
se (OrderType () == OP_BUY)
G_price_576 = G_price_608 + Ld_308 * Gd_228 * Ponto;
Gd_696 = G_price_608 - G_pips_540 * Ponto;
se (OrderType () == OP_SELL)
G_price_576 = G_price_608 - Ld_308 * Gd_228 * Ponto;
Gd_696 = G_price_608 + G_pips_540 * Ponto;
se (Gi_656 == TRUE)
para (int Li_388 = OrdersTotal () - 1; Li_388 & gt; = 0; Li_388--)
se (f0_1 (Li_388, SELECT_BY_POS))
enquanto (! OrderModify (OrderTicket (), G_price_608, OrderStopLoss (), G_price_576, 0, Amarelo))
duplo Ld_4 = 0,0;
para (int pos_12 = OrdersTotal () - 1; pos_12 & gt; = 0; pos_12--)
OrderSelect (pos_12, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_3 == TRUE)
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_SELL || OrderType () == OP_BUY)
Gd_988 = OrderProfit () + OrderSwap () + Gd_988;
Ld_4 = OrderLots () + Ld_4;
para (int pos_0 = OrdersTotal () - 1; pos_0 & gt; = 0; pos_0--)
OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_BUY) OrderClose (OrderTicket (), OrderLots (), OrderClosePrice (), Gd_816 * Gd_228, DarkGray);
se (OrderType () == OP_SELL) OrderClose (OrderTicket (), OrderLots (), OrderClosePrice (), Gd_816 * Gd_228, YellowGreen);
int f0_35 (int Ai_0, duplo A_lots_4, duplo Ad_unused_12, duplo Ad_20, duplo Ad_unused_28, int Ai_36, int Ai_40, string A_comment_44, int A_magic_52, int A_datetime_56, cor A_color_60)
int ticket_64 = 0;
int error_68 = 0;
int count_72 = 0;
para (count_72 = 0; count_72 & lt; Li_76; count_72 ++)
ticket_64 = OrderSend (Symbol (), OP_BUY, A_lots_4, NormalizeDouble (Ask, Digits), Ad_20 * Gd_228, NormalizeDouble (f0_4 (Bid, Ai_36), Digits), NormalizeDouble (f0_27 (Ask,
Ai_40), Digits), A_comment_44, A_magic_52, A_datetime_56, A_color_60);
se (erro_68 == 0 / * NO_ERROR * /) quebrar;
se (error_68! = 4 / * SERVER_BUSY * / || error_68! = 137 / * BROKER_BUSY * / || error_68! = 146 / * TRADE_CONTEXT_BUSY * / || error_68! = 136 / * OFF_QUOTES * /) break;
para (count_72 = 0; count_72 & lt; Li_76; count_72 ++)
ticket_64 = OrderSend (Symbol (), OP_SELL, A_lots_4, NormalizeDouble (Bid, Digits), Ad_20 * Gd_228, NormalizeDouble (f0_13 (Ask, Ai_36), Digits), NormalizeDouble (f0_14 (Licitação,
Ai_40), Digits), A_comment_44, A_magic_52, A_datetime_56, A_color_60);
se (erro_68 == 0 / * NO_ERROR * /) quebrar;
se (error_68! = 4 / * SERVER_BUSY * / || error_68! = 137 / * BROKER_BUSY * / || error_68! = 146 / * TRADE_CONTEXT_BUSY * / || error_68! = 136 / * OFF_QUOTES * /) break;
duplo f0_4 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 - Ai_8 * Point);
duplo f0_13 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 + Ai_8 * Point);
duplo f0_27 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 + Ai_8 * Point);
duplo f0_14 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 - Ai_8 * Point);
duplo Ld_ret_0 = 0,0;
para (G_pos_936 = OrdemTotal () - 1; G_pos_936 & gt; = 0; G_pos_936--)
OrderSelect (G_pos_936, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_BUY || OrderType () == OP_SELL) Ld_ret_0 + = OrderProfit ();
vazio f0_24 (duplo Ad_0, duplo Ad_8, duplo A_price_16)
para (int pos_44 = OrdersTotal () - 1; pos_44 & gt; = 0; pos_44--)
se (OrderSelect (pos_44, SELECT_BY_POS, MODE_TRADES))
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderSymbol () == Symbol () & amp; OrderMagicNumber () == MagicNumber_3)
se (OrderType () == OP_BUY)
Li_24 = MathFloor ((Bid - A_price_16) / Point);
se (Li_24 & lt; Ad_0) continuar;
price_36 = Bid - Ad_8 * Gd_228 * Ponto;
se (order_stoploss_28 == 0.0 || order_stoploss_28 & lt; price_36) OrderModify (OrderTicket (), A_price_16, price_36, OrderTakeProfit (), 0, Gray);
se (OrderType () == OP_SELL)
Li_24 = MathFloor ((A_price_16 - Ask) / Point);
se (Li_24 & lt; Ad_0) continuar;
price_36 = Ask + Ad_8 * Gd_228 * Ponto;
se (order_stoploss_28 == 0.0 || order_stoploss_28 & gt; price_36) OrderModify (OrderTicket (), A_price_16, price_36, OrderTakeProfit (), 0, SpringGreen);
se (f0_28 () == 0) Gd_972 = AccountEquity ();
se (Gd_972 & lt; Gd_980) Gd_972 = Gd_980;
else Gd_972 = AccountEquity ();
duplo Ld_unused_12 = 0,0;
int ticket_20 = 0;
para (int pos_24 = OrdersTotal () - 1; pos_24 & gt; = 0; pos_24--)
OrderSelect (pos_24, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_3 == TRUE)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_3 & amp; OrderType () == OP_BUY)
se (ticket_8 & gt; ticket_20)
duplo Ld_unused_12 = 0,0;
int ticket_20 = 0;
para (int pos_24 = OrdersTotal () - 1; pos_24 & gt; = 0; pos_24--)
OrderSelect (pos_24, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_3 == TRUE)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_3 & amp; OrderType () == OP_SELL)
se (ticket_8 & gt; ticket_20)
duplo Ld_4 = 0,0;
para (int pos_12 = OrdersTotal () - 1; pos_12 & gt; = 0; pos_12--)
OrderSelect (pos_12, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_SELL || OrderType () == OP_BUY)
Ld_4 = OrderLots () + Ld_4;
Gd_492 = OrderProfit () + OrderSwap () + Gd_492;
para (int pos_0 = OrdersTotal () - 1; pos_0 & gt; = 0; pos_0--)
OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_BUY) OrderClose (OrderTicket (), OrderLots (), OrderClosePrice (), Gd_316 * Gd_228, DarkGray);
se (OrderType () == OP_SELL) OrderClose (OrderTicket (), OrderLots (), OrderClosePrice (), Gd_316 * Gd_228, GreenYellow);
int f0_7 (int Ai_0, duplo A_lots_4, duplo Ad_unused_12, duplo Ad_20, duplo Ad_unused_28, int Ai_36, int Ai_40, string A_comment_44, int A_magic_52, int A_datetime_56, cor A_color_60)
int ticket_64 = 0;
int error_68 = 0;
int count_72 = 0;
para (count_72 = 0; count_72 & lt; Li_76; count_72 ++)
ticket_64 = OrderSend (Symbol (), OP_BUY, A_lots_4, NormalizeDouble (Ask, Digits), Ad_20 * Gd_228, NormalizeDouble (f0_11 (Bid, Ai_36), Digits), NormalizeDouble (f0_26 (Ask,
Ai_40), Digits), A_comment_44, A_magic_52, A_datetime_56, A_color_60);
se (erro_68 == 0 / * NO_ERROR * /) quebrar;
se (error_68! = 4 / * SERVER_BUSY * / || error_68! = 136 / * OFF_QUOTES * / || error_68! = 137 / * BROKER_BUSY * / || error_68! = 146 / * TRADE_CONTEXT_BUSY * /) quebra;
para (count_72 = 0; count_72 & lt; Li_76; count_72 ++)
ticket_64 = OrderSend (Symbol (), OP_SELL, A_lots_4, NormalizeDouble (Bid, Digits), Ad_20 * Gd_228, NormalizeDouble (f0_9 (Ask, Ai_36), Digits), NormalizeDouble (f0_31 (lance,
Ai_40), Digits), A_comment_44, A_magic_52, A_datetime_56, A_color_60);
se (erro_68 == 0 / * NO_ERROR * /) quebrar;
se (error_68! = 4 / * SERVER_BUSY * / || error_68! = 137 / * BROKER_BUSY * / || error_68! = 146 / * TRADE_CONTEXT_BUSY * / || error_68! = 136 / * OFF_QUOTES * /) break;
duplo f0_11 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 - Ai_8 * Point);
duplo f0_9 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 + Ai_8 * Point);
duplo f0_26 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 + Ai_8 * Point);
duplo f0_31 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 - Ai_8 * Point);
duplo Ld_ret_0 = 0,0;
para (G_pos_436 = OrdersTotal () - 1; G_pos_436 & gt; = 0; G_pos_436--)
OrderSelect (G_pos_436, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_BUY || OrderType () == OP_SELL) Ld_ret_0 + = OrderProfit ();
vazio f0_33 (duplo Ad_0, duplo Ad_8, duplo A_price_16)
para (int pos_44 = OrdersTotal () - 1; pos_44 & gt; = 0; pos_44--)
se (OrderSelect (pos_44, SELECT_BY_POS, MODE_TRADES))
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1 == 1)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1)
se (OrderType () == OP_BUY)
Li_24 = MathFloor ((Bid - A_price_16) / Point);
se (Li_24 & lt; Ad_0) continuar;
price_36 = Bid - Ad_8 * Gd_228 * Ponto;
se (order_stoploss_28 == 0,0 || order_stoploss_28 & lt; price_36) OrderModify (OrderTicket (), A_price_16, price_36, OrderTakeProfit (), 0, SlateGray);
se (OrderType () == OP_SELL)
Li_24 = MathFloor ((A_price_16 - Ask) / Point);
se (Li_24 & lt; Ad_0) continuar;
price_36 = Ask + Ad_8 * Gd_228 * Ponto;
se (order_stoploss_28 == 0.0 || order_stoploss_28 & gt; price_36)
OrderModify (OrderTicket (), A_price_16, price_36, OrderTakeProfit (), 0, SpringGreen);
Imprimir ("STOPLOSS IS:" + price_36);
se (f0_38 () == 0) Gd_472 = AccountEquity ();
se (Gd_472 & lt; Gd_480) Gd_472 = Gd_480;
else Gd_472 = AccountEquity ();
duplo Ld_unused_12 = 0,0;
int ticket_20 = 0;
para (int pos_24 = OrdersTotal () - 1; pos_24 & gt; = 0; pos_24--)
OrderSelect (pos_24, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1 == TRUE)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1 & amp; OrderType () == OP_BUY)
se (ticket_8 & gt; ticket_20)
duplo Ld_unused_12 = 0,0;
int ticket_20 = 0;
para (int pos_24 = OrdersTotal () - 1; pos_24 & gt; = 0; pos_24--)
OrderSelect (pos_24, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_1 & amp; OrderType () == OP_SELL)
se (ticket_8 & gt; ticket_20)
duplo Ld_4 = 0,0;
para (int pos_12 = OrdersTotal () - 1; pos_12 & gt; = 0; pos_12--)
OrderSelect (pos_12, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2)
se (OrderType () == OP_SELL || OrderType () == OP_BUY)
Ld_4 = OrderLots () + Ld_4;
Gd_744 = OrderProfit () + OrderSwap () + Gd_744;
para (int pos_0 = OrdersTotal () - 1; pos_0 & gt; = 0; pos_0--)
OrderSelect (pos_0, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2)
se (OrderType () == OP_BUY) OrderClose (OrderTicket (), OrderLots (), OrderClosePrice (), Gd_568 * Gd_228, DarkGray);
se (OrderType () == OP_SELL) OrderClose (OrderTicket (), OrderLots (), OrderClosePrice (), Gd_568 * Gd_228, GreenYellow);
int f0_6 (int Ai_0, duplo A_lots_4, duplo Ad_unused_12, duplo Ad_20, duplo Ad_unused_28, int Ai_36, int Ai_40, string A_comment_44, int A_magic_52, int A_datetime_56, cor A_color_60)
int ticket_64 = 0;
int error_68 = 0;
int count_72 = 0;
para (count_72 = 0; count_72 & lt; Li_76; count_72 ++)
ticket_64 = OrderSend (Symbol (), OP_BUY, A_lots_4, NormalizeDouble (Ask, Digits), Ad_20 * Gd_228, NormalizeDouble (f0_37 (Bid, Ai_36), Digits), NormalizeDouble (f0_36 (Ask,
Ai_40), Digits), A_comment_44, A_magic_52, A_datetime_56, A_color_60);
se (erro_68 == 0 / * NO_ERROR * /) quebrar;
se (error_68! = 4 / * SERVER_BUSY * / || error_68! = 137 / * BROKER_BUSY * / || error_68! = 146 / * TRADE_CONTEXT_BUSY * / || error_68! = 136 / * OFF_QUOTES * /) break;
para (count_72 = 0; count_72 & lt; Li_76; count_72 ++)
ticket_64 = OrderSend (Symbol (), OP_SELL, A_lots_4, NormalizeDouble (Bid, Digits), Ad_20 * Gd_228, NormalizeDouble (f0_8 (Ask, Ai_36), Digits), NormalizeDouble (f0_34 (Licitação,
Ai_40), Digits), A_comment_44, A_magic_52, A_datetime_56, A_color_60);
se (erro_68 == 0 / * NO_ERROR * /) quebrar;
se (error_68! = 4 / * SERVER_BUSY * / || error_68! = 136 / * OFF_QUOTES * / || error_68! = 137 / * BROKER_BUSY * / || error_68! = 146 / * TRADE_CONTEXT_BUSY * /) quebra;
duplo f0_37 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 - Ai_8 * Point);
duplo f0_8 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 + Ai_8 * Point);
duplo f0_36 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 + Ai_8 * Point);
duplo f0_34 (duplo Ad_0, int Ai_8)
se (Ai_8 == 0) retornar (0.0);
retornar (Ad_0 - Ai_8 * Point);
duplo Ld_ret_0 = 0,0;
para (G_pos_688 = OrdersTotal () - 1; G_pos_688 & gt; = 0; G_pos_688--)
OrderSelect (G_pos_688, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2 == TRUE)
se (OrderType () == OP_BUY || OrderType () == OP_SELL) Ld_ret_0 + = OrderProfit ();
vazio f0_10 (duplo Ad_0, duplo Ad_8, duplo A_price_16)
para (int pos_44 = OrdersTotal () - 1; pos_44 & gt; = 0; pos_44--)
se (OrderSelect (pos_44, SELECT_BY_POS, MODE_TRADES))
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2 == 1)
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2)
se (OrderType () == OP_BUY)
Li_24 = MathFloor ((Bid - A_price_16) / Point);
se (Li_24 & lt; Ad_0) continuar;
price_36 = Bid - Ad_8 * Gd_228 * Ponto;
se (order_stoploss_28 == 0,0 || order_stoploss_28 & lt; price_36) OrderModify (OrderTicket (), A_price_16, price_36, OrderTakeProfit (), 0, SlateGray);
se (OrderType () == OP_SELL)
Li_24 = MathFloor ((A_price_16 - Ask) / Point);
se (Li_24 & lt; Ad_0) continuar;
price_36 = Ask + Ad_8 * Gd_228 * Ponto;
se (order_stoploss_28 == 0.0 || order_stoploss_28 & gt; price_36) OrderModify (OrderTicket (), A_price_16, price_36, OrderTakeProfit (), 0, SpringGreen);
se (f0_23 () == 0) Gd_724 = AccountEquity ();
se (Gd_724 & lt; Gd_732) Gd_724 = Gd_732;
else Gd_724 = AccountEquity ();
duplo Ld_unused_12 = 0,0;
int ticket_20 = 0;
para (int pos_24 = OrdersTotal () - 1; pos_24 & gt; = 0; pos_24--)
OrderSelect (pos_24, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2 & amp; OrderType () == OP_BUY)
se (ticket_8 & gt; ticket_20)
duplo Ld_unused_12 = 0,0;
int ticket_20 = 0;
para (int pos_24 = OrdersTotal () - 1; pos_24 & gt; = 0; pos_24--)
OrderSelect (pos_24, SELECT_BY_POS, MODE_TRADES);
se (OrderSymbol () == Symbol () & amp; amp; OrderMagicNumber () == MagicNumber_2 & amp; OrderType () == OP_SELL)
se (ticket_8 & gt; ticket_20)
int f0_22 (int A_pos_0, int Ai_4, int Ai_8 = 0)
se (OrderSelect (A_pos_0, Ai_4, Ai_8) == FALSE) retorna (0);
se (OrderMagicNumber ()! = MagicNumber_1) return (0);
se (OrderSymbol ()! = Symbol ()) return (0);
se (Ai_8! = MODE_HISTORY) retornar (1);
retornar (OrderType () & lt; = OP_SELL);
int f0_1 (int A_pos_0, int Ai_4, int Ai_8 = 0)
se (OrderSelect (A_pos_0, Ai_4, Ai_8) == FALSE) retorna (0);
se (OrderMagicNumber ()! = MagicNumber_2) return (0);
se (OrderSymbol ()! = Symbol ()) return (0);
se (Ai_8! = MODE_HISTORY) retornar (1);
retornar (OrderType () & lt; = OP_SELL);
int f0_29 (int A_pos_0, int Ai_4, int Ai_8 = 0)
se (OrderSelect (A_pos_0, Ai_4, Ai_8) == FALSE) retorna (0);
se (OrderMagicNumber ()! = MagicNumber_3) return (0);
Comments
Post a Comment