Jump to content

leonytham

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by leonytham

  1. dear friend,

     

    i am a martingale fans, and found a clean martingale+hedging EA.

     

    but like martingale 'way' --- gamble, i would like to increase trading frequent.

     

    This Martingale EA, is a price action EA, immediately open 2 orders (one is buy, one is sell). The TP order will closed and waiting for the losing order(s) to close before restart the cycle.

     

    anybody, could help to:

     

    1) add IMMEDIATELY reopen new-TP-order.

    (current version only open new TP-order AFTER ALL orders closed)

    example 8:15am = 0.1buy + 0.1sell + 0.2sell + 0.4sell,

    when 8.20am TP for sell, now have 0.1buy.

     

    can add IMMEDIATELY reopen new-TP-order, that is...

    example 8:15am = 0.1buy + 0.1sell + 0.2sell + 0.4sell,

    when 8.20am TP for sell, now have 0.1buy AND NEWLY opened 0.1sell.

     

    2) add profit_target_all_buy (total dollar OP_BUY reach and close the OP_BUY only)

    3) add profit_target_all_sell (total dollar OP_SELL reach and close the OP_SELL only)

    4) add stop_loss_total_in_order (when balance below DEFINED-SL, then close ALL orders)

     

    ==========================================================

     

    //+------------------------------------------------------------------+

    //| Martingale.mq4 |

    //| @abc |

    //| http://abc.com |

    //+------------------------------------------------------------------+

    #property copyright "abc"

    #property link "http://abc.com"

     

     

    extern int TakeProfit = 8;

    extern int PipStep = 8;

    extern double Lots = 0.1;

    extern double Multiply = 2.0;

    extern int MaxTrade = 11;

     

    string EAName = "Martingale";

    string EAComment = "Martingale";

    int magicbuy = 123;

    int magicsell = 321;

    double SetPoint = 0; // Variabel SetPoint for broker 4 or 5 digits

    int Slippage = 3;

     

    //+------------------------------------------------------------------+

    //| expert initialization function |

    //+------------------------------------------------------------------+

    int init()

    {

    //----

     

    SetBroker();

     

    //----

    return(0);

    }

    //+------------------------------------------------------------------+

    //| expert deinitialization function |

    //+------------------------------------------------------------------+

    int deinit()

    {

    //----

     

    //----

    return(0);

    }

    //+------------------------------------------------------------------+

    //| expert start function |

    //+------------------------------------------------------------------+

    int start()

    {

    //----

     

    int iTrade=0;

     

     

     

    Comment(EAName,"\nServer Time: ",Hour(),"\nPairs : ",Symbol(),"\nEquity : ",AccountEquity(),"\nBalance : ",AccountBalance()); // Tampilkan Nama EA di layar

     

    /* -- 0 opening order? starting FIRST order --*/

     

    if(OrdersTotal()==0)

    {

    OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, 0, Ask+TakeProfit*SetPoint, EAComment, magicbuy);

    OrderSend(Symbol(), OP_SELL, Lots, Bid, Slippage, 0, Bid-TakeProfit*SetPoint, EAComment, magicsell);

    }

     

     

     

    /* -- Martingale function starts --*/

    if(OrdersTotal()>=1)

    {

    GoMartingale();

    }

     

     

    //----

    return(0);

    }

    //+------------------------------------------------------------------+

     

    /*--managing 4 or 5 digits broker--*/

    void SetBroker()

    {

    if (Digits==3 || Digits==5) // Instruct 4 digits broker

    {SetPoint=Point*10;}

    else // Instruct 4 digits broker

    {SetPoint=Point;}

    }

     

    /*-- Function to start Martingale --*/

    void GoMartingale()

    {

    int iCount = 0;

    double LastOP = 0;

    double LastLots = 0;

    bool LastIsBuy = FALSE;

    int iTotalBuy = 0;

    int iTotalSell = 0;

    int Spread=0;

     

    Spread= MarketInfo(Symbol(), MODE_SPREAD);

     

     

    for(iCount=0;iCount<OrdersTotal();iCount++)

    {

     

    OrderSelect(iCount,SELECT_BY_POS,MODE_TRADES);

     

    if(OrderType()==OP_BUY && OrderSymbol()==Symbol() && OrderComment()==EAComment && OrderMagicNumber()==magicbuy)

    {

    if(LastOP==0) {LastOP=OrderOpenPrice();}

    if(LastOP>OrderOpenPrice()) {LastOP=OrderOpenPrice();}

    if(LastLots<OrderLots()) {LastLots=OrderLots();}

    LastIsBuy=TRUE;

    iTotalBuy++;

     

    /* Maximum trades */

    if(iTotalBuy==MaxTrade) {return(0);}

    }

     

    if(OrderType()==OP_SELL && OrderSymbol()==Symbol() && OrderComment()==EAComment && OrderMagicNumber()==magicsell)

    {

    if(LastOP==0) {LastOP=OrderOpenPrice();}

    if(LastOP<OrderOpenPrice()) {LastOP=OrderOpenPrice();}

    if(LastLots<OrderLots()) {LastLots=OrderLots();}

    LastIsBuy=FALSE;

    iTotalSell++;

     

    /* Maximum trades */

    if(iTotalBuy==MaxTrade) {return(0);}

    }

     

    }

     

    if(LastIsBuy)

    {

    if(Bid<=LastOP-(Spread*SetPoint)-(PipStep*SetPoint))

    {

    OrderSend(Symbol(), OP_BUY, Multiply*LastLots, Ask, Slippage, 0, Ask+TakeProfit*SetPoint, EAComment, magicbuy);

    ModifyTP();

    LastIsBuy=FALSE;

    return(0);

    }

    }

     

    else if(!LastIsBuy)

    {

    if(Ask>=LastOP+(Spread*SetPoint)+(PipStep*SetPoint ))

    {

    OrderSend(Symbol(), OP_SELL, Multiply*LastLots, Bid, Slippage, 0, Bid-TakeProfit*SetPoint, EAComment, magicsell);

    ModifyTP();

    return(0);

    }

    }

     

    }

     

    /*-- Align Take Profit to SAME point--*/

    void ModifyTP()

    {

    int iCount=0;

    double NewTP=0;

     

    /*- Taking LAST Take Profit point -*/

    for(iCount=0;iCount<OrdersTotal();iCount++)

    {

     

    OrderSelect(iCount,SELECT_BY_POS,MODE_TRADES);

     

    if(OrderType()==OP_BUY && OrderSymbol()==Symbol() && OrderComment()==EAComment && OrderMagicNumber()==magicbuy)

    {

    if(NewTP==0) {NewTP=OrderTakeProfit();}

    if(NewTP>OrderTakeProfit()) {NewTP=OrderTakeProfit();}

     

    }

     

    if(OrderType()==OP_SELL && OrderSymbol()==Symbol() && OrderComment()==EAComment && OrderMagicNumber()==magicsell)

    {

    if(NewTP==0) {NewTP=OrderTakeProfit();}

    if(NewTP<OrderTakeProfit()) {NewTP=OrderTakeProfit();}

    }

     

    }

     

    for(iCount=0;iCount<OrdersTotal();iCount++)

    {

     

    OrderSelect(iCount,SELECT_BY_POS,MODE_TRADES);

     

    if(OrderType()==OP_BUY && OrderSymbol()==Symbol() && OrderComment()==EAComment && OrderMagicNumber()==magicbuy)

    {

    OrderModify(OrderTicket(), OrderLots(), 0, NewTP, 0);

    }

     

    if(OrderType()==OP_SELL && OrderSymbol()==Symbol() && OrderComment()==EAComment && OrderMagicNumber()==magicsell)

    {

    OrderModify(OrderTicket(), OrderLots(), 0, NewTP, 0);

    }

     

    }

    }

  2. leonytham

     

    Please could you reupload the ebook as i would like to read his theory, he has now closed down his website due to no hedging rules in the USA but we still have it here in Europe.

     

    Thanks

    ST

     

    Dear ST_Fund,

    sorry i had deleted this ebook and system after uploaded..

    maybe other friends (whose had oredi downloaded earlier) could re-upload?

  3. Dear friend,

     

    I have a problem to solve this working Reverse Maringale EA...

    Hope somebody could help to make this EA opens OPPOSITE order after PROFIT (not after loss).

     

    This original Reverse Maringale EA works like below:

    EA immediately opens buy* order, with 0.1lot, TP40pips, SL30pips

    ---> if hit TP, EA opens new buy* order (with double lot size from 0.1, at 0.2, TP40pips, SL30pips)

    ---> if hit TP again, EA opens new buy* order (with double lot size from 0.2, at 0.4, TP40pips, SL30pips)...

    ---> HOWEVER, say after level 5, at lot size 1.6, hit SL, then EA resets & start again with BUY* 0.1lot TP40, SL30

     

    Would HOPE (any programmer) to help change the NEXT profit ---> to open at OPPOSITE order:

    EA immediately opens BUY* order, with 0.1lot, TP40pips, SL30pips

    ---> if hit TP, EA opens new SELL* order (with double lot size from 0.1, at 0.2, TP40pips, SL30pips)

    ---> if hit TP again, EA opens new BUY* order (with double lot size from 0.2, at 0.4, TP40pips, SL30pips)...

    ---> HOWEVER, say after level 5, at lot size 1.6, hit SL, then EA resets & start again with BUY* 0.1lot TP40, SL30

     

    Waiting for your help to open opposite order AFTER profit (still maintain buy/reset if loss )

     

    http://www.multiupload.com/8OSZXMPM14

  4. I had this system but its of no use.

     

    The manual tells to open long and short positions i.e hedge a currency,

    then close the losing one after a number of pips and close the profit one when it has more profit than the losing one.

     

    thats it this is the system

     

    you can check his blog also on the website

     

    agree.

    the idea based on to open a pair of hedge orders and "follow the trend + higher probability" before profit.

     

    example (the fixed spread factor is ignored for simplicity):

    1) Open position: 1 long (with TP=51, SL=50) + 1 short (with TP=51, SL=50)

    2) Let the market moves. If 1 long has touched SL, then MOST POSSIBLE the TP51 short will hit, then walap, 1pip profit. *** (what if market just so naughty and reverse exactly at SL point? smething to ponder)

    3) Repeat this 1) and 2) process, and collect 1 pip each time.

     

    credit to my good friend, ahchoy for sharing this ebook with me last year.. (only that i never tell him that i'm not so into this method)

     

    hXXp://www.multiupload.com/9AZDBLKSXH

  5. this King Steven EA appears to have VERY similar code / appearance with Ilan-Trio V1.45

    (only that King Steven had gain >1000%, backtest EURJPY 2july2010-11aug2010, before MC, with starting capital USD1,000, 0.5Lot, 1pips=1USD account)

     

    However, Ilan-Trio V1.45 MC (with same setting) just after gain 60% profit (lived for 5 days only).

     

    Maybe (if interested), can compare both EA / use Ilan-Trio to educate King Steven?

     

    http://img710.imageshack.us/img710/7632/kingsteven05lotusd1000e.gif

     

    Uploaded with ImageShack.us

     

    http://img687.imageshack.us/img687/4045/ilantrio14505lotusd1000.gif

     

    Uploaded with ImageShack.us

    Uploaded with ImageShack.us

  6. based on my (maybe inaccurate) observation, that Cable EA is opening the buy-limit and sell-limit at the safe price (after filtered with ATR), AND expecting the opened orders will hit TP or close in total profit/pips. If no reverse and price against, Cable EA will open another against trend order, until close in total profit/pips OR ...

    IF the price never comes back (and Cable had opened some positions), then we may see a trader with sad face..

     

    i think this Cable EA is good for swinging/flatting season, but is a disaster at a really strong trend market..

  7. I've been running on demo account as well with 0.1 lots and min profit 15. Some trades have closed for $5 and some for $55 some for around $40 some around $18 some around $32 etc. Working great on this end. GBP/USD trending up at this time. It'll be interesting to see what happens on a sudden downswing or vice versa. Any one with a previous experience and willing to mention what to expect?

     

    i am also looking forward for coming 'storm' - to see how this Cable cope with it :)

    now had live trade for around 4 days (since last week), everything seems STILL ok (with some profit, no huge drawdown).

  8. i had live trading dixie EA for around 1 week, a scalper (default TP at 10), open at certain (asian) time. one pair one trade per each time.

     

    good in collecting small pips, but last Thursday, the NZDUSD had fallen and dixie EA still hold it until around -100pips.

     

    but i still believe in dixie EA :) will continue test live at 0.01lot

     

    p/s: NZDUSD has low fixed spread at instaforex (3pips)

  9. Who's got the happy PIPS this week ?

    I got 612 ...

     

    i am live with cable EA version #171 (azam575) with necessary indicator at #187 (muruku) for around 72hours.

     

    manage to get +6.5% profit (default setting, 2 pairs, GU EJ, instaforex cent from USD460 to USD490, now still float +USD11)

     

    Hope this EA will be a long term constant profitable EA :)

     

    Thank you to muruku (and fellow indo-investasi friends) :)

  10. as with any other EA strategy be it scalpers, grid, there are ways to trade martingale EAs where you can profit from it,

    Funnel is one of those who can give you consistent profits.

     

    Dear awsl,

    nice to know that 'there are ways to trade martingale EAs (and profit from it)', hope can share further :)

    (p/s: i like martingale)

  11. In the manual, shows a picture of a happy face as a example of the correct setup of the ea... BUT, the funny thing is that the picture shown is of a ea called "forex supersonic GBPUSD" ... :D

     

    mine (live account) got smiley face with x4BOT at upper right of chart :)

    maybe the author too busy while compiling the manual and printscreen wrong expert advisor...

  12. for my case (live account, instaforex), i follow the MANUAL at page 10/12, and my expert advisor can run (with smiley face, and shows warning: Your version of 4xbot has been activated).

     

    i had run this EA 3 hours ago, only that NO trade opened yet :(

     

    in case need the "Own account generator webpage (to key in at Expert Advisor>>SerialNumber)":

    hxxp://x4bot.com/6548454334asfde484.php

×
×
  • Create New...