Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40
  26 26 Attachment(s)    

Thread: MACD Cross EA

  1. #11
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by sleepypipsCDN View Post
    Hi all, and Funyoo....

    i just discovered this thread last night. I also PM'd funyoo.

    I ran this today, and what it does, is when it has a winner, it just drops back down one notch on the multiplier. It doesn't go all the way back to the beginning, which is what I thought a true martingale does.

    for ex., with multiplier 2
    -1
    -2
    -4
    -8
    +16
    at this point , after winning at 4th double, it places the next trade at 8 lots , and goes from there again. Eventually , i think at some point, it will catch up to your account size.

    this actually works great in the course of one day. What I think would be cool is for it to reset daily, or atleast be able to manually reset it. I tried to do that by just turning the EA off, then on again, but that didn't reset back to the initial lot size.

    I also think it would be nice if it were to email/alert you if it has reached the 8th time, for example, in its doubling, so that you can decide to abort it, or set that value also in the EA.

    what do other folks think?

    best regards, good luck to all.

    ** edit**

    I have just noticed that the EA will stop executing trades when "else if((Balance+MinProfit)<AccountBalance())Lots=Lots/Multiplier" < 0.01, you see, after several successful trades, and doing "Lots/multiplier" we eventually reach 0.01/2, which is less than 1 nano lot on my demo, so the EA basically says its not possible to continue. So, just have to remove the EA and reattach to the chart again to reset it. Just FYI.
    Hi sleepypipsCDN,

    Here it is.
    Attached Files Attached Files

  2. #12

    Default awesome funyoo, thanks!

    Hey Funyoo, thanks so much for fulfilling my requests on V.3 !

    something that happened moments ago, im including a pic, the EA didn't reverse direction and got stuck in buy, going down. The macd just peeked across the zero line, triggered a close, but didn't reopen and take the opposite direction like it normally does . Is there anything we can do with code to prevent this? or is this just something we have to use a SL for?

    otherwise, thankyou very much. I've been quite pleased with it, and even using multipliers as low as 1.25 to stretch out my number of trades.....

    best regards,

    SP

    *** edit:... funyoo, i just looked inside the code to V3, I actually just got it tonight, and I see you have MANY other features that are in "comment", so they can be edited and activated. Very Cool, and one is "ReverseSystem=False".....this probably will accomplish what I was asking above. You are psychic Thanks again for this one. ***
    Attached Images Attached Images MACD Cross EA-noreverse-jpg 
    Last edited by sleepypipsCDN; 04-16-2009 at 06:49. Reason: looked inside v3

  3. #13
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by sleepypipsCDN View Post
    something that happened moments ago, im including a pic, the EA didn't reverse direction and got stuck in buy, going down. The macd just peeked across the zero line, triggered a close, but didn't reopen and take the opposite direction like it normally does . Is there anything we can do with code to prevent this? or is this just something we have to use a SL for?
    Ok, here is another version that should be ok.
    Attached Files Attached Files

  4. #14

    Default I'm back

    It's an old classic i suppose. I can't seem to give up on this one. I'm trying to make it fit.

    I noticed if lot size is 0.01, or 0.1, there is a big difference in the results, not just simply moving a decimal point. So, 0.01 gives the best chart...

    I also found that the time filter won't omit Friday unless you give it a paramter outside, like "start 23:00, stop 23:00", otherwise it will always do Fridays....

    the big spike at the end is because, when 21:00 came on a Thursday, it auto closed the open position , at lot size 0.64 (after 7 times doubling), and reopened on the Monday, 3 days later, to continue doubling until a win.

    I'm trying to code a way for, when 21:00 comes, the martingale continues until the next win, THEN it won't open anymore until 06:00 the next day. I want the martingale to play out as it normally does through the day, but not take anymore after such a time.

    I find it needs no more than 11x doubling on a 1 min, and if the sequence is broken up over a weekend, it might make trouble.

    Idea #2, would be to send an alert when there have been X # of failures. If one knew when lot size was now 5.12, for example, then there is a high probability of a win in the next 4 trades, so, one could play a standard lot. So, some sort of alert , to say that the signal has failed 10 doubles, for instance. Maybe this isn't possible. Worst case I can watch it on a demo, to fail 10 times, then place the trade....

    attached is my chart, 3 months, 1 min, TP 100, SL 100, martingale goes back to 0.01 after a win.

    anyone else interested?

    funyoo, your previous work on the other versions were great...much appreciated. Good trading to all.

    SP
    Attached Images Attached Images MACD Cross EA-testergraph-gif 
    "If you took everything I've accomplished in my life, and condensed it down to one day, it'd be decent." -- George Costanza

  5. #15

    Default I give this to the world

    Well, the search for the perfect EA is complete.

    It's still the same MACD cross, but I added options to not trade during low volatility days. ie: it doesn't trade end of the quarter, july 4 week, sept. 11 week, thanksgiving week, christmas etc.

    Also, what it does, is it multiplies by 2.25 until the account is $100 profit, then it reverts back to 0.01 lot, and does it again and again. It also only trades between 8 and 22 GMT. SL 200. MinProfit 100. Lot 0.01

    Alpari UK, 10 years 5 min data from 1999.

    Initial deposit $3000.
    Drawdown $12000
    net profit $72000
    Modelling quality 89%

    I've included EA and .set file. I don't know what else to do.

    I have mixed feelings about the EA. I should be more happy with it, but I also know that if just one parameter was changed, the chart would be completely different. I need guidance for a next step. I guess its just logical the next step is "congratulations, now go test it live", but I'm nervous. On the other hand, it is basic, nothing fancy, mostly removed low volatility time periods. For a few thousand bucks, it looks like it would make 50% per year, or $600 per month.

    What to do? Is EA building a waste of time and just for entertainment?

    SP.
    Attached Images Attached Images MACD Cross EA-testergraph1-gif 
    Attached Files Attached Files
    "If you took everything I've accomplished in my life, and condensed it down to one day, it'd be decent." -- George Costanza

  6. #16
    Junior Member
    Join Date
    Dec 2008
    Posts
    3

    Default

    Quote Originally Posted by funyoo View Post
    MACD Cross expert advisor.

    EU H4 F8 S17 M9.

    MDD : 8.11%

    Ratio : 30.57 (Profit Factor/MDD)
    Hi, everybody.
    Is it possible to make EA to close position when fast MACD crossed
    slow MACD and not reopen it, just wait for next signal?
    Please........................ and Thank you. Bay

  7. #17

    Default great work

    Guys give me some help here por favor??

    Above sleepypipsCDN states - ""attached is my chart, 3 months, 1 min, TP 100, SL 100, martingale goes back to 0.01 after a win.""

    Sounds awesome, I've been looking at it for two weeks and can't get it to go back to .01 after a win. Where is the setting or option to do that? I'm using v301. Anyone? Funyoo?? Thanks, great stuff here guys. Some fun stuff to work on, I learned a lot from this one.
    Last edited by hunter6; 06-18-2009 at 18:38. Reason: added some questions.

  8. #18

    Default why the trade time out?

    Guys, for some reason, after losing on a 6th trade (3.2 lot size) it seems to have ceased trade? Is this some kind of trade time out? I like the idea, just wonder what it is doing?

    thanks.

  9. #19
    MechXTrader
    Guest

    Default

    Is it optimized? It looks very nice.

  10. #20
    Junior Member
    Join Date
    May 2009
    Posts
    21

    Default

    i will try this luck good. thank u

Similar Threads

  1. EMA cross only
    By szmvscla in forum Ideas for expert advisors
    Replies: 7
    Last Post: 03-19-2010, 04:11
  2. MACD CROSS ZERO
    By robione in forum Ideas for expert advisors
    Replies: 6
    Last Post: 01-18-2010, 17:30
  3. EA 2 cross ema
    By il_valentino_forever in forum Ideas for expert advisors
    Replies: 1
    Last Post: 10-14-2009, 16:10
  4. Ema Cross
    By eyal in forum Expert advisors backtesting
    Replies: 0
    Last Post: 09-01-2009, 09:32
  5. MACD Cross EA
    By funyoo in forum Expert advisors live statements
    Replies: 1
    Last Post: 12-02-2008, 10:02

Tags for this Thread

100, advisor, backtesting, broker, change, color, demo, ecn, expert, expert advisor, high, how to, indicator, live, low, macd, manual, martingale, mq4, mql, mt4, profit, profit factor, profitable, renko, signal, signals, sma, stop, stoploss, strategy, system, test, thank you, time, trader, trading

Posting Permissions

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