Looking for an EA - page 3

 

Hi,

i will give a manual explanation.

1 1st trade 0.1 lot buy

2 2nd trade 0.2 lot sell

3 3rd trade 0.2 lot buy

4 4th trade 0.2 lot sell

this is case in ranging market..... but markets don't range forever ....when it starts trending you are 1 lot extra in favour of the trend.

this is how it will make profit.

you can only get this when you take a trade for every cross in the direction of the cross...

hope this clarifies..

derikb:
Hi teldon,

Can you use the first EA MA without stop or exit to see when the cross happens and at what price? Copy the trades in the backtest and then show me how this will make the EA profittable.

1 2000.01.03 00:00 sell 1 0.10 102.20 0.00 0.00 0.00 10000.00

2 2000.01.03 11:45 buy 2 0.10 101.91 0.00 0.00 0.00 10000.00

3 2000.01.03 14:15 sell 3 0.10 101.59 0.00 0.00 0.00 10000.00

4 2000.01.03 18:15 buy 4 0.10 101.83 0.00 0.00 0.00 10000.00

5 2000.01.03 20:48 sell 5 0.10 101.54 0.00 0.00 0.00 10000.00

6 2000.01.03 23:45 buy 6 0.10 101.75 0.00 0.00 0.00 10000.00

7 2000.01.04 07:00 sell 7 0.10 102.10 0.00 0.00 0.00 10000.00

8 2000.01.04 08:00 buy 8 0.10 103.04 0.00 0.00 0.00 10000.00

9 2000.01.04 12:00 sell 9 0.10 102.81 0.00 0.00 0.00 10000.00

10 2000.01.04 14:15 buy 10 0.10 103.06 0.00 0.00 0.00 10000.00

You can copy 50 and demonstrate how this lot increase will make the EA profitable.

I'll then program it for you.
 

Hi,

I do understand what you want but programming it will be a problem because your equity will always lag your balance after a few trades and that is because things go wrong along the way. This method will open up trades and it will end up losing money on trades that are not profitable. That is why you see a equity curve that is lower than the balance. If you spend some time on 50 entries you will quickly realise that this is a waist of good time. I might be wrong but you can proof me wrong if you do what I asked for in my previous post. I'll be more than willing to spend some time programming it for you if it looks profitable.

Best regards

Derik

 
teldon:
Hi,

i will give a manual explanation.

1 1st trade 0.1 lot buy

2 2nd trade 0.2 lot sell

3 3rd trade 0.2 lot buy

4 4th trade 0.2 lot sell

this is case in ranging market..... but markets don't range forever ....when it starts trending you are 1 lot extra in favour of the trend.

this is how it will make profit.

you can only get this when you take a trade for every cross in the direction of the cross...

hope this clarifies..

teldon

I made small modifications of derikb's EA and I think that now it does what you wanted it to do (or maybe I have misuderstood)

Please check.

But derikb is right in the way that it will pile up losing orders and it will take extremly long to come back to positive territory.

Files:
 

thank you , i will test it, but how about higher tf and right pair of MA , so that less whipsaws.

just a thought.

 
teldon:
thank you , i will test it, but how about higher tf and right pair of MA , so that less whipsaws. just a thought.

Yes it needs to be tested. I just made a single test and it piled up up to 50 open trades before closing everything for a very small profit. So it was like you have to wait something like 3 months to get a very small profit.

But it needs to be tested with different settings and possibly different indicators.

 

we have to do 2 things to make it work.

1. we have to find MA indicators which does not cross too many times.

2. we have to implement a function which continually checks to see if we have a trade in the direction of the trend.....cause i saw that when the indiactors cross very sharply a number of times the EA cannot open some trades. The whole idea is to have at least the last oreder in the direction of the trend.....

i will be hunting for these 2 things.......

 

Just to make sure....will this EA open/close an order when the MA's I choose cross?

edit: I'm assuming it does not, because I have had crossovers and nothing happens when this ea is running. I put the ma's to 5ema and 8ema and I have an indicator that alerts me when I have a crossover, and nothing happened with the ea when that happened...so I guess I have no clue what this EA does

 

It will open trades when you have a cross but will only close when you have a profit. Itopens a trade evertime their is a cross. 0.1 lot first cross, 0.2 for every cross thereafter. You have to attach the EA to your chart and make sure their is a smilling face in the top right corner of your chart. If you want a cross of 5 and 8 period you have to set it in the EA properties.

 
saint_berzerker:
Just to make sure....will this EA open/close an order when the MA's I choose cross? edit: I'm assuming it does not, because I have had crossovers and nothing happens when this ea is running. I put the ma's to 5ema and 8ema and I have an indicator that alerts me when I have a crossover, and nothing happened with the ea when that happened...so I guess I have no clue what this EA does

which EA are you using

 
teldon:
we have to do 2 things to make it work.

1. we have to find MA indicators which does not cross too many times.

2. we have to implement a function which continually checks to see if we have a trade in the direction of the trend.....cause i saw that when the indiactors cross very sharply a number of times the EA cannot open some trades. The whole idea is to have at least the last oreder in the direction of the trend.....

i will be hunting for these 2 things.......

If you don't want a bunch of triggered orders when MA's cross too much do something like this:

MA1_0 = Current bar MA1 (your fast MA)

MA2_0 = Current bar MA2 (your slow MA)

MA1_1 = Previous bar MA1 (your fast MA 1 bar ago)

MA2_1 = Previous bar MA2 (your slow MA 1 bar ago)

if ((MA1_0 > MA2_0) && (MA1_1 < MA2_1))

{

Ordersend() Long

}

if ((MA1_0 MA2_1))

{

Ordersend() Short

}

This should prevent multiple opening and closing of orders in a short amount of time. Especially on higher time frames.

Hope this helps.

Reason: