Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

nak tanye la.. average boleh dapat berape buat forex ni??
fuhyooo......kira dah terrer la tuh, ketawakan coding ea lain lepas tu cakap jangan beli forexhacked.
ea masyuk pun ciplak gak dari ea free...touch up sikit lepas tu jual USD80....
bukti....ini sebahagian coding dari 3 ea masyuk/forexhacked/blessing.....
.....so moral of the story is...kalau ilmu kat dada tu ciput je, jangan gelakkan org lain.
//+------------------------------------------------------------------+
//| bless_FiFtHeLeMeNt_noTG_1.6.1 |
//| Copyright © 2007, FiFtHeLeMeNt |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, FiFtHeLeMeNt."
#property link "http://www.irxfx.com"
extern int MinGS=40;
extern int TP=50;
extern double lot=0.1;
extern double lot_Exp=1.5;
extern int MaxTrades=7;
double MaxAccountMargin = 0.0;
double MaxDrawDown = 0.0;
int magic;
double lot2;
datetime tob,tos; //Time Out Buy & Sell
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
int init()
{
if (Symbol() == "AUDCADm" || Symbol() == "AUDCAD") { magic = 211001; }
if (Symbol() == "AUDJPYm" || Symbol() == "AUDJPY") { magic = 211002; }
if (Symbol() == "AUDNZDm" || Symbol() == "AUDNZD") { magic = 211003; }
if (Symbol() == "AUDUSDm" || Symbol() == "AUDUSD") { magic = 211004; }
if (Symbol() == "CHFJPYm" || Symbol() == "CHFJPY") { magic = 211005; }
if (Symbol() == "EURAUDm" || Symbol() == "EURAUD") { magic = 211006; }
if (Symbol() == "EURCADm" || Symbol() == "EURCAD") { magic = 211007; }
if (Symbol() == "EURCHFm" || Symbol() == "EURCHF") { magic = 211008; }
if (Symbol() == "EURGBPm" || Symbol() == "EURGBP") { magic = 211009; }
if (Symbol() == "EURJPYm" || Symbol() == "EURJPY") { magic = 211010; }
if (Symbol() == "EURUSDm" || Symbol() == "EURUSD") { magic = 211011; }
if (Symbol() == "GBPCHFm" || Symbol() == "GBPCHF") { magic = 211012; }
if (Symbol() == "GBPJPYm" || Symbol() == "GBPJPY") { magic = 211013; }
if (Symbol() == "GBPUSDm" || Symbol() == "GBPUSD") { magic = 211014; }
if (Symbol() == "NZDJPYm" || Symbol() == "NZDJPY") { magic = 211015; }
if (Symbol() == "NZDUSDm" || Symbol() == "NZDUSD") { magic = 211016; }
if (Symbol() == "USDCHFm" || Symbol() == "USDCHF") { magic = 211017; }
if (Symbol() == "USDJPYm" || Symbol() == "USDJPY") { magic = 211018; }
if (Symbol() == "USDCADm" || Symbol() == "USDCAD") { magic = 211019; }
if (magic == 0) { magic = 211999; }
return (0);
return(0);
}
void OpenBuy()
{
int ticket,err;
if (!GlobalVariableCheck("InTrade")) {
GlobalVariableSet("InTrade", CurTime());
ticket = OrderSend(Symbol(),OP_BUY,lot2,Ask,1,0,Ask+TP*Point,"EA Order",magic,0,Red);
GlobalVariableDel("InTrade"); // clear lock indicator
}
}
void OpenSell()
{
int ticket,err;
if (!GlobalVariableCheck("InTrade")) {
GlobalVariableSet("InTrade", CurTime());
ticket = OrderSend(Symbol(),OP_SELL,lot2,Bid,1,0,Bid-TP*Point,"EA Order",magic,0,Red);
GlobalVariableDel("InTrade"); // clear lock indicator
}
}
void ManageBuy()
{
int lasttradetime = 0;
double lastopenprice=0;
double maxlots = 0;
double lasttp=0;
int lastordertype=-1;
int lastorderticket=0;
int y=0, lvl=0;
for (y = 0; y < OrdersTotal(); y++)
{
OrderSelect (y, SELECT_BY_POS, MODE_TRADES);
if ((OrderMagicNumber() != magic) || (OrderType()!=OP_BUY)) { continue; }
if (OrderOpenTime() > lasttradetime) {
lasttradetime = OrderOpenTime();
lastopenprice = OrderOpenPrice();
lastordertype=OrderType();
lastorderticket=OrderTicket();
lasttp=OrderTakeProfit();
}
lvl++;
if (OrderLots() > maxlots) { maxlots = OrderLots(); }
}
lot2=lot*MathPow(lot_Exp,lvl);
if (lvl==0) OpenBuy();
if ((lastopenprice-Ask>MinGS*Point) && (lvl<MaxTrades)) {
OpenBuy();
return(0);
}
for (y = 0; y < OrdersTotal(); y++)
{
OrderSelect (y, SELECT_BY_POS, MODE_TRADES);
if ((OrderMagicNumber() != magic) || (OrderType()!=OP_BUY) || (OrderTakeProfit()==lasttp) || (lasttp==0)) { continue; }
OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),lasttp,0,Red);
}
}
void ManageSell()
{
int lasttradetime = 0;
double lastopenprice=0;
double maxlots = 0;
double lasttp=0;
int lastordertype=-1;
int lastorderticket=0;
int y=0, lvl=0;
for (y = 0; y < OrdersTotal(); y++)
{
OrderSelect (y, SELECT_BY_POS, MODE_TRADES);
if ((OrderMagicNumber() != magic) || (OrderType()!=OP_SELL)) { continue; }
if (OrderOpenTime() > lasttradetime) {
lasttradetime = OrderOpenTime();
lastopenprice = OrderOpenPrice();
lastordertype=OrderType();
lastorderticket=OrderTicket();
lasttp=OrderTakeProfit();
}
lvl++;
if (OrderLots() > maxlots) { maxlots = OrderLots(); }
}
lot2=lot*MathPow(lot_Exp,lvl);
if (lvl==0) OpenSell();
if ((Bid-lastopenprice>MinGS*Point) && (lastopenprice>0) && (lvl<MaxTrades)) {
OpenSell();
return(0);
}
for (y = 0; y < OrdersTotal(); y++)
{
OrderSelect (y, SELECT_BY_POS, MODE_TRADES);
if ((OrderMagicNumber() != magic) || (OrderType()!=OP_SELL) || (OrderTakeProfit()==lasttp) || (lasttp==0)) { continue; }
OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),lasttp,0,Red);
}
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{if (Check() != 0)
//----
{
ManageBuy();
ManageSell();
ChartComment();
//----
return(0);
}
}
void ChartComment()
{
if (AccountMargin() > MaxAccountMargin)
MaxAccountMargin = AccountMargin();
if (AccountProfit() < MaxDrawDown)
MaxDrawDown = AccountProfit();
string dbalance = DoubleToStr(balanceDeviation(2), 2);
Comment ("MaxAccountMargin =",MaxAccountMargin,
"\nMaxDrawdown = ",MaxDrawDown,
"\nAccount Equity = ", AccountEquity(),
"\nFree Margin = ", AccountFreeMargin(),
"\nDrawdown : ", dbalance, "%\n");
}
int Check() {
return (1);
}
double balanceDeviation(int ai) {
double dret;
if (ai == 2) {
dret = (AccountEquity() / AccountBalance() - 1.0) / (-0.01);
if (dret > 0.0) return (dret);
return (0);
}
if (ai == 1) {
dret = 100.0 * (AccountEquity() / AccountBalance() - 1.0);
if (dret > 0.0) return (dret);
return (0);
}
return (0);
}
//+------------------------------------------------------------------+
#property copyright "MASYUK V2・
#property link "http://pipmaster.freehostia.com/forex"
extern double Lots = 0.01;
extern int Pips = 31;
extern double TakeProfit = 45.0;
extern double Multiplier = 1.899;
extern int MaxTrades = 10;
extern int LimitHourTrade = 23;
extern int LimitDayTrading = 5;
extern int slippage = 3;
int g_magic_120;
double g_lots_124;
int g_period_132 = 7;
int gi_136 = 0;
int g_ma_method_140 = MODE_LWMA;
int g_applied_price_144 = PRICE_WEIGHTED;
extern double Step = 0.25;
extern double Max = 0.2;
int gi_164;
int deinit() {
return (0);
}
int init() {
string ls_0 = "2009.12.31 00:00";
int l_str2time_8 = StrToTime(ls_0);
if (TimeCurrent() >= l_str2time_8) {
Alert("MASYUK V2 telah tamat tempoh. Email ke [email protected] untuk update terbaru");
return (0);
}
if (Symbol() == "AUDCADm" || Symbol() == "AUDCAD" || Symbol() == "AUDCAD.") g_magic_120 = 211001;
if (Symbol() == "AUDJPYm" || Symbol() == "AUDJPY" || Symbol() == "AUDJPY.") g_magic_120 = 211002;
if (Symbol() == "AUDNZDm" || Symbol() == "AUDNZD" || Symbol() == "AUDNZD.") g_magic_120 = 211003;
if (Symbol() == "AUDUSDm" || Symbol() == "AUDUSD" || Symbol() == "AUDUSD.") g_magic_120 = 211004;
if (Symbol() == "CHFJPYm" || Symbol() == "CHFJPY" || Symbol() == "CHFJPY.") g_magic_120 = 211005;
if (Symbol() == "EURAUDm" || Symbol() == "EURAUD" || Symbol() == "EURAUD.") g_magic_120 = 211006;
if (Symbol() == "EURCADm" || Symbol() == "EURCAD" || Symbol() == "EURCAD.") g_magic_120 = 211007;
if (Symbol() == "EURCHFm" || Symbol() == "EURCHF" || Symbol() == "EURCHF.") g_magic_120 = 211008;
if (Symbol() == "EURGBPm" || Symbol() == "EURGBP" || Symbol() == "EURGBP.") g_magic_120 = 211009;
if (Symbol() == "EURJPYm" || Symbol() == "EURJPY" || Symbol() == "EURJPY.") g_magic_120 = 211010;
if (Symbol() == "EURUSDm" || Symbol() == "EURUSD" || Symbol() == "EURUSD.") g_magic_120 = 211011;
if (Symbol() == "GBPCHFm" || Symbol() == "GBPCHF" || Symbol() == "GBPCHF.") g_magic_120 = 211012;
if (Symbol() == "GBPJPYm" || Symbol() == "GBPJPY" || Symbol() == "GBPJPY.") g_magic_120 = 211013;
if (Symbol() == "GBPUSDm" || Symbol() == "GBPUSD" || Symbol() == "GBPUSD.") g_magic_120 = 211014;
if (Symbol() == "NZDJPYm" || Symbol() == "NZDJPY" || Symbol() == "NZDJPY.") g_magic_120 = 211015;
if (Symbol() == "NZDUSDm" || Symbol() == "NZDUSD" || Symbol() == "NZDUSD.") g_magic_120 = 211016;
if (Symbol() == "USDCHFm" || Symbol() == "USDCHF" || Symbol() == "USDCHF.") g_magic_120 = 211017;
if (Symbol() == "USDJPYm" || Symbol() == "USDJPY" || Symbol() == "USDJPY.") g_magic_120 = 211018;
if (Symbol() == "USDCADm" || Symbol() == "USDCAD" || Symbol() == "USDCAD.") g_magic_120 = 211019;
if (g_magic_120 == 0) g_magic_120 = 211999;
gi_164 = MathRound((-MathLog(MarketInfo(Symbol(), MODE_LOTSTEP))) / 2.302585093);
return (0);
}
void OpenBuy() {
int l_ticket_0;
if (!GlobalVariableCheck("InTrade")) {
GlobalVariableSet("InTrade", TimeCurrent());
l_ticket_0 = OrderSend(Symbol(), OP_BUY, g_lots_124, Ask, slippage, 0, Ask + TakeProfit * Point, "MasyukBuy・, g_magic_120, 0, Blue);
GlobalVariableDel("InTrade");
}
}
void OpenSell() {
int l_ticket_0;
if (!GlobalVariableCheck("InTrade")) {
GlobalVariableSet("InTrade", TimeCurrent());
l_ticket_0 = OrderSend(Symbol(), OP_SELL, g_lots_124, Bid, slippage, 0, Bid - TakeProfit * Point, "MasyukSell・, g_magic_120, 0, Red);
GlobalVariableDel("InTrade");
}
}
void ManageBuy() {
int l_datetime_0 = 0;
double l_ord_open_price_4 = 0;
double l_ord_lots_12 = 0;
double l_ord_takeprofit_20 = 0;
int l_cmd_28 = -1;
int l_ticket_32 = 0;
int l_pos_36 = 0;
for (l_pos_36 = 0; l_pos_36 < OrdersTotal(); l_pos_36++) {
OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() != g_magic_120 || OrderType() != OP_BUY) continue;
if (OrderOpenTime() > l_datetime_0) {
l_datetime_0 = OrderOpenTime();
l_ord_open_price_4 = OrderOpenPrice();
l_cmd_28 = OrderType();
l_ticket_32 = OrderTicket();
l_ord_takeprofit_20 = OrderTakeProfit();
}
if (OrderLots() > l_ord_lots_12) l_ord_lots_12 = OrderLots();
}
double l_isar_40 = iSAR(NULL, 0, Step, Max, 0);
double l_ima_48 = iMA(NULL, 0, g_period_132, gi_136, g_ma_method_140, g_applied_price_144, 0);
int li_56 = MathRound(MathLog(l_ord_lots_12 / Lots) / MathLog(Multiplier)) + 1.0;
if (li_56 < 0) li_56 = 0;
g_lots_124 = NormalizeDouble(Lots * MathPow(Multiplier, li_56), gi_164);
if ((li_56 == 0 && l_isar_40 < l_ima_48 && DayOfWeek() < LimitDayTrading) || (li_56 == 0 && l_isar_40 < l_ima_48 && DayOfWeek() == LimitDayTrading && Hour() <= LimitHourTrade)) OpenBuy();
if (l_ord_open_price_4 - Ask > Pips * Point && li_56 < MaxTrades) {
OpenBuy();
return;
}
for (l_pos_36 = 0; l_pos_36 < OrdersTotal(); l_pos_36++) {
OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() != g_magic_120 || OrderType() != OP_BUY || OrderTakeProfit() == l_ord_takeprofit_20 || l_ord_takeprofit_20 == 0.0) continue;
OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), l_ord_takeprofit_20, 0, Red);
}
}
void ManageSell() {
int l_datetime_0 = 0;
double l_ord_open_price_4 = 0;
double l_ord_lots_12 = 0;
double l_ord_takeprofit_20 = 0;
int l_cmd_28 = -1;
int l_ticket_32 = 0;
int l_pos_36 = 0;
for (l_pos_36 = 0; l_pos_36 < OrdersTotal(); l_pos_36++) {
OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() != g_magic_120 || OrderType() != OP_SELL) continue;
if (OrderOpenTime() > l_datetime_0) {
l_datetime_0 = OrderOpenTime();
l_ord_open_price_4 = OrderOpenPrice();
l_cmd_28 = OrderType();
l_ticket_32 = OrderTicket();
l_ord_takeprofit_20 = OrderTakeProfit();
}
if (OrderLots() > l_ord_lots_12) l_ord_lots_12 = OrderLots();
}
double l_isar_40 = iSAR(NULL, 0, Step, Max, 0);
double l_ima_48 = iMA(NULL, 0, g_period_132, gi_136, g_ma_method_140, g_applied_price_144, 0);
int li_56 = MathRound(MathLog(l_ord_lots_12 / Lots) / MathLog(Multiplier)) + 1.0;
if (li_56 < 0) li_56 = 0;
g_lots_124 = NormalizeDouble(Lots * MathPow(Multiplier, li_56), gi_164);
if ((li_56 == 0 && l_isar_40 > l_ima_48 && DayOfWeek() < LimitDayTrading) || (li_56 == 0 && l_isar_40 > l_ima_48 && DayOfWeek() == LimitDayTrading && Hour() <= LimitHourTrade)) OpenSell();
if (Bid - l_ord_open_price_4 > Pips * Point && l_ord_open_price_4 > 0.0 && li_56 < MaxTrades) {
OpenSell();
return;
}
for (l_pos_36 = 0; l_pos_36 < OrdersTotal(); l_pos_36++) {
OrderSelect(l_pos_36, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() != g_magic_120 || OrderType() != OP_SELL || OrderTakeProfit() == l_ord_takeprofit_20 || l_ord_takeprofit_20 == 0.0) continue;
OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), l_ord_takeprofit_20, 0, Red);
}
}
int start() {
if (Check() != 0) {
ManageBuy();
ManageSell();
ChartComment();
return (0);
}
return (0);
}
void ChartComment() {
string l_dbl2str_0 = DoubleToStr(balanceDeviation(2), 2);
Comment(" \nMASYUK V2・",
"\nAccount Equity = ", AccountEquity(),
"\nFree Margin = ", AccountFreeMargin(),
"\nDrawdown : ", l_dbl2str_0, "%\n");
}
int Check() {
return (1);
}
double balanceDeviation(int ai_0) {
double ld_ret_4;
if (ai_0 == 2) {
ld_ret_4 = (AccountEquity() / AccountBalance() - 1.0) / (-0.01);
if (ld_ret_4 > 0.0) return (ld_ret_4);
return (0);
}
if (ai_0 == 1) {
ld_ret_4 = 100.0 * (AccountEquity() / AccountBalance() - 1.0);
if (ld_ret_4 > 0.0) return (ld_ret_4);
return (0);
}
return (0.0);
}