CODING EA BELUM ADA JUDUL

Posted: May 14, 2011 in Expert Advisor

TINGGAL COPY PASTE KE METAEDITOR..

/*

xxx

*/

#property copyright “xxxx”

#property link “xxxx”

#include <stdlib.mqh>

extern int MagicID = 888;

bool gi_80 = TRUE;

extern bool AutoDetect5Digits = TRUE;

extern string ProfitSetting = “=========== Profit Setting======”;

extern int TakeProfit = 200;

extern double LotSize = 0.01;

extern double MaximumLots = 0.05;

extern int Slippage = 2;

extern bool UseAutoSL = FALSE;

extern double StopLoss = 0.0;

extern double TrailingStop = 40.0;

extern bool UseInstantOrder = FALSE;

extern bool UsePendingOrder = FALSE;

extern int PendingPoint = 10;

extern bool ReverseTrade = TRUE;

extern string GainFactorProfit = “=========== gain factor of profit======”;

extern string Penting = “Cocokkan Free Margin Awal Anda = “;

extern double FreeMargin = 100.0;

extern double StepGainProfit = 1.0;

extern bool UseTargetRollover = TRUE;

extern double ProfitRollover = 10.0;

double gd_200;

extern double TargetAkhir = 130.0;

extern int MaxOrderPerGrid = 5;

bool gi_220 = FALSE;

int gi_224 = 5;

int gi_228 = 15;

int gi_232 = 30;

extern string AturSelisih = “Selisih jumlah trade Buy vs Sell yang diijinkan”;

extern int Selisih = 4;

int gi_264 = 5;

int gi_268 = 1;

string gsa_272[] = {“blank”, “SHORT”, “LONG”, “NEUTRAL”};

string gsa_276[] = {“Aussie Loonie “, “Aussie Kiwi “, “Aussie Yen “, “Aussie Dollar “, “Swissy Yen”, “Euro Aussie”, “Euro Loonie”, “Euro Swissy”, “Euro Pound “, “Euro Yen “, “Euro “, “Pound Swissy “, “Pound Yen “, “Pound “, “Loonie “, “Swissy “, “Dollar Yen “, “Gold “, “Silver “, “Kiwi Yen”, “Kiwi Dollar”};

string gsa_280[] = {“Unknown”, “Interbank FX, LLC”, “FXDirectDealer”, “Demo Account”, “North Finance Company Ltd”, “FOREX”, “Alpari (UK) Ltd.”, “Rosenthal Collins Group, LLC”};

int gi_unused_284 = 8;

string gsa_288[] = {“Resetting”, “Direction”, ” Up Trend (Strong)”, ” Down Trend (Strong)”, “Sideways UP Trend (Weak)”, “Sideways Down Trend (Weak)”};

string gs_unused_292 = “xxx”;

string gs_unused_300;

string gs_unused_308 = “Copyright © 2010”;

int gi_316 = 1;

int gi_320;

bool gi_324 = TRUE;

int gi_328 = 10;

int gi_332 = 9221330;

int gi_336 = 16777215;

double gd_340;

double gd_348 = 0.0;

double gd_356 = 0.0;

double gd_364;

double gd_372;

double gd_380;

double gd_388;

bool gi_396 = FALSE;

bool gi_400 = FALSE;

int gi_404 = 0;

int gi_408 = 0;

bool gi_412 = TRUE;

double gd_420;

double gd_428;

double gd_436;

double gd_444;

double g_price_452;

bool gi_unused_460 = TRUE;

bool gi_unused_464 = TRUE;

bool gi_unused_468 = TRUE;

bool gi_unused_472 = TRUE;

bool gi_unused_476 = TRUE;

bool gi_unused_480 = TRUE;

bool gi_unused_484 = TRUE;

bool gi_unused_488 = TRUE;

bool gi_unused_492 = TRUE;

bool gi_unused_496 = TRUE;

bool gi_unused_500 = TRUE;

bool gi_unused_504 = TRUE;

bool gi_unused_508 = TRUE;

bool gi_unused_512 = TRUE;

bool gi_unused_516 = TRUE;

bool gi_unused_520 = TRUE;

bool gi_unused_524 = TRUE;

bool gi_unused_528 = TRUE;

bool gi_unused_532 = TRUE;

bool gi_unused_536 = TRUE;

double gd_540;

bool gi_548 = TRUE;

bool gi_552 = TRUE;

bool gi_unused_556 = TRUE;

string g_time2str_560;

extern string TimeTradeSettings = “=== Time of Trading Settings===”;

extern string PutNumberofTradeDayBelow = “0-Sunday … 6-Saturday”;

extern string DaysOfWeeksToTrade = “0,1,2,3,4,5,6”;

extern bool ControlTimeOfDayNOTTrades = FALSE;

extern string Keterangan = “—- Nilai maksimal floating yang akan di closed sebelum robot pada status NO TRADE”;

extern double TutupFloatingNoTrade = -14.0;

extern string TimeofDayNOTtoTradesStart1 = “01:00”;

extern string TimeofDayNOTtoTradesEnd1 = “12:00”;

extern string TimeofDayNOTtoTradesStart2 = “00:00”;

extern string TimeofDayNOTtoTradesEnd2 = “00:00”;

extern string TimeofDayNOTtoTradesStart3 = “00:00”;

extern string TimeofDayNOTtoTradesEnd3 = “00:00”;

extern string TimeofDayNOTtoTradesStart4 = “00:00”;

extern string TimeofDayNOTtoTradesEnd4 = “00:00”;

extern string TimeofDayNOTtoTradesStart5 = “00:00”;

extern string TimeofDayNOTtoTradesEnd5 = “00:00”;

extern string TimeofDayNOTtoTradesStart6 = “00:00”;

extern string TimeofDayNOTtoTradesEnd6 = “00:00”;

extern string TimeofDayNOTtoTradesStart7 = “00:00”;

extern string TimeofDayNOTtoTradesEnd7 = “00:00”;

extern string TimeofDayNOTtoTradesStart8 = “00:00”;

extern string TimeofDayNOTtoTradesEnd8 = “00:00”;

extern string TimeofDayNOTtoTradesStart9 = “00:00”;

extern string TimeofDayNOTtoTradesEnd9 = “00:00”;

extern string TimeofDayNOTtoTradesStart10 = “00:00”;

extern string TimeofDayNOTtoTradesEnd10 = “00:00”;

extern string DaysTimesNotToTradeOnNews = “– DO NOT TRADE ON NEWS –“;

extern bool AvoidNews = FALSE;

extern string PutNumberofAvoidDayBelow = “0-Sunday … 6-Saturday”;

extern string AvoidNewsDaysOfWeekToTrade = “0,1,2,3,4,5,6”;

extern string SundayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesSunStart1 = “04:40”;

extern string TimeofDayNOTtoTradesSunEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesSunStart2 = “14:10”;

extern string TimeofDayNOTtoTradesSunEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesSunStart3 = “20:10”;

extern string TimeofDayNOTtoTradesSunEnd3 = “20:40”;

extern string MondayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesMonStart1 = “04:40”;

extern string TimeofDayNOTtoTradesMonEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesMonStart2 = “14:10”;

extern string TimeofDayNOTtoTradesMonEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesMonStart3 = “20:10”;

extern string TimeofDayNOTtoTradesMonEnd3 = “20:40”;

extern string TuesdayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesTueStart1 = “04:40”;

extern string TimeofDayNOTtoTradesTueEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesTueStart2 = “14:10”;

extern string TimeofDayNOTtoTradesTueEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesTueStart3 = “20:10”;

extern string TimeofDayNOTtoTradesTueEnd3 = “20:40”;

extern string WednesdayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesWedStart1 = “04:40”;

extern string TimeofDayNOTtoTradesWedEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesWedStart2 = “14:10”;

extern string TimeofDayNOTtoTradesWedEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesWedStart3 = “20:10”;

extern string TimeofDayNOTtoTradesWedEnd3 = “20:40”;

extern string ThursdayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesThursStart1 = “04:40”;

extern string TimeofDayNOTtoTradesThursEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesThursStart2 = “14:10”;

extern string TimeofDayNOTtoTradesThursEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesThursStart3 = “20:10”;

extern string TimeofDayNOTtoTradesThursEnd3 = “20:40”;

extern string FridayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesFriStart1 = “04:40”;

extern string TimeofDayNOTtoTradesFriEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesFriStart2 = “14:10”;

extern string TimeofDayNOTtoTradesFriEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesFriStart3 = “20:10”;

extern string TimeofDayNOTtoTradesFriEnd3 = “20:40”;

extern string SaturdayAvoidNews = “– DO NOT TRADE ON NEWS –“;

extern string TimeofDayNOTtoTradesSatStart1 = “04:40”;

extern string TimeofDayNOTtoTradesSatEnd1 = “05:10”;

extern string TimeofDayNOTtoTradesSatStart2 = “14:10”;

extern string TimeofDayNOTtoTradesSatEnd2 = “14:40”;

extern string TimeofDayNOTtoTradesSatStart3 = “20:10”;

extern string TimeofDayNOTtoTradesSatEnd3 = “20:40”;

double g_price_1192 = 0.0;

double g_price_1200 = 0.0;

double g_price_1208 = 0.0;

double g_price_1216 = 0.0;

double g_price_1224 = 0.0;

double g_price_1232 = 0.0;

double g_price_1240 = 0.0;

double g_price_1248 = 0.0;

double g_price_1256 = 0.0;

double g_price_1264 = 0.0;

double g_price_1272 = 0.0;

double g_price_1280 = 0.0;

double gd_1288 = 0.0;

double gd_1296 = 0.0;

double gd_1304 = 0.0;

double gd_unused_1312 = 0.0;

double gd_1320 = 0.0;

double gd_1328 = 0.0;

double gd_unused_1336 = 0.0;

double gd_unused_1344 = 0.0;

double gd_unused_1352 = 0.0;

double g_price_1360 = 0.0;

double gd_1368 = 0.0;

double gd_1376 = 0.0;

double gd_1384 = 0.0;

double gd_1392 = 0.0;

double gda_1400[2][6];

double gda_1404[2][6];

double gda_unused_1408[13];

bool gi_1456 = FALSE;

int gi_1460 = 0;

int gi_1464 = 1;

int gi_1468;

int gi_unused_1484 = 0;

int gi_1552 = 2;

bool gi_1556;

bool gi_1560;

string gs_1564;

string gs_1572;

string gs_1580;

string gs_unused_1588;

string gs_1596;

string gs_1604;

string gs_1612;

string gs_1620;

string gs_1628;

string gs_dummy_1636;

string gs_dummy_1644;

string gs_unused_1652;

string gs_dummy_1660;

bool gi_unused_1668 = FALSE;

bool gi_unused_1672 = FALSE;

bool gi_unused_1676 = FALSE;

bool gi_unused_1680 = FALSE;

bool gi_unused_1684 = FALSE;

bool gi_unused_1688 = FALSE;

int gi_1692;

int gi_unused_1696;

string g_var_name_1700;

double gd_1708;

int gi_1716;

int gi_1720;

double gd_1724;

double gd_1732;

int gi_1740;

double gd_1744;

double gd_1752;

double gd_unused_1760;

double gd_1768;

double gd_1776;

double gd_1784;

double gd_1792;

double gd_1800;

double gd_1808;

int gi_unused_1816 = 0;

bool gi_unused_1820 = FALSE;

int init() {

if (AutoDetect5Digits) {

if (Digits == 5 || Digits == 3) gd_420 = 10.0 * Point;

else gd_420 = Point;

} else gd_420 = Point;

gd_444 = AccountBalance();

if (TargetAkhir == 0.0) TargetAkhir = FreeMargin + 20.0 * StepGainProfit;

else TargetAkhir = TargetAkhir;

gs_unused_292 = “xxx”;

gs_unused_300 = “xxx”;

_408 = 2;

if (gi_80 && CheckTrade() && IsTradeDay(DaysOfWeeksToTrade) && gd_540 < MaximumLots && gi_552) {

if (ReverseTrade) {

if (!UseInstantOrder) {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Ask + StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Ask > g_price_1208) g_price_452 = 0;

if (Ask > g_price_1256 && Ask < g_price_1208) g_price_452 = g_price_1208;

if (Ask > g_price_1200 && Ask < g_price_1256) g_price_452 = g_price_1208;

if (Ask > g_price_1248 && Ask < g_price_1200) g_price_452 = g_price_1208;

if (Ask > g_price_1192 && Ask < g_price_1248) g_price_452 = g_price_1208;

if (Ask > g_price_1240 && Ask < g_price_1192) g_price_452 = g_price_1208;

if (Ask > g_price_1360 && Ask < g_price_1240) g_price_452 = g_price_1208;

if (Ask < g_price_1360 && Ask > g_price_1232) g_price_452 = g_price_1208;

if (Ask < g_price_1232 && Ask > g_price_1264) g_price_452 = g_price_1208;

if (Ask < g_price_1264 && Ask > g_price_1224) g_price_452 = g_price_1208;

if (Ask < g_price_1224 && Ask > g_price_1272) g_price_452 = g_price_1208;

if (Ask < g_price_1272 && Ask > g_price_1216) g_price_452 = g_price_1208;

if (Ask < g_price_1216 && Ask > g_price_1280) g_price_452 = g_price_1208;

if (Ask < g_price_1280) g_price_452 = 0;

}

l_ticket_0 = MyOrderSend(Symbol(), 1, LotSize, Ask, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

if (l_ticket_0 != -1) {

OrderSelect(l_ticket_0, SELECT_BY_TICKET);

l_bool_4 = OrderModify(OrderTicket(), OrderOpenPrice(), g_price_452, OrderOpenPrice() – TakeProfit * gd_420, 0);

}

} else {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Ask + StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Ask > g_price_1208) g_price_452 = 0;

if (Ask > g_price_1256 && Ask < g_price_1208) g_price_452 = g_price_1208;

if (Ask > g_price_1200 && Ask < g_price_1256) g_price_452 = g_price_1208;

if (Ask > g_price_1248 && Ask < g_price_1200) g_price_452 = g_price_1208;

if (Ask > g_price_1192 && Ask < g_price_1248) g_price_452 = g_price_1200;

if (Ask > g_price_1240 && Ask < g_price_1192) g_price_452 = g_price_1208;

if (Ask > g_price_1360 && Ask < g_price_1240) g_price_452 = g_price_1208;

if (Ask < g_price_1360 && Ask > g_price_1232) g_price_452 = g_price_1208;

if (Ask < g_price_1232 && Ask > g_price_1264) g_price_452 = g_price_1208;

if (Ask < g_price_1264 && Ask > g_price_1224) g_price_452 = g_price_1208;

if (Ask < g_price_1224 && Ask > g_price_1272) g_price_452 = g_price_1208;

if (Ask < g_price_1272 && Ask > g_price_1216) g_price_452 = g_price_1208;

if (Ask < g_price_1216 && Ask > g_price_1280) g_price_452 = g_price_1208;

if (Ask < g_price_1280) g_price_452 = 0;

}

l_ticket_0 = MyOrderSend(Symbol(), 1, LotSize, Ask, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

}

} else {

if (!UseInstantOrder) {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Bid – StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Bid > g_price_1208) g_price_452 = 0;

if (Bid > g_price_1256 && Bid < g_price_1208) g_price_452 = g_price_1280;

if (Bid > g_price_1200 && Bid < g_price_1256) g_price_452 = g_price_1280;

if (Bid > g_price_1248 && Bid < g_price_1200) g_price_452 = g_price_1280;

if (Bid > g_price_1192 && Bid < g_price_1248) g_price_452 = g_price_1280;

if (Bid > g_price_1240 && Bid < g_price_1192) g_price_452 = g_price_1280;

if (Bid > g_price_1360 && Bid < g_price_1240) g_price_452 = g_price_1280;

if (Bid < g_price_1360 && Bid > g_price_1232) g_price_452 = g_price_1280;

if (Bid < g_price_1232 && Bid > g_price_1264) g_price_452 = g_price_1280;

if (Bid < g_price_1264 && Bid > g_price_1224) g_price_452 = g_price_1280;

if (Bid < g_price_1224 && Bid > g_price_1272) g_price_452 = g_price_1280;

if (Bid < g_price_1272 && Bid > g_price_1216) g_price_452 = g_price_1280;

if (Bid < g_price_1216 && Bid > g_price_1280) g_price_452 = g_price_1280;

if (Bid < g_price_1280) g_price_452 = 0;

}

if (!UsePendingOrder) l_ticket_0 = MyOrderSend(Symbol(), 0, LotSize, Bid, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

else {

l_ticket_0 = MyOrderSend(Symbol(), 0, LotSize, Bid, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

l_ticket_0 = MyOrderSend(Symbol(), 2, LotSize, Bid – PendingPoint * gd_420, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

}

if (l_ticket_0 != -1) {

OrderSelect(l_ticket_0, SELECT_BY_TICKET);

l_bool_4 = OrderModify(OrderTicket(), OrderOpenPrice(), g_price_452, OrderOpenPrice() + TakeProfit * gd_420, 0);

}

} else {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Bid – StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Bid > g_price_1208) g_price_452 = 0;

if (Bid > g_price_1256 && Bid < g_price_1208) g_price_452 = g_price_1280;

if (Bid > g_price_1200 && Bid < g_price_1256) g_price_452 = g_price_1280;

if (Bid > g_price_1248 && Bid < g_price_1200) g_price_452 = g_price_1280;

if (Bid > g_price_1192 && Bid < g_price_1248) g_price_452 = g_price_1280;

if (Bid > g_price_1240 && Bid < g_price_1192) g_price_452 = g_price_1280;

if (Bid > g_price_1360 && Bid < g_price_1240) g_price_452 = g_price_1280;

if (Bid < g_price_1360 && Bid > g_price_1232) g_price_452 = g_price_1280;

if (Bid < g_price_1232 && Bid > g_price_1264) g_price_452 = g_price_1280;

if (Bid < g_price_1264 && Bid > g_price_1224) g_price_452 = g_price_1280;

if (Bid < g_price_1224 && Bid > g_price_1272) g_price_452 = g_price_1280;

if (Bid < g_price_1272 && Bid > g_price_1216) g_price_452 = g_price_1280;

if (Bid < g_price_1216 && Bid > g_price_1280) g_price_452 = g_price_1280;

if (Bid < g_price_1280) g_price_452 = 0;

}

if (!UsePendingOrder) l_ticket_0 = MyOrderSend(Symbol(), 0, LotSize, Bid, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

else {

l_ticket_0 = MyOrderSend(Symbol(), 0, LotSize, Bid, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

l_ticket_0 = MyOrderSend(Symbol(), 2, LotSize, Bid – PendingPoint * gd_420, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

}

}

}

}

gd_364 += gd_348 * gd_420;

gd_388 = gd_364 – (gd_348 + MaxOrderPerGrid) * gd_420;

gi_396 = TRUE;

gi_400 = FALSE;

}

if (Ask <= gd_372 && gi_1560) {

gi_408 = 3;

if (gi_80 && CheckTrade() && IsTradeDay(DaysOfWeeksToTrade) && gd_540 < MaximumLots && gi_548) {

if (ReverseTrade) {

if (!UseInstantOrder) {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Bid – StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Bid > g_price_1208) g_price_452 = 0;

if (Bid > g_price_1256 && Bid < g_price_1208) g_price_452 = g_price_1280;

if (Bid > g_price_1200 && Bid < g_price_1256) g_price_452 = g_price_1280;

if (Bid > g_price_1248 && Bid < g_price_1200) g_price_452 = g_price_1280;

if (Bid > g_price_1192 && Bid < g_price_1248) g_price_452 = g_price_1280;

if (Bid > g_price_1240 && Bid < g_price_1192) g_price_452 = g_price_1280;

if (Bid > g_price_1360 && Bid < g_price_1240) g_price_452 = g_price_1280;

if (Bid < g_price_1360 && Bid > g_price_1232) g_price_452 = g_price_1280;

if (Bid < g_price_1232 && Bid > g_price_1264) g_price_452 = g_price_1280;

if (Bid < g_price_1264 && Bid > g_price_1224) g_price_452 = g_price_1280;

if (Bid < g_price_1224 && Bid > g_price_1272) g_price_452 = g_price_1280;

if (Bid < g_price_1272 && Bid > g_price_1216) g_price_452 = g_price_1280;

if (Bid < g_price_1216 && Bid > g_price_1280) g_price_452 = g_price_1280;

if (Bid < g_price_1280) g_price_452 = 0;

}

l_ticket_0 = MyOrderSend(Symbol(), 0, LotSize, Bid, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

if (l_ticket_0 != -1) {

OrderSelect(l_ticket_0, SELECT_BY_TICKET);

l_bool_4 = OrderModify(OrderTicket(), OrderOpenPrice(), g_price_452, OrderOpenPrice() + TakeProfit * gd_420, 0);

}

} else {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Bid – StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Bid > g_price_1208) g_price_452 = 0;

if (Bid > g_price_1256 && Bid < g_price_1208) g_price_452 = g_price_1280;

if (Bid > g_price_1200 && Bid < g_price_1256) g_price_452 = g_price_1280;

if (Bid > g_price_1248 && Bid < g_price_1200) g_price_452 = g_price_1280;

if (Bid > g_price_1192 && Bid < g_price_1248) g_price_452 = g_price_1280;

if (Bid > g_price_1240 && Bid < g_price_1192) g_price_452 = g_price_1280;

if (Bid > g_price_1360 && Bid < g_price_1240) g_price_452 = g_price_1280;

if (Bid < g_price_1360 && Bid > g_price_1232) g_price_452 = g_price_1280;

if (Bid < g_price_1232 && Bid > g_price_1264) g_price_452 = g_price_1280;

if (Bid < g_price_1264 && Bid > g_price_1224) g_price_452 = g_price_1280;

if (Bid < g_price_1224 && Bid > g_price_1272) g_price_452 = g_price_1280;

if (Bid < g_price_1272 && Bid > g_price_1216) g_price_452 = g_price_1280;

if (Bid < g_price_1216 && Bid > g_price_1280) g_price_452 = g_price_1280;

if (Bid < g_price_1280) g_price_452 = 0;

}

l_ticket_0 = MyOrderSend(Symbol(), 0, LotSize, Bid, g_price_452, Bid + TakeProfit * gd_420, “”, gi_320);

}

} else {

if (!UseInstantOrder) {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Ask + StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Ask > g_price_1208) g_price_452 = 0;

if (Ask > g_price_1256 && Ask < g_price_1208) g_price_452 = g_price_1208;

if (Ask > g_price_1200 && Ask < g_price_1256) g_price_452 = g_price_1208;

if (Ask > g_price_1248 && Ask < g_price_1200) g_price_452 = g_price_1208;

if (Ask > g_price_1192 && Ask < g_price_1248) g_price_452 = g_price_1208;

if (Ask > g_price_1240 && Ask < g_price_1192) g_price_452 = g_price_1208;

if (Ask > g_price_1360 && Ask < g_price_1240) g_price_452 = g_price_1208;

if (Ask < g_price_1360 && Ask > g_price_1232) g_price_452 = g_price_1208;

if (Ask < g_price_1232 && Ask > g_price_1264) g_price_452 = g_price_1208;

if (Ask < g_price_1264 && Ask > g_price_1224) g_price_452 = g_price_1208;

if (Ask < g_price_1224 && Ask > g_price_1272) g_price_452 = g_price_1208;

if (Ask < g_price_1272 && Ask > g_price_1216) g_price_452 = g_price_1208;

if (Ask < g_price_1216 && Ask > g_price_1280) g_price_452 = g_price_1208;

if (Ask < g_price_1280) g_price_452 = 0;

}

if (!UsePendingOrder) l_ticket_0 = MyOrderSend(Symbol(), 1, LotSize, Ask, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

else {

l_ticket_0 = MyOrderSend(Symbol(), 1, LotSize, Ask, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

l_ticket_0 = MyOrderSend(Symbol(), 3, LotSize, Ask + PendingPoint * gd_420, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

}

if (l_ticket_0 != -1) {

OrderSelect(l_ticket_0, SELECT_BY_TICKET);

l_bool_4 = OrderModify(OrderTicket(), OrderOpenPrice(), g_price_452, OrderOpenPrice() – TakeProfit * gd_420, 0);

}

} else {

if (!UseAutoSL && StopLoss != 0.0) g_price_452 = Ask + StopLoss * gd_420;

if (!UseAutoSL && StopLoss == 0.0) g_price_452 = 0;

if (UseAutoSL) {

if (Ask > g_price_1208) g_price_452 = 0;

if (Ask > g_price_1256 && Ask < g_price_1208) g_price_452 = g_price_1208;

if (Ask > g_price_1200 && Ask < g_price_1256) g_price_452 = g_price_1208;

if (Ask > g_price_1248 && Ask < g_price_1200) g_price_452 = g_price_1208;

if (Ask > g_price_1192 && Ask < g_price_1248) g_price_452 = g_price_1208;

if (Ask > g_price_1240 && Ask < g_price_1192) g_price_452 = g_price_1208;

if (Ask > g_price_1360 && Ask < g_price_1240) g_price_452 = g_price_1208;

if (Ask < g_price_1360 && Ask > g_price_1232) g_price_452 = g_price_1208;

if (Ask < g_price_1232 && Ask > g_price_1264) g_price_452 = g_price_1208;

if (Ask < g_price_1264 && Ask > g_price_1224) g_price_452 = g_price_1208;

if (Ask < g_price_1224 && Ask > g_price_1272) g_price_452 = g_price_1208;

if (Ask < g_price_1272 && Ask > g_price_1216) g_price_452 = g_price_1208;

if (Ask < g_price_1216 && Ask > g_price_1280) g_price_452 = g_price_1208;

if (Ask < g_price_1280) g_price_452 = 0;

}

if (!UsePendingOrder) l_ticket_0 = MyOrderSend(Symbol(), 1, LotSize, Ask, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

else {

l_ticket_0 = MyOrderSend(Symbol(), 1, LotSize, Ask, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

l_ticket_0 = MyOrderSend(Symbol(), 3, LotSize, Ask + PendingPoint * gd_420, g_price_452, Ask – TakeProfit * gd_420, “”, gi_320);

}

}

}

}

gd_372 -= gd_348 * gd_420;

gd_380 = gd_372 + (gd_348 + MaxOrderPerGrid) * gd_420;

gi_396 = FALSE;

gi_400 = TRUE;

}

if (Ask <= gd_388 && gi_396) {

gd_388 -= gd_348 * gd_420;

gd_364 -= gd_348 * gd_420;

}

if (Bid >= gd_380 && gi_400) {

gd_380 += gd_348 * gd_420;

gd_372 += gd_348 * gd_420;

}

CheckTargetClosed();

doHUD(0);

gi_412 = FALSE;

GlobalVariableSet(“xxx” + gi_320, gi_404);

return (0);

}

int doHUD(bool ai_0) {

int li_4 = gi_316;

int l_count_8 = 1;

WaterMark(0, “xxx, Version ” + “xxx” + ” ” + “2010”, 0, 3, Fuchsia);

MyComment(gi_412, 3, 2, ” “, ” “, Yellow, Yellow, 20);

MyComment(gi_412, li_4, l_count_8, “User Status”, “Connect”, gi_332, Yellow, gi_328);

l_count_8++;

if (gi_324) {

li_4 = gi_316;

MyComment(gi_412, li_4, l_count_8, “Daily Range”, DoubleToStr(gd_428, 0) + ” pips”, gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Monthly Range”, DoubleToStr(gd_436, 0) + ” pips”, gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Max Order/Grid”, MaxOrderPerGrid, gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Take Profit”, TakeProfit + ” pips”, gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Lot Size”, DoubleToStr(LotSize, 2), gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “LotsTraded”, DoubleToStr(gd_540, 2), gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “MaximumLots”, DoubleToStr(MaximumLots, 2), gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Balance”, “$” + DoubleToStr(AccountBalance(), 2), gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Equity”, “$” + DoubleToStr(AccountEquity(), 2), gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Step Gain Profit”, “$” + DoubleToStr(StepGainProfit, 2), gi_332, C’0xD9,0xF8,0xA3′, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “ProfitRollover”, “$” + DoubleToStr(ProfitRollover, 2), gi_332, C’0xD9,0xF8,0xA3′, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Free Margin”, “$” + DoubleToStr(AccountFreeMargin(), 2), gi_332, C’0xAF,0xA3,0xF8′, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Target Rollover”, “$” + DoubleToStr(gd_200, 2), gi_332, C’0xAF,0xA3,0xF8′, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Target Akhir”, “$” + DoubleToStr(TargetAkhir, 2), gi_332, C’0x23,0xFF,0x00′, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Current Profit”, “$” + DoubleToStr(AccountProfit(), 2), gi_332, gi_336, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “”, gsa_288[gi_408], gi_332, Yellow, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Buy Traded”, CheckOpenPositionsBuy(), gi_332, C’0xE9,0x00,0x00′, gi_328);

l_count_8++;

MyComment(gi_412, li_4, l_count_8, “Sell Traded”, CheckOpenPositionsSell(), gi_332, C’0x37,0xFF,0x00′, gi_328);

l_count_8++;

}

if (ai_0) for (l_count_8 = 0; l_count_8 < 10; l_count_8++) MyComment(gi_412, li_4, l_count_8, ” “, ” “, gi_332, gi_336, gi_328);

ObjectsRedraw();

return (0);

}

int CloseAllTrades(int ai_0, int ai_unused_4) {

int l_count_8;

int l_error_12;

int li_16 = 4;

int li_20 = 5;

int l_ord_total_24 = OrdersTotal();

gd_540 = 0;

string ls_28 = “xxx” + “-” + Symbol() + “>>CloseAllTrades”;

for (int l_pos_36 = l_ord_total_24 – 1; l_pos_36 >= 0; l_pos_36–) {

if (OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES)) {

if (OrderSymbol() == Symbol()) {

l_count_8 = 0;

while (l_count_8 < li_16) {

switch (OrderType()) {

case OP_BUY:

if (ai_0 == 0 || ai_0 == 2) {

RefreshRates();

OrderClose(OrderTicket(), OrderLots(), Bid, 0, White);

}

break;

case OP_SELL:

if (ai_0 == 0 || ai_0 == 1) {

RefreshRates();

OrderClose(OrderTicket(), OrderLots(), Ask, 0, White);

}

break;

case OP_BUYLIMIT:

case OP_BUYSTOP:

, Digits) + ” ” + DoubleToStr(a_price_36, Digits) + ” <” + a_comment_44 + “> ” + ” “, 1, 0, 0, 0, 1);

if (!(l_error_60 == 138/* REQUOTE */) && !(l_error_60 == 129/* INVALID_PRICE */))

if (l_error_60 == 146/* TRADE_CONTEXT_BUSY */) li_76 = 10;

MySleep(li_80);

l_ticket_56 = -1;

}

}

return (l_ticket_56);

}

int WaterMark(string a_name_0, string a_text_8, int a_window_16, int a_corner_20, color a_color_24) {

int l_x_28 = 10;

int l_y_32 = 2;

ObjectCreate(a_name_0, OBJ_LABEL, a_window_16, 0, 0);

ObjectSetText(a_name_0, a_text_8, 10, “Times New Roman Bold Italic”, a_color_24);

ObjectSet(a_name_0, OBJPROP_CORNER, a_corner_20);

ObjectSet(a_name_0, OBJPROP_XDISTANCE, l_x_28);

ObjectSet(a_name_0, OBJPROP_YDISTANCE, l_y_32);

ObjectsRedraw();

return (0);

}

int MyComment(bool ai_0, int a_corner_4, int ai_8, string a_text_12, string a_text_20, color a_color_28, color a_color_32, int ai_36) {

int l_fontsize_40;

int l_x_44;

int l_x_48;

int li_52 = 10;

int l_fontsize_56 = 10;

if (ai_36 > li_52) l_fontsize_40 = ai_36;

else l_fontsize_40 = li_52;

if (a_corner_4 == 0 || a_corner_4 == 2) {

l_x_44 = 5;

l_x_48 = 100;

} else {

l_x_44 = 70;

l_x_48 = 5;

}

int l_y_60 = 15 * ai_8;

if (ai_0) {

ObjectCreate(“cL” + a_corner_4 + ai_8, OBJ_LABEL, 0, 0, 0);

ObjectSetText(“cL” + a_corner_4 + ai_8, a_text_12, l_fontsize_56, “Arial Bold”, a_color_28);

ObjectSet(“cL” + a_corner_4 + ai_8, OBJPROP_CORNER, a_corner_4);

ObjectSet(“cL” + a_corner_4 + ai_8, OBJPROP_XDISTANCE, l_x_44);

ObjectSet(“cL” + a_corner_4 + ai_8, OBJPROP_YDISTANCE, l_y_60);

ObjectCreate(“cD” + a_corner_4 + ai_8, OBJ_LABEL, 0, 0, 0);

ObjectSet(“cD” + a_corner_4 + ai_8, OBJPROP_CORNER, a_corner_4);

ObjectSet(“cD” + a_corner_4 + ai_8, OBJPROP_XDISTANCE, l_x_48);

ObjectSet(“cD” + a_corner_4 + ai_8, OBJPROP_YDISTANCE, l_y_60);

}

ObjectSetText(“cD” + a_corner_4 + ai_8, a_text_20, l_fontsize_40, “Arial Bold”, a_color_32);

ObjectsRedraw();

return (0);

}

int GetMonthlyRange(int ai_0) {

double l_ihigh_4;

double l_ilow_12;

bool li_20 = FALSE;

int l_index_24 = 0;

int l_count_28 = 0;

double ld_ret_32 = 0;

if (ai_0 == 0) return (0);

int l_month_40 = TimeMonth(Time[0]);

while (!li_20) {

if (TimeMonth(Time[l_index_24]) != l_month_40) {

l_ihigh_4 = iHigh(Symbol(), PERIOD_MN1, iBarShift(Symbol(), PERIOD_MN1, Time[l_index_24]));

l_ilow_12 = iLow(Symbol(), PERIOD_MN1, iBarShift(Symbol(), PERIOD_MN1, Time[l_index_24]));

ld_ret_32 += (l_ihigh_4 – l_ilow_12) / gd_420;

l_count_28++;

if (l_count_28 == ai_0) li_20 = TRUE;

}

l_month_40 = TimeMonth(Time[l_index_24]);

if (l_index_24 < Bars – 1) l_index_24++;

else li_20 = TRUE;

}

ld_ret_32 /= ai_0;

return (ld_ret_32);

}

int GetDailyRange(int ai_0) {

double l_ihigh_4;

double l_ilow_12;

bool li_20 = FALSE;

int l_index_24 = 0;

int l_count_28 = 0;

double ld_ret_32 = 0;

int l_day_40 = TimeDay(Time[0]);

while (!li_20) {

if (TimeDay(Time[l_index_24]) != l_day_40 && TimeDayOfWeek(Time[l_index_24]) != 0) {

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

return (1);

}

if (ControlTimeOfDayNOTTrades && IsTradeTime(TimeofDayNOTtoTradesStart1, TimeofDayNOTtoTradesEnd1) || IsTradeTime(TimeofDayNOTtoTradesStart2, TimeofDayNOTtoTradesEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesStart3, TimeofDayNOTtoTradesEnd3) || IsTradeTime(TimeofDayNOTtoTradesStart4, TimeofDayNOTtoTradesEnd4) || IsTradeTime(TimeofDayNOTtoTradesStart5, TimeofDayNOTtoTradesEnd5) ||

IsTradeTime(TimeofDayNOTtoTradesStart6, TimeofDayNOTtoTradesEnd6) || IsTradeTime(TimeofDayNOTtoTradesStart7, TimeofDayNOTtoTradesEnd7) || IsTradeTime(TimeofDayNOTtoTradesStart8, TimeofDayNOTtoTradesEnd8) ||

IsTradeTime(TimeofDayNOTtoTradesStart9, TimeofDayNOTtoTradesEnd9) || IsTradeTime(TimeofDayNOTtoTradesStart10, TimeofDayNOTtoTradesEnd10)) {

Comment(“No Trade”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesSunStart1, TimeofDayNOTtoTradesSunEnd1) || IsTradeTime(TimeofDayNOTtoTradesSunStart2, TimeofDayNOTtoTradesSunEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesSunStart3, TimeofDayNOTtoTradesSunEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesMonStart1, TimeofDayNOTtoTradesMonEnd1) || IsTradeTime(TimeofDayNOTtoTradesMonStart2, TimeofDayNOTtoTradesMonEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesMonStart3, TimeofDayNOTtoTradesMonEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesTueStart1, TimeofDayNOTtoTradesTueEnd1) || IsTradeTime(TimeofDayNOTtoTradesTueStart2, TimeofDayNOTtoTradesTueEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesTueStart3, TimeofDayNOTtoTradesTueEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesWedStart1, TimeofDayNOTtoTradesWedEnd1) || IsTradeTime(TimeofDayNOTtoTradesWedStart2, TimeofDayNOTtoTradesWedEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesWedStart3, TimeofDayNOTtoTradesWedEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesThursStart1, TimeofDayNOTtoTradesThursEnd1) || IsTradeTime(TimeofDayNOTtoTradesThursStart2, TimeofDayNOTtoTradesThursEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesThursStart3, TimeofDayNOTtoTradesThursEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesFriStart1, TimeofDayNOTtoTradesFriEnd1) || IsTradeTime(TimeofDayNOTtoTradesFriStart2, TimeofDayNOTtoTradesFriEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesFriStart3, TimeofDayNOTtoTradesFriEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

if (AvoidNews && IsAvoidDay(AvoidNewsDaysOfWeekToTrade) && IsTradeTime(TimeofDayNOTtoTradesFriStart1, TimeofDayNOTtoTradesFriEnd1) || IsTradeTime(TimeofDayNOTtoTradesFriStart2, TimeofDayNOTtoTradesFriEnd2) ||

IsTradeTime(TimeofDayNOTtoTradesFriStart3, TimeofDayNOTtoTradesFriEnd3)) {

Comment(“Avoid News”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

if (AccountProfit() > 0.0 || AccountProfit() > TutupFloatingNoTrade) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

return (0);

}

Comment(“Yes Trade”,

“\nAccount : “, AccountNumber(), “—“, AccountName(),

“\nStopLoss : “, StopLoss,

“\nTarget Profit-1 :”, FreeMargin + 1.0 * StepGainProfit,

“\nTarget Profit-2 :”, FreeMargin + 2.0 * StepGainProfit,

“\nTarget Profit-3 :”, FreeMargin + 3.0 * StepGainProfit,

“\nTarget Profit-4 :”, FreeMargin + 4.0 * StepGainProfit,

“\nTarget Profit-5 :”, FreeMargin + 5.0 * StepGainProfit,

“\nTarget Profit-6 :”, FreeMargin + 6.0 * StepGainProfit,

“\nTarget Profit-7 :”, FreeMargin + 7.0 * StepGainProfit,

“\nTarget Profit-8 :”, FreeMargin + 8.0 * StepGainProfit,

“\nTarget Profit-9 :”, FreeMargin + 9.0 * StepGainProfit,

“\nTarget Profit-10 :”, FreeMargin + 10.0 * StepGainProfit,

“\nTarget Profit-11 :”, FreeMargin + 11.0 * StepGainProfit,

“\nTarget Profit-12 :”, FreeMargin + 12.0 * StepGainProfit,

“\nTarget Profit-13 :”, FreeMargin + 13.0 * StepGainProfit,

“\nTarget Profit-14 :”, FreeMargin + 14.0 * StepGainProfit,

“\nTarget Profit-15 :”, FreeMargin + 15.0 * StepGainProfit,

“\nTarget Profit-16 :”, FreeMargin + 16.0 * StepGainProfit,

“\nTarget Profit-17 :”, FreeMargin + 17.0 * StepGainProfit,

“\nTarget Profit-18 :”, FreeMargin + 18.0 * StepGainProfit,

“\nTarget Profit-19 :”, FreeMargin + 19.0 * StepGainProfit,

“\nTarget Profit-20 :”, FreeMargin + 20.0 * StepGainProfit);

return (1);

}

void CurrentLot() {

gd_540 += LotSize;

}

void CheckTargetClosed() {

if (AccountProfit() > StepGainProfit) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

}

if (UseTargetRollover) {

if (AccountEquity() – FreeMargin > ProfitRollover) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

FreeMargin = AccountBalance();

gd_200 = AccountBalance() + ProfitRollover;

}

}

if (AccountEquity() > TargetAkhir) {

CloseAllTrades(1, gi_320);

CloseAllTrades(2, gi_320);

gi_80 = FALSE;

return;

}

}

int HandleOpenPositions() {

int l_ticket_4;

double l_ord_lots_12;

for (int l_pos_0 = OrdersTotal() – 1; l_pos_0 >= 0; l_pos_0–) {

OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);

if (OrderSymbol() == Symbol()) {

if (OrderMagicNumber() == gi_320) {

l_ticket_4 = OrderTicket();

l_ord_lots_12 = OrderLots();

if (OrderType() == OP_BUY) HandleTrailingStop(0, l_ticket_4, OrderOpenPrice(), OrderStopLoss(), OrderTakeProfit());

if (OrderType() == OP_SELL) HandleTrailingStop(1, l_ticket_4, OrderOpenPrice(), OrderStopLoss(), OrderTakeProfit());

}

}

}

return (0);

}

void HandleTrailingStop(int ai_0, int ai_4, double ad_8, double ad_16, double ad_24) {

Immediate_TrailingStop(ai_0, ai_4, ad_8, ad_16, ad_24);

}

void Immediate_TrailingStop(int ai_0, int ai_unused_4, double ad_unused_8, double ad_unused_16, double ad_unused_24) {

double l_point_40 = MarketInfo(Symbol(), MODE_POINT);

if (ai_0 == 0) {

if (TrailingStop > 0.0) {

if (Bid – OrderOpenPrice() > Point * TrailingStop) {

if (OrderStopLoss() < Bid – Point * TrailingStop) {

OrderModify(OrderTicket(), OrderOpenPrice(), Bid – Point * TrailingStop, OrderTakeProfit(), 0, Green);

return;

}

}

}

}

if (ai_0 == 1) {

if (TrailingStop > 0.0) {

if (OrderOpenPrice() – Ask > Point * TrailingStop)

if (OrderStopLoss() > Ask + Point * TrailingStop || OrderStopLoss() == 0.0) OrderModify(OrderTicket(), OrderOpenPrice(), Ask + Point * TrailingStop, OrderTakeProfit(), 0, Red);

}

}

}

int CheckOpenPositionsBuy() {

int l_count_8 = 0;

int l_ord_total_4 = OrdersTotal();

for (int l_pos_0 = OrdersTotal() – 1; l_pos_0 >= 0; l_pos_0–) {

OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);

if (OrderSymbol() == Symbol())

if (OrderType() == OP_BUY) l_count_8++;

}

return (l_count_8);

}

int CheckOpenPositionsSell() {

int l_count_8 = 0;

int l_ord_total_4 = OrdersTotal();

for (int l_pos_0 = OrdersTotal() – 1; l_pos_0 >= 0; l_pos_0–) {

OrderSelect(l_pos_0, SELECT_BY_POS, MODE_TRADES);

if (OrderSymbol() == Symbol())

if (OrderType() == OP_SELL) l_count_8++;

}

return (l_count_8);

}

void AverageStrategy() {

if (CheckOpenPositionsBuy() > CheckOpenPositionsSell() + Selisih) {

gi_548 = TRUE;

gi_552 = FALSE;

}

if (CheckOpenPositionsSell() > CheckOpenPositionsBuy() + Selisih) {

gi_548 = FALSE;

gi_552 = TRUE;

}

if (CheckOpenPositionsSell() == CheckOpenPositionsBuy()) {

gi_548 = TRUE;

gi_552 = TRUE;

}

}

void ComputeDayIndices(int ai_0, int ai_4, int &ai_8, int &ai_12, int &ai_16) {

int li_20;

int li_24;

int li_28;

int li_32 = ai_0 – ai_4;

int li_36 = 3600 * li_32;

int li_40 = 1440;

int li_44 = li_40 / Period();

int l_day_of_week_48 = TimeDayOfWeek(Time[0] – li_36);

int li_52 = -1;

ai_8 = 0;

ai_12 = 0;

ai_16 = 0;

switch (l_day_of_week_48) {

case 6:

case 0:

li_52 = 5;

break;

case 1: break;

default:

li_52 = l_day_of_week_48 – 1;

}

if (gi_1456) {

Print(“Dayofweektoday= “, l_day_of_week_48);

Print(“Dayofweekyesterday= “, li_52);

}

for (int li_60 = 1; li_60 <= li_44 + 1; li_60++) {

li_20 = Time[li_60] – li_36;

if (TimeDayOfWeek(li_20) != l_day_of_week_48) {

ai_8 = li_60 – 1;

break;

}

}

for (int l_count_64 = 0; l_count_64 <= li_44 * 2 + 1; l_count_64++) {

li_24 = Time[li_60 + l_count_64] – li_36;

if (TimeDayOfWeek(li_24) == li_52) {

ai_16 = li_60 + l_count_64;

break;

}

}

for (l_count_64 = 1; l_count_64 <= li_44; l_count_64++) {

li_28 = Time[ai_16 + l_count_64] – li_36;

if (TimeDayOfWeek(li_28) != li_52) {

ai_12 = ai_16 + l_count_64 – 1;

break;

}

}

if (gi_1456) {

Print(“Dest time zone\’s current day starts:”, TimeToStr(Time[ai_8]), ” (local time), idxbar= “, ai_8);

Print(“Dest time zone\’s previous day starts:”, TimeToStr(Time[ai_12]), ” (local time), idxbar= “, ai_12);

Print(“Dest time zone\’s previous day ends:”, TimeToStr(Time[ai_16]), ” (local time), idxbar= “, ai_16);

}

}

bool LookupLiveAccountNumbers() {

if (AccountNumber() == 102257) return (TRUE);

if (AccountNumber() == 27988) return (TRUE);

if (AccountNumber() == 20882122) return (TRUE);

if (AccountNumber() == 245417) return (TRUE);

if (AccountNumber() == 801744) return (TRUE);

if (AccountNumber() == 254133) return (TRUE);

if (AccountNumber() == 222781) return (TRUE);

if (AccountNumber() == 7013077) return (TRUE);

if (AccountNumber() == 246524) return (TRUE);

if (AccountNumber() == 248031) return (TRUE);

if (AccountNumber() == 258300) return (TRUE);

if (AccountNumber() == 258474) return (TRUE);

if (AccountNumber() == 258475) return (TRUE);

if (AccountNumber() == 81784) return (TRUE);

if (AccountNumber() == 248280) return (TRUE);

if (AccountNumber() == 261450) return (TRUE);

if (AccountNumber() == 262020) return (TRUE);

if (AccountNumber() == 250318) return (TRUE);

if (AccountNumber() == 251263) return (TRUE);

if (AccountNumber() == 250679) return (TRUE);

if (AccountNumber() == 250101) return (TRUE);

if (AccountNumber() == 259570) return (TRUE);

if (AccountNumber() == 259952) return (TRUE);

if (AccountNumber() == 259962) return (TRUE);

if (AccountNumber() == 259970) return (TRUE);

if (AccountNumber() == 259974) return (TRUE);

if (AccountNumber() == 249764) return (TRUE);

if (AccountNumber() == 259711) return (TRUE);

if (AccountNumber() == 259719) return (TRUE);

if (AccountNumber() == 259721) return (TRUE);

if (AccountNumber() == 259722) return (TRUE);

if (AccountNumber() == 259724) return (TRUE);

if (AccountNumber() == 46512) return (TRUE);

if (AccountNumber() == 252510) return (TRUE);

if (AccountNumber() == 254108) return (TRUE);

if (AccountNumber() == 261912) return (TRUE);

if (AccountNumber() == 255002) return (TRUE);

if (AccountNumber() == 255150) return (TRUE);

if (AccountNumber() == 255608) return (TRUE);

if (AccountNumber() == 262101) return (TRUE);

if (AccountNumber() == 233176) return (TRUE);

if (AccountNumber() == 271739) return (TRUE);

if (AccountNumber() == 256574) return (TRUE);

if (AccountNumber() == 256607) return (TRUE);

if (AccountNumber() == 256888) return (TRUE);

if (AccountNumber() == 257048) return (TRUE);

if (AccountNumber() == 20896459) return (TRUE);

if (AccountNumber() == 20895605) return (TRUE);

if (AccountNumber() == 20895399) return (TRUE);

if (AccountNumber() == 258743) return (TRUE);

if (AccountNumber() == 20897099) return (TRUE);

if (AccountNumber() == 260631) return (TRUE);

if (AccountNumber() == 261977) return (TRUE);

if (AccountNumber() == 20897099) return (TRUE);

if (AccountNumber() == 20897444) return (TRUE);

if (AccountNumber() == 20897570) return (TRUE);

if (AccountNumber() == 5425) return (TRUE);

if (AccountNumber() == 5437) return (TRUE);

if (AccountNumber() == 5460) return (TRUE);

if (AccountNumber() == 428374) return (TRUE);

if (AccountNumber() == 189135) return (TRUE);

if (AccountNumber() == 175174) return (TRUE);

if (AccountNumber() == 240450) return (TRUE);

if (AccountNumber() == 251497) return (TRUE);

if (AccountNumber() == 251499) return (TRUE);

if (AccountNumber() == 251500) return (TRUE);

if (AccountNumber() == 252817) return (TRUE);

if (AccountNumber() == 252819) return (TRUE);

if (AccountNumber() == 252823) return (TRUE);

if (AccountNumber() == 252824) return (TRUE);

if (AccountNumber() == 252820) return (TRUE);

if (AccountNumber() == 252821) return (TRUE);

if (AccountNumber() == 258159) return (TRUE);

if (AccountNumber() == 260210) return (TRUE);

if (AccountNumber() == 287967) return (TRUE);

if (AccountNumber() == 287970) return (TRUE);

if (AccountNumber() == 287968) return (TRUE);

if (AccountNumber() == 7058418) return (TRUE);

if (AccountNumber() == 7058456) return (TRUE);

if (AccountNumber() == 124671) return (TRUE);

if (AccountNumber() == 124553) return (TRUE);

if (AccountNumber() == 123985) return (TRUE);

if (AccountNumber() == 287861) return (TRUE);

if (AccountNumber() == 36609) return (TRUE);

if (AccountNumber() == 124877) return (TRUE);

if (AccountNumber() == 125147) return (TRUE);

if (AccountNumber() == 288796) return (TRUE);

if (AccountNumber() == 239006) return (TRUE);

if (AccountNumber() == 125370) return (TRUE);

if (AccountNumber() == 7059855) return (TRUE);

if (AccountNumber() == 239113) return (TRUE);

if (AccountNumber() == 288251) return (TRUE);

if (AccountNumber() == 32213) return (TRUE);

if (AccountNumber() == 32312) return (TRUE);

if (AccountNumber() == 37105) return (TRUE);

if (AccountNumber() == 32483) return (TRUE);

if (AccountNumber() == 174758) return (TRUE);

if (AccountNumber() == 239525) return (TRUE);

if (AccountNumber() == 32237) return (TRUE);

if (AccountNumber() == 125749) return (TRUE);

if (AccountNumber() == 125431) return (TRUE);

if (AccountNumber() == 125147) return (TRUE);

if (AccountNumber() == 124671) return (TRUE);

if (AccountNumber() == 123985) return (TRUE);

if (AccountNumber() == 154361) return (TRUE);

if (AccountNumber() == 169490) return (TRUE);

if (AccountNumber() == 290872) return (TRUE);

if (AccountNumber() == 3605949) return (TRUE);

if (AccountNumber() == 239667) return (TRUE);

if (AccountNumber() == 239668) return (TRUE);

if (AccountNumber() == 290879) return (TRUE);

if (AccountNumber() == 126281) return (TRUE);

if (AccountNumber() == 126320) return (TRUE);

if (AccountNumber() == 290858) return (TRUE);

if (AccountNumber() == 15707) return (TRUE);

if (AccountNumber() == 32486) return (TRUE);

if (AccountNumber() == 290198) return (TRUE);

return (FALSE);

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s