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!
Page 2 of 2
FirstFirst 1 2
Results 11 to 20 of 20

Thread: [ASK] Tanya coding EA untuk indicator Fractals

  1. #11
    Knuckle Gesit
    Lelah
     
    pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit's Avatar
    Join Date
    Aug 2011
    Location
    selalu di depan laptop
    Posts
    1,172
    Accumulated bonus
    232 USD (What is this?)
    Thanks
    147
    Thanked 975 Times in 486 Posts
    Quote Originally Posted by amiez     
    emmm.. gitu yah om mod Givonly,
    apa begini maksudnya omm..

    kalau di ganti menjadi for (int x=Bars;x <=Bars;x++)
    loh itu 500 atau 10.000 ga masalah
    nanti kalau dia sudah ketemu fractal langsung break.. jadi ga ngitung lagi..
    jadi jangan kawatir EA nya jadi berat.

    takutnya kalo di isi cuma 5.. misalnya fractalnya sampe 5 bar ga ada.. nanti kacau.


    malah kalau di ganti menjadi for (int x=Bars;x <=Bars;x++)
    ane rasa malah kacau Gan

  2. The Following 2 Users Say Thank You to pengen-profit For This Useful Post:


  3. <a href="https://www.showfxworld.com/id">Forex Portal MT5</a>
  4. #12
    Moderator
    Mengintai
     
    Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly has a reputation beyond repute Givonly's Avatar
    Join Date
    Jul 2010
    Location
    ǝuɔɐ
    Posts
    21,939
    Saya bertemu tamu
    22 (detail lebih lanjut)
    Thanks
    4,875
    Thanked 5,611 Times in 2,705 Posts
    Quote Originally Posted by amiez     
    emmm.. gitu yah om mod Givonly,
    apa begini maksudnya omm..

    kalau di ganti menjadi for (int x=Bars;x <=Bars;x++)
    Bukan.
    Gini kalo mau pake Bars :
    Code:
    for (int x=0;x <=Bars;x++)
    dibaca : selama x (index bar/candle) masih kurang dari jumlah Bar di chart tersebut, maka akan terus dicari nilai Fractals nya ke belakang.
    Atau cukup pake angka 500 seperti yang dikasih agan Pengen Profit ya udah betul
    Yang penting kita paham alur logic-nya seperti apa, intinya mencari nilai fractals terdekat.
    _________________________________________ _________________________________________


    _________________________________________ _________________________________________

  5. The Following 2 Users Say Thank You to Givonly For This Useful Post:


  6. #13
    Knuckle Gesit
    Lelah
     
    pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit is a splendid one to behold pengen-profit's Avatar
    Join Date
    Aug 2011
    Location
    selalu di depan laptop
    Posts
    1,172
    Accumulated bonus
    232 USD (What is this?)
    Thanks
    147
    Thanked 975 Times in 486 Posts
    setelah di pikir pikir.. angka 500 itu kalo di ganti dengan angka yg kecil.. msialnya antara 3 sampe 7
    ada baiknya juga...

    jadi terutama saat pertama kali Start EA..
    EA tidak OP berdasarkan Fractal yg sudah lama dan sudah basi..

    jadi hanya OP berdasarkan Fractal yg masih fresh..

  7. The Following User Says Thank You to pengen-profit For This Useful Post:


  8. #14
    Banned
    Mabuk
     
    amiez will become famous soon enough amiez's Avatar
    Join Date
    Nov 2011
    Location
    +EURJPY+
    Posts
    458
    Accumulated bonus
    76 USD (What is this?)
    Thanks
    415
    Thanked 86 Times in 58 Posts
    hihihii... jadi malu nih
    mau tanya lagi nih... om-omm
    setelah dipahami ternyata untuk Fractals lebih bagus digunakan pending order BUYSTOP dan SELLSTOP,
    tapi ane buat kaya gitu kow.. malah Ancur.. hixhixhixhx
    berikut teknikal yang ane pake, EA hasil gabungan punya master DWI.M yang martingale, tapi disini bukan martingale namanya, melainkan Cara penyelesaian masalah jika terkena StopLoss..
    PHP Code:
    //+------------------------------------------------------------------+
    //|                                                 EA_AminezFXs.mq4 |
    //|                                                 @AminezFxScalper |
    //|                                                                  |
    //+------------------------------------------------------------------+
    #property copyright "@AminezFxScalper"
    #property link      "www.indo.mt5.com"

    extern   int      TakeProfit  25;
    extern   int      StopLoss    25;
    extern   int      PipStep     15;
    extern   int      Slippage    3;
    string   EAName               "EA_AminezFXs";
    string   EAComment            "AminezFxScalper";
    int      EAMagicNumber        1991;
    double   SetPoint             0;
    double   Multiply             2;
     
    //+------------------------------------------------------------------+
    //| expert initialization function                                   |
    //+------------------------------------------------------------------+
    int init()
      {
    //----
       
       
    SetBroker();
       
    //----
       
    return(0);
      }
    //+------------------------------------------------------------------+
    //| expert deinitialization function                                 |
    //+------------------------------------------------------------------+
    int deinit()
      {
    //----
       
    //----
       
    return(0);
      }
    //+------------------------------------------------------------------+
    //| expert start function                                            |
    //+------------------------------------------------------------------+
    int start()
      {
    //----
    double   Lots        AccountBalance()/10000;
    bool   result;
       
    int    cmd,total,error;
       
    double price;
    //----
       
    total=OrdersTotal();
    //----
       
    for(int i=0i<totali++)
         {
          if(
    OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
            {
             
    cmd=OrderType();
             if(((
    cmd!=OP_BUY && cmd!=OP_SELL)&&(OrdersTotal()==1)))
               {
                
    OrderPrint();
                
    result=OrderDelete(OrderTicket());
                if(
    result!=TRUE) Print("LastError = "GetLastError());
                break;
               }
            }
          else { Print( 
    "Error when order select "GetLastError()); break; }
         }

       
    int   iTrade=0;
    double FR_UP=0;double FR_LOW=0;
    for (
    int x=0;x<=Bars;x++)
    FR_UP=iFractals(NULL,0,MODE_UPPER,x);
    FR_LOW=iFractals(NULL,0,MODE_LOWER,x);
    if (
    FR_UP!=|| FR_LOW!=0)break;}



       
       if(
    OrdersTotal()==0)         
       {     
          
             
    OrderSend(Symbol(), OP_BUYSTOPLots,  FR_UPSlippageBid-StopLoss*SetPointAsk+TakeProfit*SetPointEACommentEAMagicNumber);
             
    OrderSend(Symbol(), OP_SELLSTOPLotsFR_LOWSlippageAsk+StopLoss*SetPointAsk-TakeProfit*SetPoint*SetPointEACommentEAMagicNumber);       
          }
    //-----------------------------+  
       
    if(OrdersTotal()>=1)
       {
    GoMartingale();
       }  
       return(
    0);
      }
    //+----------------------------+
    void SetBroker()
    {
       if (
    Digits==|| Digits==5)
          {
    SetPoint=Point*10;}
       else
          {
    SetPoint=Point;}
    }
    //-------------
    void GoMartingale(){
             
             
    double   LastOP      =  0;
             
    double   LastLots    =  0;
             
    bool     LastIsBuy   =  FALSE;
             
             if(
    LastIsBuy)
             {if(
    OrdersTotal()==1)
                {
    OrderSend(Symbol(), OP_SELLSTOPMultiply*LastLotsBid-TakeProfit*PointSlippage,OrderOpenPrice(),OrderOpenPrice()-2*TakeProfit*PointEACommentEAMagicNumber);
                   
    LastIsBuy=FALSE;
                   return(
    0);
                }
             }
             else if(!
    LastIsBuy)
             {if(
    OrdersTotal()==1)
                {
    OrderSend(Symbol(), OP_BUYSTOPMultiply*LastLotsAsk+TakeProfit*PointSlippageOrderOpenPrice(),OrderOpenPrice()+2*TakeProfit*PointEACommentEAMagicNumber);
                   return(
    0);
                }
              }
            }
    //-------------------------------+ 

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


  10. #15
    Poster Lama
    Psychedelic
     
    taranata is a glorious beacon of light taranata is a glorious beacon of light taranata is a glorious beacon of light taranata is a glorious beacon of light taranata is a glorious beacon of light taranata's Avatar
    Join Date
    Jan 2011
    Location
    nomaden
    Posts
    3,425
    Accumulated bonus
    772 USD (What is this?)
    Thanks
    652
    Thanked 510 Times in 355 Posts
    ehm..ask dong, daripada saya bikin thread baru, mending saya tanya disini deh
    saya punya sebuah uneg2 logika dari indi plg hebat & not settingable ini, apalagi klo bukan Fractals

    logikanya:
    FR_UP = Fraktal UP
    FR_DOWN = fraktal Down
    kondisi awal = no OP

    1. jika keluar FR_UP maka SELL
    2. jika keluar FR_UP maka tambah peluru SELL tanpa menutup OP yang pertama yg pertama
    *jadi sekarang ada 2 SELL aktif skrg
    3. jika keluar FR_DOWN maka BUY, dan close semua order SELL
    4. jika keluar FR_DOWN maka BUY lagi, jadi ada 2 BUY skrg
    5. jika keluar FR_DOWN maka BUY tambahin lagi, jadi ada 3 BUY skrg
    6. jika keluar FR-UP maka open SELL, dan tutup smw order buy
    7. berulang ke point 1

    demikian, ada yg bisa bantuin codinganya??
    logika rally OP, dengan hanya 1 macam order yg dipake. .yaitu hanya buy semua / hanya sell semua.
    selanjutnya StopAndReverse apabila ada signal berbalik arah.

    terima kasih sebelumnya

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


  12. #16
    Anggota
    ----
     
    haris_surabaya is on a distinguished road haris_surabaya's Avatar
    Join Date
    Jan 2012
    Posts
    174
    Accumulated bonus
    26 USD (What is this?)
    Thanks
    101
    Thanked 19 Times in 16 Posts
    Quote Originally Posted by taranata     
    ehm..ask dong, daripada saya bikin thread baru, mending saya tanya disini deh
    saya punya sebuah uneg2 logika dari indi plg hebat & not settingable ini, apalagi klo bukan Fractals

    logikanya:
    FR_UP = Fraktal UP
    FR_DOWN = fraktal Down
    kondisi awal = no OP

    1. jika keluar FR_UP maka SELL
    2. jika keluar FR_UP maka tambah peluru SELL tanpa menutup OP yang pertama yg pertama
    *jadi sekarang ada 2 SELL aktif skrg
    3. jika keluar FR_DOWN maka BUY, dan close semua order SELL
    4. jika keluar FR_DOWN maka BUY lagi, jadi ada 2 BUY skrg
    5. jika keluar FR_DOWN maka BUY tambahin lagi, jadi ada 3 BUY skrg
    6. jika keluar FR-UP maka open SELL, dan tutup smw order buy
    7. berulang ke point 1

    demikian, ada yg bisa bantuin codinganya??
    logika rally OP, dengan hanya 1 macam order yg dipake. .yaitu hanya buy semua / hanya sell semua.
    selanjutnya StopAndReverse apabila ada signal berbalik arah.

    terima kasih sebelumnya
    belum ada nyang bikinin ya?
    ane juga sedang mencari robot fractals yg laen untuk nambah2 pelajaran.

  13. The Following User Says Thank You to haris_surabaya For This Useful Post:


  14. #17
    Banned
    Mabuk
     
    amiez will become famous soon enough amiez's Avatar
    Join Date
    Nov 2011
    Location
    +EURJPY+
    Posts
    458
    Accumulated bonus
    76 USD (What is this?)
    Thanks
    415
    Thanked 86 Times in 58 Posts
    Quote Originally Posted by taranata     
    1. jika keluar FR_UP maka SELL
    2. jika keluar FR_UP maka tambah peluru SELL tanpa menutup OP yang pertama yg pertama
    *jadi sekarang ada 2 SELL aktif skrg
    3. jika keluar FR_DOWN maka BUY, dan close semua order SELL
    4. jika keluar FR_DOWN maka BUY lagi, jadi ada 2 BUY skrg
    5. jika keluar FR_DOWN maka BUY tambahin lagi, jadi ada 3 BUY skrg
    6. jika keluar FR-UP maka open SELL, dan tutup smw order buy
    Wahh gan.. kalo logikanya kayak gituu.. yea mending di manuain aja.. soalnya >>> Robot bukan Manusia...

  15. #18
    Anggota
    Mati
     
    forexgraph is on a distinguished road forexgraph's Avatar
    Join Date
    Jun 2013
    Location
    Bandung
    Posts
    161
    Accumulated bonus
    17 USD (What is this?)
    Thanks
    9
    Thanked 16 Times in 11 Posts
    saya pernah bikin ea pake fractal, hasilnya cukup bagus, tapi ga cocok untuk spike price.
    kurun waktu 2-3 minggu bisa BEP alias balik modal, cuma sekarang udah ga dipake lagi.

  16. #19
    Orang Asing
    ----
     
    cjman is an unknown quantity at this point cjman's Avatar
    Join Date
    Jun 2017
    Posts
    6
    Accumulated bonus
    3 USD (What is this?)
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by amiez     
    hihihii... jadi malu nih
    mau tanya lagi nih... om-omm
    setelah dipahami ternyata untuk Fractals lebih bagus digunakan pending order BUYSTOP dan SELLSTOP,
    tapi ane buat kaya gitu kow.. malah Ancur.. hixhixhixhx
    berikut teknikal yang ane pake, EA hasil gabungan punya master DWI.M yang martingale, tapi disini bukan martingale namanya, melainkan Cara penyelesaian masalah jika terkena StopLoss..
    PHP Code:
    //+------------------------------------------------------------------+
    //|                                                 EA_AminezFXs.mq4 |
    //|                                                 @AminezFxScalper |
    //|                                                                  |
    //+------------------------------------------------------------------+
    #property copyright "@AminezFxScalper"
    #property link      "www.indo.mt5.com"

    extern   int      TakeProfit  25;
    extern   int      StopLoss    25;
    extern   int      PipStep     15;
    extern   int      Slippage    3;
    string   EAName               "EA_AminezFXs";
    string   EAComment            "AminezFxScalper";
    int      EAMagicNumber        1991;
    double   SetPoint             0;
    double   Multiply             2;
     
    //+------------------------------------------------------------------+
    //| expert initialization function                                   |
    //+------------------------------------------------------------------+
    int init()
      {
    //----
       
       
    SetBroker();
       
    //----
       
    return(0);
      }
    //+------------------------------------------------------------------+
    //| expert deinitialization function                                 |
    //+------------------------------------------------------------------+
    int deinit()
      {
    //----
       
    //----
       
    return(0);
      }
    //+------------------------------------------------------------------+
    //| expert start function                                            |
    //+------------------------------------------------------------------+
    int start()
      {
    //----
    double   Lots        AccountBalance()/10000;
    bool   result;
       
    int    cmd,total,error;
       
    double price;
    //----
       
    total=OrdersTotal();
    //----
       
    for(int i=0i<totali++)
         {
          if(
    OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
            {
             
    cmd=OrderType();
             if(((
    cmd!=OP_BUY && cmd!=OP_SELL)&&(OrdersTotal()==1)))
               {
                
    OrderPrint();
                
    result=OrderDelete(OrderTicket());
                if(
    result!=TRUE) Print("LastError = "GetLastError());
                break;
               }
            }
          else { Print( 
    "Error when order select "GetLastError()); break; }
         }

       
    int   iTrade=0;
    double FR_UP=0;double FR_LOW=0;
    for (
    int x=0;x<=Bars;x++)
    FR_UP=iFractals(NULL,0,MODE_UPPER,x);
    FR_LOW=iFractals(NULL,0,MODE_LOWER,x);
    if (
    FR_UP!=|| FR_LOW!=0)break;}



       
       if(
    OrdersTotal()==0)         
       {     
          
             
    OrderSend(Symbol(), OP_BUYSTOPLots,  FR_UPSlippageBid-StopLoss*SetPointAsk+TakeProfit*SetPointEACommentEAMagicNumber);
             
    OrderSend(Symbol(), OP_SELLSTOPLotsFR_LOWSlippageAsk+StopLoss*SetPointAsk-TakeProfit*SetPoint*SetPointEACommentEAMagicNumber);       
          }
    //-----------------------------+  
       
    if(OrdersTotal()>=1)
       {
    GoMartingale();
       }  
       return(
    0);
      }
    //+----------------------------+
    void SetBroker()
    {
       if (
    Digits==|| Digits==5)
          {
    SetPoint=Point*10;}
       else
          {
    SetPoint=Point;}
    }
    //-------------
    void GoMartingale(){
             
             
    double   LastOP      =  0;
             
    double   LastLots    =  0;
             
    bool     LastIsBuy   =  FALSE;
             
             if(
    LastIsBuy)
             {if(
    OrdersTotal()==1)
                {
    OrderSend(Symbol(), OP_SELLSTOPMultiply*LastLotsBid-TakeProfit*PointSlippage,OrderOpenPrice(),OrderOpenPrice()-2*TakeProfit*PointEACommentEAMagicNumber);
                   
    LastIsBuy=FALSE;
                   return(
    0);
                }
             }
             else if(!
    LastIsBuy)
             {if(
    OrdersTotal()==1)
                {
    OrderSend(Symbol(), OP_BUYSTOPMultiply*LastLotsAsk+TakeProfit*PointSlippageOrderOpenPrice(),OrderOpenPrice()+2*TakeProfit*PointEACommentEAMagicNumber);
                   return(
    0);
                }
              }
            }
    //-------------------------------+ 
    codingnya mirip bahasa C dalam pemograman.

    perlu adanya global declaration dan module sepertinya tuh kalau saya lihat sriptnya, pembuatnya aminezfxscalper yah gan?
    jadi penasaran nih.

  17. lamborghini
  18. #20
    Orang Asing
    ----
     
    hishammaznan is an unknown quantity at this point hishammaznan's Avatar
    Join Date
    Apr 2017
    Posts
    2
    Accumulated bonus
    0 USD (What is this?)
    Thanks
    0
    Thanked 0 Times in 0 Posts
    pengen-profit macam mana nak tulis mql4 high dan low candle jam 8 pagi close jam 9 pagi dan pasang buystop dan sell stop high dan low

Page 2 of 2
FirstFirst 1 2

Posting Permissions

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