Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 79
  16 16 Attachment(s)    

Thread: 2000pips daily EA

  1. #41
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    Quote Originally Posted by XmPh View Post
    I agree and I tested live that every loop was working (as well as no code bug).
    Let me know if you think of other improvements. I think this strategy has potential. It reminds me of another "grid" strategy that I found interesting few months earlier. I will go and check if these are not "copycats" (disregarding who is what).
    Ok, here is what I'm working on (and please, let me know if something like this already exists):
    - I want to allocate a % of my available balance to this EA, whether dynamically a % of available funds, or always a given $$ value (disregarding profit/loss), or a fixed initial % of the initial balance on the first run (that is to let the EA evolve in a close loop with its own %fund available),.
    - I want this EA to stop running (and auto close open/pending orders) if drawdown reached a given threshold .... or switch Equity mode (% balance allocated) if a great amount of $$ has been cashed (or vice-versa).

    For this, I already started re-coding the function AccountBalance(), and AccountFreeMaringCheck() accordingly.

    In a first stage, I will code this in this EA directly (to basically validate everything while backtesting) ... and, in a second stage, further develop a one EA rule them all kind of thing. (considering I, like most of you, have multiple ea running at the same time).

    In a second stage, I will investigate the MACD=true while trying to add hedging to prevent margin calls during "Deep Trending" .... so hedge in a way it may recoup current losses (seems obvious on live trades, that's what I would do, so simply need to replicate that in software ... ah ah simply) --- indeed, this would not be possible for non hedging brokers where an even more complex hedging correlation would be required ... that would be final step in case everything else if working.

    The overall point .... to be able to start trading Live in a safer (as much as possible) way .... I believe in backtesting to appreciate EA behaviors and "tweaking" values according to recent markets, I believe in DemoLive testing (to see how I would react and what info I would you to "correct" something that goes wrong or say to myself ..."no, I can't believe it's doing that") .... but most probably in making Live $$ in my account .... so

    Is anyone with me on that one? Anything you know that does this already (or part of it)?

  2. #42
    Junior Member
    Join Date
    Apr 2010
    Posts
    17

    Default

    Generally I am with you. As far as I can see the TimeOut() function Funyoo included in The Channel Scalper is a pretty smart solution for closing long lasting losing trades.
    I will think about some further available modules. I can also provide immediately an automated magic no. calculator module - just for convenience.

  3. #43
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    I have almost completed step 1 coding in the EA. I only miss the option of letting one EA evolving in its own loop if assigning an initial fixed amount from balance and keep profit/loss within this assigned balance (that's what I mean by saying the EA will evolve in its own world).

    For the rest: fixed amount, dynamic % of current balance, max Drawdown .... everything is Ok with respect to my limited test I did so far. I will be releasing tomorrow. please throw in some ideas to further develop such EA management concept, or even better, throw some code .... (that's a personal comment but I'm amazed by the number of ppl asking for some "features" from Funyoo but not even trying to do it themselves ... I believe you're a really good man Funyoo ... that is why I decided to join the elite forum)

    If no ideas come around, Profitser, I will be continuing this by PM with you (of course, anytime with you Funyoo in case you are passing by).

    The code is attached to the post. Let me know. (it's rough but don't hesitate to dig in it and throw some ideas) - for the closeAll, I did re-use the code of someone else ... as explicitly said in my code.
    EquityManagement.mqh in /include
    Funyoo_2000pips daily EA v1.02_EquityManagement.mq4 in /experts
    EquityManagement.mq4 in /libraries

    And for the disbeliever, backtest on FXCM historical data since Jan.2009 (usually leading to weaker results than the one from AlpariUK) - Don't ask for .set files, try your own and look at the graph, it will already tells you lots.
    2000pips daily EA-2000_since2009-gif

    PS: timeOut() will not help recoup losses ... but limit them .... what if "deep trending" happen and trigger MaxDD or StopLoss .... a more complex mechanic has to be developed I think and it would be compatible with the concept of this EA ... not true for every strategy.

    PPS: Multi-purpose management EA: Multi-purpose trade management ea @ Forex Factory
    Last edited by XmPh; 04-25-2010 at 18:04. Reason: commenting Timout() function

  4. #44
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    Quote Originally Posted by XmPh View Post
    PS: timeOut() will not help recoup losses ... but limit them .... what if "deep trending" happen and trigger MaxDD or StopLoss .... a more complex mechanic has to be developed I think and it would be compatible with the concept of this EA ... not true for every strategy.
    Anyone with some knowledge of "Price Shocks?" ... I think this is one of the key concepts.

  5. #45

    Default

    Hi xmph

    Thank you for great work.
    You have posted 3 files can u pls tell which one goes where in the mt4 directory

    Thank you

  6. #46
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    lina28,
    edited previous post .... (remember, don't go live unless you understand the risk ... meaning the EA coding of a strategy)
    Last edited by XmPh; 04-25-2010 at 18:53.

  7. #47
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    For the brave ones, I corrected the ordermodify error 1 (not a biggy but I eventually ended up making 60$ more overall by suppressing the error, and anyways ... if you gonna go live, better be not error at all !)

    Before: OrderModify(OrderTicket(),OrderOpenPrice(),sl,tp,0 ,CLR_NONE);

    Change the if(statement) by:

    if(tp>OrderTakeProfit()+Point || tp<OrderTakeProfit()-Point ||
    sl>OrderStopLoss()+Point || sl<OrderStopLoss()-Point)


    Since 2009 @3000USD, correcting the error resulted in an additional 130$ in the end (I have to investigate if that's actually true or if I altered slightly a parameter but I do not think so): MaxDD 23.48%
    2000pips daily EA-2000_since2009_removing-error_-gif

    or maybe the good news is this: since 2009 MaxDD 35% (starting at 3000)
    2000pips daily EA-2000_since2009_removing-error-gif
    Last edited by XmPh; 04-25-2010 at 19:24. Reason: Improved results by 130$ since 2009

  8. #48

    Default

    " lina28,
    edited previous post .... (remember, don't go live unless you understand the risk ... meaning the EA coding of a strategy) "

    Thanks alot mate.

    I am trading on a live account allready with the original 2000pips ea since version 1.2 made some problems as i wrote before. i know u guys rechecked the code and found no issue but still i had problems on level 3 and 4.
    Anyway i will try your modified version and let u know.

    Thanks again

  9. #49
    Junior Member
    Join Date
    Jan 2010
    Posts
    26

    Default

    Quote Originally Posted by lina28 View Post
    "
    I am trading on a live account allready
    Thanks again
    Are you experiencing today's drawdown or are you hedging everything? (I'm going through the drawdown due to the MACD filter proposed strategy). Going Live actually really helps in improving the design of current strategy. I will make some changes and let you know.

    Is this thread dead ?

  10. #50

    Default

    kaBOOM!!! large DD today. and Yes, I was using MACD filter

Similar Threads

  1. 2000pips daily
    By fxtester in forum Expert advisors live statements
    Replies: 19
    Last Post: 08-09-2010, 23:56
  2. 2000pips daily EA
    By funyoo in forum Expert advisors live statements
    Replies: 14
    Last Post: 01-25-2010, 18:30
  3. Bar Hi Lo Daily TF EU
    By druss in forum Expert advisors backtesting
    Replies: 0
    Last Post: 04-30-2009, 03:59

Tags for this Thread

100, advisor, alpari, automatic, backtest, backtesting, broker, brokers, change, channel, closing, coding, color, copy, correlation, demo, design, ea works, eas, ecn, elite, eur, eur/usd, eurusd, fibonacci, forex, forex4you, free, grid, grid ea, hedge, hedging, high, historical, home, how to, keep profit, live, live account, low, macd, magic, main, manual, martingale, mt4, news, nyse, pips, price action, profit, real, request, resistance, scalper, simple, slippage, spread, stop, stoploss, strategies, strategy, support, system, systems, test, thank you, time, trading, trend, usd

Posting Permissions

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