Contest - page 18

 

Buy if:

(High[CurrentBar] < trend1 && High[CurrentBar+1] < trend2)[/CODE]

Sell if:

[CODE](Low[CurrentBar] > trend3 && Low[CurrentBar+1] > trend4)

Thus we have the following:

- buy is high of the previous bar is below trend1 and high of the bar before previous one is below trend2.

- sell if the low of the previous bar is above trend3 and the low of the bar before previous one is above trend4.

Close condition:

Stop loss and take profit.

And the following:

- before openning buy order all sell order will be closed.

- before openning sell order all buy order will be closed.

 

We see this one in the setting:

extern int HedgeLevel = 6;

extern int Step = 1;[/CODE]

I think it is more related to pending orders. For example:

ticket = OpenPendingOrder(OP_BUYSTOP,Lots,HedgeLevel+(n*Step+1),Slippage,StopLoss,TakeProfit,ExpertComment,MagicNumber,CurTime() + Expiration);

And there is this in the setting:

extern int Size = 4;

I am not sure but I think that it is maximum trades per chart.

This one:

[CODE]extern bool UseClose = true;

So, if UseClose = true so Ea will close all buy orders before placing sell and opposite. It maty be related to panding orders only, or to all sell or buy orders - I don't know sorry.

As I see this EA can open panding orders and simple orders and the code is not simple for me so may be I am mistakes in something.

 
nancy2006bj:
Newdigital,The result looks interesting.But I dont know the theory and how it work.Would help me for knowing:

1. Any link which introduce how it work? or some indicators to put to see how it work?

2.Which file I should use (or which file have this result?).

Here "https://www.forex-tsd.com/expert-analysis/5626-eas-files.html" or

here "https://www.forex-tsd.com/expert-analysis/1773-contest-6.html"?

I tried these two seperately in same broker.But it seems a little different?

Thank you very much

Nancy

Sorry nancy2006bj,

I am not a coder. So, may be my explanation on the posts above is mistaken. Because I am still not sure about what is HedgeLevel, Step and Size.

I think I am still using this version https://www.mql5.com/en/forum/general because Codersguru used this version for Metaquotes contest last year.

 

Machannel

Newdigital,anyway,thank you for the discription. I will try.

newdigital:
Sorry nancy2006bj,

I am not a coder. So, may be my explanation on the posts above is mistaken. Because I am still not sure about what is HedgeLevel, Step and Size.

I think I am still using this version https://www.mql5.com/en/forum/general because Codersguru used this version for Metaquotes contest last year.
 

Test result totally different

newdigital,my test result for Machannel in Northfinance broker is totally different with yours. Why? Thank you

 

This is attach of the test result

Files:
machannel.gif  56 kb
 

This is the result of Machannel test

Files:
machannel_1.gif  40 kb
 

I am posting ther statements for this EA in pips and you are doing it deposit cullency.

It is the statement in deposit currency. Look at this image:

When you attach this EA to the chart so I already had one open trade since 16 of November. This trade was closed in 20 of November at 11:26. And because of that I did not have your trades between 16 and 20.

Next trade was the same with you.

And I opened EA with MetaEditor amd I see in the setting the following:

NumberOfTries = 5;

As I understand from the code it is how may times EA will try to open the order.

besides I have 2 profitable orders in 23rd Of November and you are having one onle. But I did not have the order in 20th at 12:33 ....

I don't know.

This EA is not so simple as I was thinking from the beginning.

Files:
nf.jpg  44 kb
 

MaChannel EA.

H1 timeframe.

Default settings.

Forward testing results.

EURGBP:

EURUSD:

USDCHF:

 

And all 3 pairs:

Files:
Reason: