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

Question i need help, make ea from custom indicator

Discussion in 'Expert Advisor atau Robot Forex' started by HendroTP, 04 Oct 2021.

  1. HendroTP

    HendroTP New Member

    Equity
    Credit
    Ref Point
    Hello everyone.
    I would like to create an EA from custom indicator, but I can't. Can someone help me?
    thank you
     

    Attached Files:

    Last edited: 04 Oct 2021
  2. Nunosantos

    Nunosantos Member Credit Hunter

    Equity
    Credit
    Ref Point
    • Friendly Friendly x 1
  3. petar

    petar Member Credit Hunter

    Equity
    Credit
    Ref Point
    Here is an idea :
    renamed indicator as Goodarrow, and use EA Goodarrow for testing , see if any body can come with good settings.
    Good thing is that we have indicator mq file , so we can play with settings.

    It's very sophisticated EA (probablly one of the best EA's arround), developed by Mr. Tanaka :
     

    Attached Files:

  4. petar

    petar Member Credit Hunter

    Equity
    Credit
    Ref Point
    I don't know if this is possible, to good to be true ?
     

    Attached Files:

  5. blackking

    blackking Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Sometimes trading strategy in backtesting show up the good result
    but sometimes in the real trading environment is different.
     
  6. HendroTP

    HendroTP New Member

    Equity
    Credit
    Ref Point
    Thankyou petar, you are good person
     
    • Like Like x 1
  7. petar

    petar Member Credit Hunter

    Equity
    Credit
    Ref Point
    you welcome, not sure if it's gonna work, test it first to be safe. Let us know how it goes !
     
  8. petar

    petar Member Credit Hunter

    Equity
    Credit
    Ref Point
    in testing looks to good to be true, don't think result's are for real !
     
  9. Derling34

    Derling34 Member Credit Hunter

    Equity
    Credit
    Ref Point
    Pretty poor backtesting results, big drawdown compared to profits.
    Not recommended
     
  10. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    Ini EA berdasarkan indicator untuk scalping, silahkan indikator di backtest sendiri. Terlampir source code. (This EA is based on indicators for scalping, please backtest the indicators yourself. Attached source code.)



     

    Attached Files:

  11. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hasil backest
    BO_SIGNAL_INDI_EURUSD_H1_EXNESS_FIXTPSL.jpg BO_SIGNAL_INDI_EURUSD_H1_OCTAFX_FIXTPSL.jpg
     
  12. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    BO_SIGNAL.mq4 same with GoodArrowIndicator.ex4. Thank you for posting the EA, I can learn to create same result with EA_GoodArrowIndicator(revA_No_alert).ex4

     
  13. HendroTP

    HendroTP New Member

    Equity
    Credit
    Ref Point
    Terimakasih mas akangdw, besok coba saya backtest
     
  14. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    Sebenarnya gampang membuat EA berdasarkan indicator, terlampir modifikasi Moving Average untuk digunakan berbagai macam indicator. Khusus utk BO_Signal, Nilai buffer 0 = 1 dan nilai Buffer 1 = 0, biasanya Buffer 0 = 0 dan buffer 1 = 1
     

    Attached Files:

    • Friendly Friendly x 1
  15. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    Terlampir modifikasi contoh EA MACD Sample untuk bo_signal.mq4 atau GoodArrowIndicator
     

    Attached Files:

    • Friendly Friendly x 1
  16. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point

    Attached Files:

  17. HendroTP

    HendroTP New Member

    Equity
    Credit
    Ref Point
    terimakasih mas akangdw atas bimbingannya, saya sudah backtest dan pelajari.
    saya punya ide, tapi saya tdk paham untuk codingnya. jika berkenenan mohon di modifkan yang ea "modifikasi moving average" dengan rule basket trading :
    1. target tp in usd
    2. apabila op pertama belum mencapai target in usd kemudian muncul sinyal baru op posisi kedua dgn lot x 2, apabila op pertama dan kedua masih belum mencapai target kemudian muncul sinyal baru op lagi sesuai sinyal yg muncul dengan lot x 3, dst.
    3. dikasih stop loss in usd

    apabila berkenan mohon disematkan mas akangdw. terimakasih
     
  18. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    Saya coba ya, saya juga baru 4 bulan belajar coding mq4
     
  19. Akangdw

    Akangdw Member Credit Hunter

    Equity
    Credit
    Ref Point
    https://www.cashbackforex.com/article/building-strategies-with-custom-indicators
    Indicator: NonLagMA_7.1

    Cara 1 :
    Cocok untuk indicator seperti Hull, NonLag
    Code:
    //Buy: when close crosses over NonLagMA
    //Sell: when close crosses under NonLagMA
    int Shift = 1
    double macurrent  = iCustom(NULL, 0, "NonLagMA_v7.1", 0, Shift);
    double maprevious = iCustom(NULL, 0, "NonLagMA_v7.1", 0, Shift+1);
    double close_current  = iClose (NULL,0,Shift);
    double close_previous = iClose (NULL,0,Shift+1);
    
    // Buy
    if (close_current >= macurrent && close_previous <= maprevious)
    
    // Sell
    if (close_current <= macurrent && close_previous >= maprevious)
    Cara 2:
    Cocok untuk indicator seperti Hull, NonLag
    Code:
    //Buy: when current line is up and blue and previous line is down and red
    //Sell: when current line is down and red and previous line is up and blue 
    
    int Shift = 1
    double buy_macurrent   = iCustom(NULL, 0, "NonLagMA_v7.1", 1, Shift);
    double buy_maprevious  = iCustom(NULL, 0, "NonLagMA_v7.1", 1, Shift+1);
    double sell_macurrent  = iCustom(NULL, 0, "NonLagMA_v7.1", 2, Shift);
    double sell_maprevious = iCustom(NULL, 0, "NonLagMA_v7.1", 2, Shift+1);
    
    // buy
    if(sell_maprevious != EMPTY_VALUE && sell_macurrent == EMPTY_VALUE && buy_macurrent != EMPTY_VALUE)
    
    //sell
    if(buy_maprevious != EMPTY_VALUE && buy_macurrent == EMPTY_VALUE && sell_macurrent != EMPTY_VALUE)
    Cara 3:
    Code:
    //Buy: when current trend is up and previous trend is down
    //Sell: when current trend is up and previous trend is down     
    int Shift = 1
    double trend_macurrent  = iCustom(NULL, 0, "NonLagMA_v7.1", 3, Shift;
    double trend_maprevious = iCustom(NULL, 0, "NonLagMA_v7.1", 3, Shift+1;
    
    // buy
    if (trend_macurrent == 1 && trend_maprevious == -1)
    
    //sell
    if (trend_macurrent == -1 && trend_maprevious == 1)
    Cara 4:
    Code:
    int Shift = 1
    double buffer_0 = iCustom(NULL, 0, "BO_SIGNAL", 0, Shift;
    double buffer_1 = iCustom(NULL, 0, "BO_SIGNAL", 1, Shift;
    
    // buy
    if (if(buffer_0 != EMPTY_VALUE && buffer_0 != 0)
    
    // sell
    if (if(buffer_1 != EMPTY_VALUE && buffer_1 != 0)
    Cara 5:
    Code:
    int Shift = 1
    double buffer_0 = iCustom(NULL, 0, "BO_SIGNAL", 0, Shift;
    double buffer_1 = iCustom(NULL, 0, "BO_SIGNAL", 1, Shift;
    
    if (buffer_0 != buffer_1)
    {
       // buy
       if (if(buffer_0 > buffer_1)
    
       // sell
       if (if(buffer_0 < buffer_1)
    }
     
  20. papa j

    papa j Member Credit Hunter

    Equity
    Credit
    Ref Point
    thank you petar for a wonderful idea. i tried changing name of indy to another following to your advice. i used dynamix to replace goodarrow, but it's placing only sell orders. how can i correct this? thank you very much.
     

Share This Page