Forex Community Place

Dapatkan hingga
$50000
karena mengundang teman
untuk memperoleh Bonus StartUp
dari InstaForex
Tidak perlu investasi!
Mulai trading tanpa
risiko dan investasi
Dengan Bonus Permulaan 1000$
Dapatkan bonus
55%
ke akun anda!
Results 1 to 5 of 5

Thread: [Help] EA minority Rule

  1. #1
    Orang Lama
    Mati
     
    fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima's Avatar
    Join Date
    Apr 2017
    Location
    Percakapan forex secara keseluruhan
    Posts
    1,081
    Accumulated bonus
    3117 USD (What is this?)
    Thanks
    5,574
    Thanked 5,773 Times in 913 Posts

    [Help] EA minority Rule

    halo gan disini ada yang bisa bantu buat EA dan rulenya sangat simple gan..

    Rule OP :
    1. Time Frame M30
    2. OP Sell jika harga menyentuh High Candle kemarin (TF M30)
    3. OP BUY jika harga menyentuh LOW Candle kemarin (TF M30)

    Rule SL :
    1. 50 pips

    Rule TP :
    1. 15 pips

    seperti digambar ini gan..
    Spoiler Spoiler:


    Dimohon bantuannya gan

  2. The Following User Says Thank You to fahminima For This Useful Post:

    putra01 (03-02-2019)

  3. <a href="https://www.mt5.com/id/">Forex Portal MT5</a>
  4. #2
    Orang Lama
    Mengintai
     
    inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk has much to be proud of inLuk's Avatar
    Join Date
    Apr 2017
    Location
    Indonesia
    Posts
    1,098
    Accumulated bonus
    1545 USD (What is this?)
    Thanks
    1,132
    Thanked 1,517 Times in 595 Posts
    hihihi,, wah menarik nih gan, dan sepertinya mampu menambah pundi pundi di dompet, tapi mohon maaf nih gan aQ agak sedikit sibuk , coba ke thread nya om sokovia di thread tanya jawab seputar Mql

  5. The Following 3 Users Say Thank You to inLuk For This Useful Post:

    fahminima (03-21-2018), putra01 (03-02-2019), Sokovia (03-13-2018)

  6. #3
    Forum Resident
    Santai
     
    Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia has a reputation beyond repute Sokovia's Avatar
    Join Date
    Jan 2017
    Location
    Surabaya
    Posts
    6,067
    Accumulated bonus
    10468 USD (What is this?)
    Saya bertemu tamu
    21 (detail lebih lanjut)
    Thanks
    7,038
    Thanked 12,558 Times in 4,325 Posts
    Quote Originally Posted by inLuk     
    hihihi,, wah menarik nih gan, dan sepertinya mampu menambah pundi pundi di dompet, tapi mohon maaf nih gan aQ agak sedikit sibuk , coba ke thread nya om sokovia di thread tanya jawab seputar Mql
    busyettt kok malah inyong yang disuruh jawab, lha masternya kan Om inluk.haha
    sebenernya EAnya gak susah2 amat, coder belajaran kaya saya dan murid2 lainnya mungkin bisa bantu, namun sepertinya mungkin ada masalah dengan tipikal rule kaya gitu, dengan berbekal pengalaman kemarin sore soal BT, pasti nanti hasilnya turun secara teratur jika di BT, yang ujungnya nanti pasti akan minta ditambah marti, yang kemudian setelah dimarti hasilnya pasti nyungsep, yang ujung2nya pasti akan ditambah indi ini itu.
    mmm...ini pekerjaan yang berat untuk sebuah posting.

  7. The Following 4 Users Say Thank You to Sokovia For This Useful Post:

    c0ng0 (08-09-2018), fahminima (03-21-2018), putra01 (03-02-2019), sandtha (03-18-2018)

  8. #4
    Orang Lama
    Mati
     
    fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima has a reputation beyond repute fahminima's Avatar
    Join Date
    Apr 2017
    Location
    Percakapan forex secara keseluruhan
    Posts
    1,081
    Accumulated bonus
    3117 USD (What is this?)
    Thanks
    5,574
    Thanked 5,773 Times in 913 Posts
    Quote Originally Posted by inLuk     
    hihihi,, wah menarik nih gan, dan sepertinya mampu menambah pundi pundi di dompet, tapi mohon maaf nih gan aQ agak sedikit sibuk , coba ke thread nya om sokovia di thread tanya jawab seputar Mql
    oke gan gapapa hehe

    ---------- Post added at 12:04 AM ---------- Previous post was at 12:03 AM ----------

    Quote Originally Posted by Sokovia     
    busyettt kok malah inyong yang disuruh jawab, lha masternya kan Om inluk.haha
    sebenernya EAnya gak susah2 amat, coder belajaran kaya saya dan murid2 lainnya mungkin bisa bantu, namun sepertinya mungkin ada masalah dengan tipikal rule kaya gitu, dengan berbekal pengalaman kemarin sore soal BT, pasti nanti hasilnya turun secara teratur jika di BT, yang ujungnya nanti pasti akan minta ditambah marti, yang kemudian setelah dimarti hasilnya pasti nyungsep, yang ujung2nya pasti akan ditambah indi ini itu.
    mmm...ini pekerjaan yang berat untuk sebuah posting.
    ini mas sokovia jago buat ea juga nih.. hehe.. saya buat ea cuma modif punya orang saja jadi hasilnya blm maksimal..

  9. The Following User Says Thank You to fahminima For This Useful Post:

    putra01 (03-02-2019)

  10. #5
    Orang Lama
    Semilir
     
    amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo is a glorious beacon of light amtwoxtwo's Avatar
    Join Date
    Sep 2010
    Location
    Sekitaran Bumi
    Posts
    1,039
    Accumulated bonus
    138 USD (What is this?)
    Thanks
    96
    Thanked 597 Times in 306 Posts
    ane coba pake EA generator aja ya
    Code:
    //-------------------------------------------------------------
    //  Etasoft Inc. Forex EA and Script Generator version 7.x   EA
    //-------------------------------------------------------------
    // Keywords: MT4, Forex EA builder, create EA, expert advisor developer
    
    #property copyright "Copyright © 2014-2019, Etasoft Inc. Forex EA Generator v7.x"
    #property link      "http://www.forexgenerator.com/"
    
    #include <stdlib.mqh>
    #include <WinUser32.mqh>
    
    // exported variables
    extern double SellLots6 = 0.1;
    extern int SellStoploss6 = 20;
    extern int SellTakeprofit6 = 30;
    extern double BuyLots5 = 0.1;
    extern int BuyStoploss5 = 20;
    extern int BuyTakeprofit5 = 30;
    
    
    // local variables
    double PipValue=1;    // this variable is here to support 5-digit brokers
    bool Terminated = false;
    string LF = "\n";  // use this in custom or utility blocks where you need line feeds
    int NDigits = 4;   // used mostly for NormalizeDouble in Flex type blocks
    int ObjCount = 0;  // count of all objects created on the chart, allows creation of objects with unique names
    int current = 0;   // current bar index, used by Cross Up, Cross Down and many other blocks
    int varylots[101]; // used by Buy Order Varying, Sell Order Varying and similar
    
    
    
    int init()
    {
        NDigits = Digits;
        
        if (false) ObjectsDeleteAll();      // clear the chart
        
        
        Comment("");    // clear the chart
        return (0);
    }
    
    // Expert start
    int start()
    {
        if (Bars < 10)
        {
            Comment("Not enough bars");
            return (0);
        }
        if (Terminated == true)
        {
            Comment("EA Terminated.");
            return (0);
        }
        
        OnEveryTick1();
        return (0);
    }
    
    void OnEveryTick1()
    {
        PipValue = 1;
        if (NDigits == 3 || NDigits == 5) PipValue = 10;
        
        IfNoOrderExist2();
        
    }
    
    void IfNoOrderExist2()
    {
        bool exists = false;
        for (int i=OrdersTotal()-1; i >= 0; i--)
        if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
        {
            if (OrderSymbol() == Symbol())
            {
                exists = true;
            }
        }
        else
        {
            Print("OrderSelect() error - ", ErrorDescription(GetLastError()));
        }
        
        if (exists == false)
        {
            TechnicalAnalysis3();
            TechnicalAnalysis4();
            
        }
    }
    
    void TechnicalAnalysis3()
    {
        if (Bid > High[1])
        {
            SellOrder6();
            
        }
    }
    
    void SellOrder6()
    {
        double SL = Bid + SellStoploss6*PipValue*Point;
        if (SellStoploss6 == 0) SL = 0;
        double TP = Bid - SellTakeprofit6*PipValue*Point;
        if (SellTakeprofit6 == 0) TP = 0;
        int ticket = -1;
        if (true)
        ticket = OrderSend(Symbol(), OP_SELL, SellLots6, Bid, 4, 0, 0, "My Expert", 1, 0, Red);
        else
        ticket = OrderSend(Symbol(), OP_SELL, SellLots6, Bid, 4, SL, TP, "My Expert", 1, 0, Red);
        if (ticket > -1)
        {
            if (true)
            {
                bool sel = OrderSelect(ticket, SELECT_BY_TICKET);
                bool ret = OrderModify(OrderTicket(), OrderOpenPrice(), SL, TP, 0, Red);
                if (ret == false)
                Print("OrderModify() error - ", ErrorDescription(GetLastError()));
            }
                
        }
        else
        {
            Print("OrderSend() error - ", ErrorDescription(GetLastError()));
        }
    }
    
    void TechnicalAnalysis4()
    {
        if (Ask < Low[1])
        {
            BuyOrder5();
            
        }
    }
    
    void BuyOrder5()
    {
        double SL = Ask - BuyStoploss5*PipValue*Point;
        if (BuyStoploss5 == 0) SL = 0;
        double TP = Ask + BuyTakeprofit5*PipValue*Point;
        if (BuyTakeprofit5 == 0) TP = 0;
        int ticket = -1;
        if (true)
        ticket = OrderSend(Symbol(), OP_BUY, BuyLots5, Ask, 4, 0, 0, "My Expert", 1, 0, Blue);
        else
        ticket = OrderSend(Symbol(), OP_BUY, BuyLots5, Ask, 4, SL, TP, "My Expert", 1, 0, Blue);
        if (ticket > -1)
        {
            if (true)
            {
                bool sel = OrderSelect(ticket, SELECT_BY_TICKET);
                bool ret = OrderModify(OrderTicket(), OrderOpenPrice(), SL, TP, 0, Blue);
                if (ret == false)
                Print("OrderModify() error - ", ErrorDescription(GetLastError()));
            }
                
        }
        else
        {
            Print("OrderSend() error - ", ErrorDescription(GetLastError()));
        }
    }
    
    
    
    int deinit()
    {
        if (false) ObjectsDeleteAll();
        
        
        return (0);
    }
    Yahuuu

  11. The Following User Says Thank You to amtwoxtwo For This Useful Post:

    putra01 (03-02-2019)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts