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

New EA Leviathan - Martingale & Hedge

Discussion in 'Expert Advisor atau Robot Forex' started by leviathan, 21 Jan 2019.

  1. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello,

    its not necessary. Just put indicators inside indicators folder of the MQL folder
     
  2. umar rasheed

    umar rasheed Member Credit Hunter

    Equity
    Credit
    Ref Point
    ok thanks bro
     
  3. umar rasheed

    umar rasheed Member Credit Hunter

    Equity
    Credit
    Ref Point
    how much equity required to run this ea or its run on M15
     
  4. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    equity is needed 0.01 LOT per 500 USD
     
  5. davestrike69

    davestrike69 Member Credit Hunter

    Equity
    Credit
    Ref Point
    thx for share it, will tried it
     
  6. blackking

    blackking Well-Known Member Credit Hunter

    Equity
    Credit
    Ref Point
    If ea already having 80% accuracy it will giving good trading result
    maybe impossible to getting ea with 100% accurate
     
  7. umar rasheed

    umar rasheed Member Credit Hunter

    Equity
    Credit
    Ref Point
    let check this week
     
  8. amaro

    amaro New Member

    Equity
    Credit
    Ref Point
    Hello, I tried to run this EA, but failed (well, it looks like its working, but no positions opened for the last 3-4 days (since Thrs)

    And "allow trading" shows 0 (see attached pict)

    Leviathan - I can not message you directly (some "spam issues") - but let me know if you think you would need someone to contribute to that project. You can message me here, I may be able to respond
    The idea is brilliant, I just need more details.
     

    Attached Files:

  9. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello Amaro, can you post your settings? If its not opening trades during the day, put starttime - 23 and endtime - 1. So in this case Ea will not trade 2 hours from 23 to 1. I will check the code during the weekend. I am glad that you like the idea. I send you private message

    Have a nice day
     
  10. sam wolf

    sam wolf New Member

    Equity
    Credit
    Ref Point
    HI, Great strategy indeed. I was thinking the same approach but with using the same TF. having a martingale with the last order being a hedge to protect the account as described here:
    https://soehoe.id/profitable-ea-strategy-requiring-programming.t14403/

    I tried to compile a very basic EA with my limited knowledge but the issue I find with the strategy is when the hedge order return to its opening price, the ea keeps on opening and closing the same trade due to the price fluctuation around that value.
     
  11. amaro

    amaro New Member

    Equity
    Credit
    Ref Point
    well, i just realised i might have put the indicaators in the /experts folder, not the /indicators.
    well, i start agaiin, with all set up as defined in your setfile (i changed lotsize only to 0.01 as i start with 500 equity)

    td 15, pair eu, and i keep my fingers crossed as i love the idea..
     

    Attached Files:

  12. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Hello Amaro,

    please put startime 23 and endtime 23, and it will be trading whole day. I need to fix this time filter. but anyway we need to test whole day and see how it will survive several years in backtests. the important is the probability of false signals. In the market you never know what happen, what will come so this the key. My friends are trading on binary options and they are using this approach. Its about the probability and statistics. In forex we have a SL so we need little bit adjust this approach with using martingale and hedge
     
  13. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    for hedge opening its looking for ADX , TDI, THV. THV is using H4 TF
     
  14. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Yes for sure, you can contribute. I don't need the coder but the tester. When BT will crash, we need to know why big DD occur. Why HEDGE position wasn't opened or why it was and we had DD. So we need to tune the settings or add additional filters. So every idea about adding new indicators are welcome!!!
     
  15. amaro

    amaro New Member

    Equity
    Credit
    Ref Point
    I have it on, but even with the hours set to 23-23 it hasnt traded yet (several hours since time allowance changed).
    I may have to wait (Trading_allow is set to 1 now)..
     
  16. amaro

    amaro New Member

    Equity
    Credit
    Ref Point
    Since I dont know how your EA really works (yet) let me describe what I have in mind.

    First attempt:
    Regular martingale EA, with starting lot and lot multiplier. But when in danger (described as a DD as the % of floating loss in total ballance) it headges opened positions (with lotsize equal to the total positions opened) (well, it locks the loss).
    The hedge position has sl at BE (and that sl is set after it reaches a certain amount of profit > BE point). It is to release hedge position when price returns to the required trend.
    The (positive or negative) differences in closing the hedge position (commision, slippage, fees, swap) would be recalculated in original position tp.
    The problem might appear when the hedge would be opened at reversal, that to be considered..

    Second attempt (less pairs, more risk, bigger DD):
    The EA, once run, opens 2 positions (lot is given in the settings), one long, one short. After a price moves a certain number of pips one position is closed (tp) and reopened (with starting lot), while the second is martingaled (rules to be set). There are two tp for each pair (take profit is set in settings).
    It makes little money on positions opened with trend and maringales the second one. But, the martingale systems make profit on martingaled positions, not the ones opened with a trend. That might lead to the situation where you have both initial positions martinagaled (some rise and then some drop).
    It must be secured with equity protection (hedge) in case there is a strong trend (ope position is strongly martingaled, second produces very little profit).

    Ahh, and the option "Dont open new trades" - wchich stops placing new orders AFTER all currently ongoing are "serviced". In other words no new positions are opened once tp is hit

    These are just my thoughts, let me know it it makes sense for you.
     
    Last edited: 05 Feb 2019
  17. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Yes, just wait. If Trading_allow is set to 1, its trading
     
  18. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    Thanks for your post. Basically the EA is working as you described in first scenario. When are positions in danger (4th martingale opened) it opens hedge position with high lot ( settings lot_mutliplikator_hedge), and when balance is higher than equity, it will close all positions. you can setup also SL for hedge, but it doesn't work. I tried SL 200, 300 for hedge and it only makes loss. However you can test it. All settings are available in the EA
     
  19. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    On the screen below is BT from 2014 on M15 for EURUSD. During this period the hedge position was opened 3 times. the last one was opened incorrectly, as trend returns back and blow the account. it was in April 2017 so now I tuning settings for hedge
     

    Attached Files:

  20. leviathan

    leviathan Member Credit Hunter

    Equity
    Credit
    Ref Point
    I am testing XAUUSD which has lower volatility and much stable. During the BT from 2014 it makes from 1000 USD profit 24 000!!! Check the screen. I need to eliminate DD but I am confident with EA performance.
     

    Attached Files:

Share This Page