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

New EA LOW DD EA

Discussion in 'Expert Advisor atau Robot Forex' started by tanaka akiko, 26 Nov 2022.

  1. Serame

    Serame New Member

    Equity
    Credit
    Ref Point

    Mr Philippe can you help me convert the following EA verser versa:- BUY=SELL and SELL=BUY. Unfortunately I do not have Mql4 for the EA, if you can make it possible please assist.. That is the behaviour of the EA on a Photo attached
     

    Attached Files:

    Last edited: 05 Sep 2024
    • Informative Informative x 1
  2. philippe5

    philippe5 Member Credit Hunter

    Equity
    Credit
    Ref Point
    Sorry, you must ask to M Tanaka.
     
  3. Serame

    Serame New Member

    Equity
    Credit
    Ref Point
    This is the behaviour of the

    MR.TANAKA Would you please help on this crisis?????¡¡
     
    • Funny Funny x 1
  4. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    It is EA. ex4 file. So I can not modify.
     
  5. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    Completed.
     

    Attached Files:

    • Winner Winner x 1
    • Friendly Friendly x 1
  6. Serame

    Serame New Member

    Equity
    Credit
    Ref Point
    // Moving Averages
    shortMA = ta.sma(close, 20)
    longMA = ta.sma(close, 50)
    // RSI
    rsi = ta.rsi(close, 14)
    // Outside Bar Logic (reversed)
    isOutsideBar = high > high[1] and low < low[1]
    if (isOutsideBar)
    if (close < open and close < shortMA and shortMA < longMA and rsi > 70)
    strategy.entry("OutBarLE", strategy.long, qty=1, comment="OutBarLE") // Enter Long when original would enter Short
    if (close > open and close > shortMA and shortMA > longMA and rsi < 30)
    strategy.entry("OutBarSE", strategy.short, qty=1, comment="OutBarSE") // Enter Short when original would enter Long
    // Calculate Stop Loss and Target Profit for Long Positions
    longStopLoss = strategy.position_avg_price * (1 - stopLossPercent)
    longTargetProfit = strategy.position_avg_price * (1 + targetProfitPercent)
    // Calculate Stop Loss and Target Profit for Short Positions
    shortStopLoss = strategy.position_avg_price * (1 + stopLossPercent)
    shortTargetProfit = strategy.position_avg_price * (1 - targetProfitPercent)
    // Exit Conditions for Long Positions
    if (strategy.position_size > 0) // Long position
    strategy.exit("Take Profit/Stop Loss", "OutBarLE", stop=longStopLoss, limit=longTargetProfit)
    // Exit Conditions for Short Positions
    if (strategy.position_size < 0) // Short position
    strategy.exit("Take Profit/Stop Loss", "OutBarSE", stop=shortStopLoss, limit=shortTargetProfit)
    ```
    ### Explanation of the Strategy and Indicators
    1. **Opposite Entry Conditions**:
    - The strategy reverses the entry conditions. It enters long positions when the price closes lower than it opened and vice versa. Additionally, it checks if the short-term moving average is below the long-term moving average for long entries and above for short entries.
    2. **Indicators**:
    - **Moving Averages (MA)**:
    - A 20-period and a 50-period simple moving average are used to confirm the trend direction. Long entries are confirmed if the short MA is below the long MA, and short entries are confirmed if the short MA is above the long MA.
    - **Relative Strength Index (RSI)**:
    - An RSI with a 14-period setting is used. Long entries are confirmed if the RSI is below 30 (indicating oversold conditions), and short entries are confirmed if the RSI is above 70 (indicating overbought condition)

    Mr.Tanaka can help create an EA using the above strategy please????!!
     
  7. tanaka akiko

    tanaka akiko Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point

    I am testing but there is no entry with this condition.
    If I remove RSI logic, it has entry..
    What is TF and pair with your test ?
     
    • Funny Funny x 1
  8. Krkbtc

    Krkbtc Member Credit Hunter

    Equity
    Credit
    Ref Point
    Dear Philippe

    Where is the INDICATOR can you share the the indicator
     
  9. philippe5

    philippe5 Member Credit Hunter

    Equity
    Credit
    Ref Point
    I don't understand. The author has removed the ea on mql5:cry:
     
    • Friendly Friendly x 1
  10. philippe5

    philippe5 Member Credit Hunter

    Equity
    Credit
    Ref Point
  11. tinek36

    tinek36 Member Credit Hunter

    Equity
    Credit
    Ref Point
    same but less clutter ... easy to read
    not sure how ... on sideways go grid and follow the trend
     

    Attached Files:

    Last edited: 05 Sep 2024
    • Funny Funny x 1
  12. Serame

    Serame New Member

    Equity
    Credit
    Ref Point
    M15 M30 H1 BTCUSD and XAUUSD
     
  13. Krkbtc

    Krkbtc Member Credit Hunter

    Equity
    Credit
    Ref Point
  14. tinek36

    tinek36 Member Credit Hunter

    Equity
    Credit
    Ref Point
    amplitude 12... same as halftred amplitude 12
    XAUUSDH1.png XAUUSDH1x.png
     

    Attached Files:

    • Friendly Friendly x 1
  15. philippe5

    philippe5 Member Credit Hunter

    Equity
    Credit
    Ref Point
  16. tinek36

    tinek36 Member Credit Hunter

    Equity
    Credit
    Ref Point
    sorry ...downloaded from mt4 terminal market, but worked as `portable` on other mt4 .
     
  17. philippe5

    philippe5 Member Credit Hunter

    Equity
    Credit
    Ref Point
  18. tinek36

    tinek36 Member Credit Hunter

    Equity
    Credit
    Ref Point
    yes ..well its portable on same pc but not other ..tried
    its on the mt4 market free ...halftrend is tested and never worked :)
     
  19. Krkbtc

    Krkbtc Member Credit Hunter

    Equity
    Credit
    Ref Point

    Dear Tinek

    Trend Line pro is just like a Pipfinete Indicator and also Duty Arow is all are Same.

    And Half Trend Indicator is a Mostly Repaint Indicator
     
    • Like Like x 1
  20. Ludovic

    Ludovic Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hi , i found this EA on the forum and test it with EURUSD TF 5mn
    the periode i can test is very short so during it it seems to be good but please someone can test it under a long period to have better sample.
     

    Attached Files:

Share This Page