Jump to content

EA Masyuk V3


Recommended Posts

  • 5 weeks later...

Re: EA Masyuk V3

 

Please Upload again. masyuk V3

i just had Masyuk V2 EA.

here the script.

 

#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);

}

Link to comment
Share on other sites

Re: EA Masyuk V3

 

Hi traders,

 

Good day,

 

I mentioned this Ea is so great. It needs only some right settings.

 

I will post my settings after I finish my work today so I guess you can run it on demo by the next market opening.

 

Best wishes for all.

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Re: EA Masyuk V3

 

Hi guys,

 

I'm sorry for being late.

 

Here is the settings:

 

Optimize Setting Masyuk V3

 

LOT = 0.1

PIPS = 31

TP = 45

MULTIPLIER = 1.799

MAXTRADE = 9

 

ACC MIKRO SHJ

Modal Min = 500usd (start 1sen)

 

PAIR : GU,AU,EU,UC,UJ,EJ,NZDUSD (1 pair shj!)

TIME FRAME : 30M

 

 

SETTING UTK EURUSD(bg yg xde modal bsr je)

LOT = 0.1

PIPS = 20

TP = 35

MULTIPLIER = 1.667

MAXTRADE = 9

EU TF1H

MIN MODAL = 32usd

 

I took these setting from a friend in other forum.

 

I'm still working on this EA. I need to modify its code. There is some sort of problem when account equity goes higher.

 

Remember to use it only on demo account first till you feel it is ok to go real.

 

It is your responsibility to trade real account using this EA as far as till now because I still can't grant it.

 

I will come back to post any update regarding this EA.

 

Best wishes,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Re: EA Masyuk V3

 

Ehm,.. looks a Martingle System, double lot every wrong position,...

@scarface what is a different of MULTIPLIER setting? (like pipstep?) example pls.

 

thx

 

multiples is the martigale level.

 

multipler = 2 means

 

1, 2, 4, 6, 8, etv

 

multiplier = 1 means

 

1, 1, 1, 1, 1, etc

 

multiplier = 3 means

 

1, 3, 9, 27 etc

 

multiplier of 1.5 = previous lot size times 1.5

"It is inconceivable that anyone will divulge a truly effective get-rich scheme for the price of a book."

Victor Niederhoffer (1943–), US hedge fund manager and statistician

Link to comment
Share on other sites

Re: EA Masyuk V3

 

 

multiples is the martigale level.

 

multipler = 2 means

 

1, 2, 4, 6, 8, etv

 

multiplier = 1 means

 

1, 1, 1, 1, 1, etc

 

multiplier = 3 means

 

1, 3, 9, 27 etc

 

multiplier of 1.5 = previous lot size times 1.5

 

Thanks stormin for your explanation.

 

It is exactly as you said.

 

Best wishes,

a New Year 2011 has come, and the challenge has just started 8-)
Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

×
×
  • Create New...