Page 1 of 2 12 LastLast
Results 1 to 10 of 14
 5 Attachment(s)    

Thread: Simple ZigZag EA

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

    Default Simple ZigZag EA



    Buy when upper zigzag appears, sell when lower zigzag appears.

    EU M5. Since 2007.
    Total net profit : 381.91%
    RDD : 29.98%
    Attached Images Attached Images Simple ZigZag EA-strategytester-simple-zigzag-ea-eu-m5-gif 
    Attached Files Attached Files

  2. #2

    Default Add more filters

    Hi Funyoo,

    Could you add the indicator Heiken_Ashi_Ma as a filter. Would it be also possible to add another zigzag as a confirmation signal?

    Is there any way to visually check the Zig zag, my zig zag indicator does not match up, Could you provide the zig zag indicator you using in this EA so I can put it on a chart too.

    Thanks

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

    Default

    Quote Originally Posted by matrix View Post
    Hi Funyoo,

    Could you add the indicator Heiken_Ashi_Ma as a filter. Would it be also possible to add another zigzag as a confirmation signal?

    Is there any way to visually check the Zig zag, my zig zag indicator does not match up, Could you provide the zig zag indicator you using in this EA so I can put it on a chart too.

    Thanks
    Hi matrix,

    Second zigzag and heiken ashi ma added.

    You can use the zigzag included in MT4. The zizag= lowest and highest on x bars (periods). If the highest is made on the second previous bar, we buy. If the lowest is made on the second previous bar, we sell.
    Attached Files Attached Files

  4. #4
    Junior Member
    Join Date
    Dec 2009
    Posts
    7

    Default ZigZag Pointer and Laguerre Filter

    Hi Funyoo,
    I modified extern bool oppositeclose=true and
    I added in Simple ZigZag v.1.01 piece of code
    " //|---------close

    void closebuy(){
    RefreshRates();
    if(OrdersTotal()>0){
    for(int i=OrdersTotal();i>=0;i--){
    OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
    if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderType()==OP_BUY){
    OrderClose(OrderTicket(),OrderLots(),Bid,slippage* mt);
    }
    }
    }
    }

    void closesell(){
    RefreshRates();
    if(OrdersTotal()>0){
    for(int i=OrdersTotal();i>=0;i--){
    OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
    if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderType()==OP_SELL){
    OrderClose(OrderTicket(),OrderLots(),Ask,slippage* mt);
    }
    }
    }
    } "

    Could you build another version of this EA this by adding another filter true or false

    I think "Laguerre filter" could be helpfull in this case (without take profit/stop loss (hide= true) )

    Close Sell + Buy only after ZigZag Pointer GreeArrow position on chart stable for 3-4-5 bars (as input selectable) and if price is only above Laguerre filter and then on other side and on reverse

    Close Buy + Sell only after ZigZag Pointer Red Arrow position on chart stable for 3-4-5 bars (as input selectable) and if price is only down Laguerre filter .

    Thank you very much and Happy New Year.
    Massimo

  5. #5
    Junior Member
    Join Date
    Dec 2009
    Posts
    7

    Default ZigZag EA with Laguerre filter

    Hi Funyoo
    Could you add to ZigZag Pointer EA another filter please ?

    I think "Laguerre filter" could be helpfull
    Close Sell + Buy only after ZigZag Pointer GreeArrow position on chart stable for 3-4-5 bars (as input selectable) and if price is only above Laguerre filter and then on other side and on reverse

    Close Buy + Sell only after ZigZag Pointer Red Arrow position on chart stable for 3-4-5 bars (as input selectable) and if price is only down Laguerre filter .

    Thank you very much and Happy New Year.
    Massimo

  6. #6
    Junior Member
    Join Date
    Dec 2009
    Posts
    7

    Default

    Hi funyoo,
    is it possible to have available zigzag depth, dev and backstep of zigzag indicator in ea ?

  7. #7
    Junior Member
    Join Date
    Dec 2009
    Posts
    7

    Default

    Hi funyoo,
    is it possible to have available zigzag depth, dev and backstep in ea and to add laguerre filter also ?
    Kindest regards
    max

  8. #8

    Default RSI filter

    Hi Funyoo,

    Could you please add RSI filter to the simple ZigZag EA? I think that for any EA we should never by when the RSI is above 70 and never sell when the RSI is under 30.

    Thanks!

  9. #9
    Junior Member
    Join Date
    Dec 2009
    Posts
    22

    Default

    Hi Funyoo,

    Could you be so kind to do an EA that works under these principles;

    1 Enter Buy / Sell through MA or STC cross
    2 Close Buy / Sell by Taking Profit, Trailing Profit or cross of the above.
    3 Should not trade during flat moments.
    4 Have a Time Filter allowing close during time events.This Time Filter should be for every day of the week and allow 3 close and open 3 events by day.
    5 Should have ST Loss, Trailing Stop, TS step.
    6 Have the possibility to introduce/chance the values of all the above.
    7 Should have Magic Number.

    Thanks in advance

    Luis Neves

  10. #10

    Default

    Quote Originally Posted by funyoo View Post


    Buy when upper zigzag appears, sell when lower zigzag appears.

    EU M5. Since 2007.
    Total net profit : 381.91%
    RDD : 29.98%

    Hi funyoo,

    Could you add just to the original version:

    -time filter
    -ExtDepth; ExtDeviation; ExtBackstep; for proper configuration
    -limit the trades to 1 (per swing)?

    e.g.(trade limit):

    Zig-zag up - 1 long trade only (until zig-zag down)
    Zig-zag down - 1 short trade only (until zig-zag up)


    Best regards,
    LV
    Last edited by Lordvader; 02-14-2010 at 16:01.

Similar Threads

  1. Simple ZigZag EA
    By fxtester in forum Expert advisors live statements
    Replies: 1
    Last Post: 04-14-2010, 17:25

Tags for this Thread

add, analysis, average, broker, demo, funyoo, heiken ashi, high, indicator, indicators, magic, magic number, manual, mt4, profit, profitable, resistance, rsi, signal, simple, slippage, stochastic, stop, stoploss, strategy, support, thank you, time, trailing, 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
  •