1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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

mohon koreksi coding eagenerator atas EA Racikan Sendiri#3_Gold5M

Discussion in 'Belajar MQL dari Nol' started by jossuabli, 14 Oct 2021.

  1. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point
    salam hormaat salam sehaat salam cuaan utk kita smw

    para master coding di SoeHoe.id, mohon kiranya dibantu, kami2 yang masih belajar otodidak dari eagenerator www.forexeadvisor.com.

    dlm EA Racikan Sendiri#3_Gold_5M (terlampir), SL:30 TP:30 TrailingStop:20 sdh terpasang.. nmn pada beberapa eksekusi OP, SL tsb tidak berfungsi shg mengakibatkan floating lama, bs berminggu2/berbulan.

    sepertinya ada kekeliruan pada coding nya? atau ada coding yang kurang ?

    mohon dibantu perbaikannya sehingga SL berfungsi maksimal.

    catatan
    Fbs Real-8, no-swap, cent account.

    tampilan:
    setting dn hasil BT Sept 2020 sd 12 Okt 2021
    upload_2021-10-14_8-26-41.png
    upload_2021-10-14_8-33-14.png
    upload_2021-10-14_8-27-15.png
    upload_2021-10-14_8-27-31.png
    upload_2021-10-14_8-27-40.png

    silahkan dicoba backtest utk ea nya.

    salam hormat kpd para soehoe.id
     

    Attached Files:

  2. M_Tewa

    M_Tewa New Member

    Equity
    Credit
    Ref Point
    Mungkin bagus kalau menampilakn kode sumbernya gan, sehingga para suhu coder dapat membantu memacahkan dimana kekurangannya. Saya ikut nyimak ya gan, soalnya belum pandai buat EA.
     
    • Friendly Friendly x 1
  3. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point
    Terlampir file mq4 ny.

    Apakah mgk karena 2digit nya? Krn mq4 ku khusus 3 ataw 5 digit spt fbs sen.

    Please reviu mybro M_Tewa .. Mtr suksema utk kebaikan hati mereviu mengoreksi ny.
     

    Attached Files:

    Last edited: 16 Oct 2021
  4. Herry Arruanpitu

    Herry Arruanpitu Member Credit Hunter

    Equity
    Credit
    Ref Point
    Stop Los harus ada void settupcloseorder
     
  5. Herry Arruanpitu

    Herry Arruanpitu Member Credit Hunter

    Equity
    Credit
    Ref Point
    void CloseOrder(int ordertype = -1)
    {
    for(int i = OrdersTotal()-1; i >= 0; i--)
    {
    if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
    {
    if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)
    {
    if(ordertype == -1)
    {
    if(OrderType() == OP_BUY)
    {
    if(!OrderClose(OrderTicket(),OrderLots(),BidPrice(OrderSymbol()),SlipPage,clrNONE))
    ShowError("Close " + OrderCmd(OrderType()));
    }
    else
    if(OrderType() == OP_SELL)
    {
    if(!OrderClose(OrderTicket(),OrderLots(),AskPrice(OrderSymbol()),SlipPage,clrNONE))
    ShowError("Close " + OrderCmd(OrderType()));
    }
    else
    {
    if(!OrderDelete(OrderTicket()))
    ShowError("Delete Pending Order " + OrderCmd(OrderType()));
    }
    }
    else
    {
    if(OrderType() == ordertype)
    {
    if(ordertype == OP_BUY)
    {
    if(!OrderClose(OrderTicket(),OrderLots(),BidPrice(OrderSymbol()),SlipPage,clrNONE))
    ShowError("Close " + OrderCmd(OrderType()));
    }
    else
    if(ordertype == OP_SELL)
    {
    if(!OrderClose(OrderTicket(),OrderLots(),AskPrice(OrderSymbol()),SlipPage,clrNONE))
    ShowError("Close " + OrderCmd(OrderType()));
    }
    else
    {
    if(!OrderDelete(OrderTicket()))
    ShowError("Delete Pending Order " + OrderCmd(OrderType()));
    }
    }
    }
    }
    }
    }
    }
     
    • Funny Funny x 1
  6. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point

    Ora mudeng taruhny dmn code di atas

    Thank you brotherque Herry Arruanpitu
     
    Last edited: 16 Oct 2021
    • Funny Funny x 1
  7. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point

    Bs kah dibantu, bro Herry Arruanpitu gabungkn langsung code yg diusulkn ke dlm code ea sy? Mhn maklum klo merepotkn.

    Terima ksh sblmnya.. Kurang lbh minta maaf
     
  8. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point

    beberapa perubahan yang sy lakukan dlm mq4 nya, shingga hasilnya menjadi sebagai berikut:
    Khusus Gold 5m, dg akun real FBS.

    frekuensi transaksi tdk banyak, namn efektif sesuai pengujian tsb. (100%)
    upload_2021-10-18_13-15-14.png

    Hasilnya:
    upload_2021-10-18_13-15-25.png


    JIKA lot menjd 0,1 maka hasilnya sbb
    upload_2021-10-18_13-15-52.png



    Mohon masukan dn pencerahannya para master di soehoe.id ini

    mtr suksema
     
  9. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point



    setelah perubahan mq4 sesuai masuk2n yang ada

    Hasilnya menjadi
    upload_2021-10-18_13-20-4.png
    upload_2021-10-18_13-20-15.png
    upload_2021-10-18_13-20-22.png
     
  10. jossuabli

    jossuabli Member Credit Hunter

    Equity
    Credit
    Ref Point

    pengujian yg lain
    upload_2021-10-18_13-21-37.png



    upload_2021-10-18_13-21-52.png
     

Share This Page