DT-ZigZag-Lauer EA v1.1

Hi guys, i have this EA, the idea is when the DT-ZigZag-Lauer changes then a new trade is initiated, blue for buy, red for sell.

The issue at the moment is that the EA opens multiple trades per indicator, it should only open one buy trade when the first blue DT-ZigZag-Lauer candle closes.

Reverse for a sell.

Can anyone modify this EA to do this ?

Thanks

DT-ZigZag-Lauer seperate indicator can be found here:

DT-ZigZag-Lauer Separate Window

I’ll take a look at it in a couple days for you when I’m off my vacation. :stuck_out_tongue:

Thanks ClarkFX much appreciated :slight_smile:

Just to clarify what the EA should do:

ENTRY:

  1. Once the candle closes with a different colour a trade is entered on the opening of the next candle
  2. There should only be one buy trade placed per set of blue bars, 1 sell trade per red bars.

Simple.

EXIT:

  1. TP is hit
  2. The candle closes with a different colour, so if we had opened a buy with a blue candle, and we have say three blue candles with no TP or SL hit and then the fouth candle closes and it is red, then we close the trade.

Im thinking of letting it trade with a trailing stop of 10 pips, looks like it could work well, but i have some other ideas to improve upon this, so just simple steps first.

Thanks

Hey ClarkFX how was your holiday, did you go anywhere nice ? Also have you had a chance to look at the EA ?

The idea i have sounds simple, so not sure if writing a new EA is easier than editing the existing one, your call on that one.

Much apprecaited.

David

Hi ClarkFX, interestingly i found a newer version of this EA (attached below). I have attached it with the best settings i think will make it most profitable, but i have not forward tested it yet.

DT-ZigZag-Lauer EA v2.zip (24.9 KB)

ClarkFX this new EA (v2) seems to do most of what i want, but not everything, its better than the one i posted above, but it still needs your expert touch when your free :slight_smile:

If the EA entered a trade (where the vertical line is, so ensuring one closed candle (yes laugh at my mistake of the second line lol). This should work nicely.


(blue = buy / red = sell), also only one trade per set of red or blue bars, so we only have one trade per set

Thanks Clark FX !!

Hi there Sandy,

I have thrown the EA on a backtester (EU-M15 with Duka Data) and it seems to never have a loss?

Am I seeing right here? Doing something wrong?

Regards

Ah I see now - standard settings have SL set to 0… No wonder…

Yep, there are losses, i just forgot to set the SL before uploading it, sorry about that. If you have any suggestions for improving it, would like to here.

What is the SL supposed to be set to if I may ask Sandy?

I’ve been playing around with 30 / 40. I have not got definitive settings as of yet, hence why an EA would be useful to test things out as this is a very simple strategy.

There are more wins than losses, so should be profitable overall, but the EA would have to be aware of repainting, so if we blue Lauer for the last 5 bars, and it comes to 1400 and suddenly the last 3 bars go red, then we don’t trade that one.

We wait for the switch between colours and one closed bar as in the screenshots above.

If you have any ideas on this would like to hear :slight_smile:

I was trying to backtest This EA but not trading can somebody help me? moreover is it repainting?

Just a note. I developed an EA a while ago using this exact indicator. Looked sooo beautiful in backtest, hardly any losses. Absolute disaster in demo. The indicator repaints, so just be careful!