1. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

New EA EA Best EURJPY

Discussion in 'Expert Advisor atau Robot Forex' started by Agung Dwi Gunawan, 26 Oct 2016.

Tags:
  1. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    maaf gan nuwbi, mhn bantuannya untuk masta2, EA ini saya dpt di forum sebelah, best untuk EJ, blm bisa test karna saya pakai broker 5 digit, sedangkan EA ini untuk 4 digit, mhn bantuuanya untuk merubah atau menambahi opsi broker 4 digit, 5 digit, atau bahkan ECN. buat yg pake broker 4 digit mohon ditest dan dishare hasilnya. thx. salam ijo2, mudah2an ea bagus dan opit selalu
     

    Attached Files:

    • Like Like x 3
  2. jrc74xxx

    jrc74xxx Member Credit Hunter

    Equity
    Credit
    Ref Point
  3. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    A
    Any time frame kayaknya gan, soalnya berdasarkan news
     
  4. NOWASwe

    NOWASwe Member Credit Hunter

    Equity
    Credit
    Ref Point
    Not working!
     
  5. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    2016.10.26 20:53:20.200 2016.09.01 08:14 The Best EURJPY,H1: invalid lots amount for OrderSend function
    2016.10.26 20:54:02.313 2016.09.01 08:14 The Best EURJPY,H1: Error opening SellStop invalid function parameter value Ask=115.16 Bid=115.148 Entry @ 115.128 SL=115.163 TP=115.028

    EA is working for 4 digit broker, that's why I ask some one to make this EA worked for 5 digit broker (sorry bad english)
     
  6. NOWASwe

    NOWASwe Member Credit Hunter

    Equity
    Credit
    Ref Point
    OK, I take a look on it!
     
    • Like Like x 1
  7. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    Look like nice EA, cause base on news
     
  8. BigStackBully

    BigStackBully Member Credit Hunter

    Equity
    Credit
    Ref Point
    I found coder's explanations:
    //+-----------------------------------------------------------------------------+
    //| The Best.mq4 |
    //| ON |
    //| EURJPY |
    //+-----------------------------------------------------------------------------+
    //+ The Best EURJPY +
    //+-----------------------------------------------------------------------------+

    [HASHTAG]#property[/HASHTAG] copyright "Copyright © 2008, YANNIS, FOREXDUDE123, AZMEL, All That Help :)"
    [HASHTAG]#property[/HASHTAG] link "www.forex-tsd.com"

    /////////////////////////////////////////////////////////////////////////////////
    //////////////////////////// READ ME CAREFULLY //////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////
    // TRY IT FIRST ON A DEMO ACCOUNT UNTIL YOU FULLY UNDERSTAND HOW IT WORKS AND //
    // VERIFY YOURSELF THAT IT WORKS CORRECTLY BEFORE PUTTING REAL MONEY IN IT. //
    // THE AUTHOR (that's me :)) CANNOT BE HELD RESPONSIBLE FOR ANY DAMAGE OR LOSS /
    // *** USE IT AT YOUR OWN RISK *** //
    /////////////////////////////////////////////////////////////////////////////////

    /////////////////////////////////////////////////////////////////////////////////
    // The ea can manage at the same time manually entered trades at any time (they have a magic number of 0)
    // AND/OR a straddle (Long and Short pending positions - Stop orders) that is placed for a news event
    // at a specific time of the day by the ea. If you want to use only it as a Trailing expert for your manual
    // entries i would suggest to set the "Enable.News.Trading" parameter to False (it is by default).
    //
    // The manual trades are checked against Symbol() and MagicNumber=0 so if you have other experts running
    // on the same pair assuming they assign a magic number > 0 to the trades, you won't have any problems between
    // the manual trades and those from your expert.
    //
    // The trades entered by the expert are checked against Symbol() Period() and an automatically given Magic Number
    // so here also absolutely no problem if you have other experts running.
    //
    // The positions are tracked through the PosCounter() procedure
    // which checks for : b.ticket / s.ticket ==> Ticket # from Orders actually triggered BY THE EA, if any, otherwise = 0.
    // b.ticketP / s.ticketP ==> Ticket # from Pending Stop Orders NOT TRIGGERED (the straddle).
    // b.ticketM / s.ticketM ==> Ticket # from Orders entered Manually.
    // The manually entered positions are tracked as far as SL, TP, BE, partial exits and Trail are concerned,
    // and are totally unaffected by the straddle.
    //
    /////////////////////////////////////////////////////////////////////////////////
    ////////////////// BASIS SETTINGS AND HOW TO USE IT ////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////
    // IF YOU WANT TO USE THE EXPERT FOR NEWS EVENTS, MAKE USRE TO SET "Enable.News.Trading" TO TRUE
    // AND "Place.Straddle.Immediately" TO FALSE. IN THAT CASE, ONCE A POSITION IS TRIGGERED, THE EA
    // WILL NOT PLACE ANOTHER STRADDLE AGAIN UNTIL YOU INITIALIZE IT (BY CHANGING TIME FRAME OR
    // DISABLING AND ENABLING THE EA AGAIN.
    //
    // IF YOU WANT TO USE THE EXPERT FOR STRADDLING A NARROW RANGE BREAKOUT, UNRELATED TO NEWS,
    // MAKE SURE TO SET "Enable.News.Trading" TO FALSE AND "Place.Straddle.Immediately" TO TRUE.
    // IN THAT CASE, ONCE A POSITION IS TRIGGERED AND CLOSED AT ANY POINT, THE EA WILL PUT A
    // NEW STRADDLE AGAIN.
    //
    // IF YOU WANT THE EXPERT TO SIMPLY TAKE CARE OF YOUR MANUAL POSITION AND TOTALLY DISABLE ANY OTHER STRADDLE
    // FEATURES, MAKE SURE TO SET "Enable.News.Trading" TO FALSE AND "Place.Straddle.Immediately" TO FALSE.
    /////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////
    //
    //
    // The Stop Orders entered before the news release, either immediately if "Pre.Event.Entry.Minutes"=0 or
    // xx minutes before the event and they are tracked and adjusted ONCE EVERY MINUTE, from the moment
    // they are entered by the ea until a few minutes before the event (specified by "Stop.Adjusting.Min.Before.Event" parameter)
    // modifying their entry price, stop loss and take profit, according to current Bid and Ask, if "Adjust.Pending.Orders"=True.
    // Once one of them is triggered, the opposite one is removed if "Remove.Opposite.Order" = True.
    //
    // Another way of entering a straddle is by setting the "Place.Straddle.Immediately" to True. In that case,
    // The time event settings will be ignored and the long and short pending orders that will be entered immediately
    // will not be adjusted according to price like they are when this parameter is set to false and we use the ea for
    // news release. This is to be used as a narrow range, low volume breakout strategy like for instance during a ranging
    // Asian period.
    //
    // The "ShutDown.NOW" parameter will shut down all the trades specified by "ShutDown.What" parameter.
    // On the ea's input tab you can see the possible values but here they are again as a reference.
    // ShutDown.What ==> 0=Everything, 1=All Triggered Positions, 2=Triggered Long
    // 3=Triggered Short, 4=All Pending Positions, 5=Pending Long, 6=Pending Short
    // If "ShutDown.Current.Pair.Only" then the ea will close all trades for the pair on which this parameter was set to true
    // otherwise it will close ALL the trades on ALL the pairs.
    /////////////////////////////////////////////////////////////////////////////////////

    ///////////////////////////////////// Note 2 //////////////////////////////////////////
    // The ea will check the minimum distance allowed from the broker
    // against the trail, stop loss and take profit values specified by the user
    // in the expert parameters tab. If these values are below the allowed distance
    // they will be automatically adjusted to that minimum value
    /////////////////////////////////////////////////////////////////////////////////////

    ///////////////////////////////////// Note 3 //////////////////////////////////////////
    // Scaling Out.
    // Assuming we have a position triggered with 3 lots, either manually or through the Straddle.
    // If we set the "Take.Out.Lots" parameter to 1, then each time the position will be in
    // profit by the number of pips specified by "Trail.Pips" parameter, the expert will close
    // 1 lot. Another "Trail.Pips" profit later, it will close another lot etc...
    // The Trail.Pips parameter is used in this case as steps for each lot to be taken out
    // So if we use 3 lots and "Trail.Pips" is set to 15, then if all goes well, we will have
    // 1 lot closed at +15, the second at +30 and the 3rd at +45. All this can be combined
    // with the other trailing parameters below.
    /////////////////////////////////////////////////////////////////////////////////////

    ///////////////////////////////////// Note 4 //////////////////////////////////////////
    // How to use the ea so it takes over manually entered trades.
    // As soon as a position is manually initiated, the expert will check a few things.
    // 1. if your position has no SL or TP, it will modify the position and use the StopLoss.Pips
    // and the TakeProfit.Pips to place SL and TP.
    // 2. Assuming you want to trail a position at 15 pips distance, all you have to do is
    // set the "Trail.Pips" parameter to 15 or to any other value you see fit.
    // 3. You will find also 3 other parameters which are related to how the trail will behave
    // a) "Trail.Starts.After.BreakEven" If set to true, then your trailing will only start
    // after breakeven is accomplished. This parameter is independent from next 2.
    // b) "Move.To.BreakEven.at.pips" You specify here the amount of pips which once your
    // trade is xx pips in profit the ea will move your SL to breakeven. This means
    // that if you set it to 10, the ea will move to B/E once you are at +10.
    // c) "Move.To.BreakEven.Lock.pips" Amount of pips to secure once B/E is reached.
    // If you set it to 1, then with the previous parameter set to 10, this means
    // the expert will move your SL at +1 once your trade is at +10
    //
    // So let's see some scenarios:
    // Assuming we want to simply trail a position by 20 pips we can set:
    // Trail.Pips=20
    // Trail.Starts.After.BreakEven=False
    // Move.To.BreakEven.Lock.pips= ANYTHING it isn't needed
    // Move.To.BreakEven.at.pips = ANYTHING it isn't needed
    //
    // Assuming we want to trail a position by 15 pips and just securing 1 pip
    // once 10 pips of profit are made:
    // Trail.Pips=15
    // Trail.Starts.After.BreakEven=False
    // Move.To.BreakEven.Lock.pips=1
    // Move.To.BreakEven.at.pips =10
    //
    // Assuming we want to trail a position by 15 pips but only after
    // price moves 20 pips in our favor. We also want to at that point
    // to secure 5 pips:
    // Trail.Pips=15
    // Trail.Starts.After.BreakEven=True
    // Move.To.BreakEven.Lock.pips=5
    // Move.To.BreakEven.at.pips =20
    //
    // I guess you've go the idea
    /////////////////////////////////////////////////////////////////////////////////////
     
  9. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    Wow that so helpfull, thank you. is it true that this EA can only work on 4 digit broker, if it true, can you make it work on 5 digit broker. will be greatfull for your help
     
  10. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    sorry my mistake, I'm just test it ata demo, and this EA can work well at 5 digit broker. thanks anyway for your explanation sir
     
  11. Masseton

    Masseton New Member Credit Hunter

    Equity
    Credit
    Ref Point
    catatan itu ada dalam file EA nya masbro,
    bisa didapatkan di ..
    di MT4 dimana EA terpasang: klik 'Tools' - klik 'MetaQuotes Language Editor' -- klik 'Expert' -- klik Ea nya
     
  12. Masseton

    Masseton New Member Credit Hunter

    Equity
    Credit
    Ref Point

    saya sendiri juga nol dalam programming, tetapi di situs myforexwebsites.blogspot.co.id dalam salah satu artikelnya (studi kasus koding simple EA), agar EA bisa jalan di broker 4 dan 5 digit agar ditambahkan spt ini:

    /*--agar EA bisa running di Broker 4 Digit atau 5 Digit--*/
    void SetBroker()
    {
    if (Digits==3 || Digits==5) // Perintah untuk broker 5 Digits
    {SetPoint=Point*10;}
    else // Perintah untuk broker 4 Digits
    {SetPoint=Point;}
    }
     
  13. Agung Dwi Gunawan

    Agung Dwi Gunawan New Member Credit Hunter

    Equity
    Credit
    Ref Point
    hehe makasih gan, maaf buta soal koding, makasih banget infonya
     

Share This Page