Contest - page 18

To add comments, please log in or register
nancy2006bj
78
nancy2006bj  

Machannel

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

Sergey Golubev
Moderator
110865
Sergey Golubev  
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

First of all as I see it is written the following in the code:

bool LimitPairs = true;

bool LimitFrame = true;

int TimeFrame = 60; //Works with 1 hour timeframe only!

string LP[] = {"EURUSD","EURGBP","USDCHF"}; // add/remove the paris you want to limit.

bool Optimize = false;

int NumberOfTries = 5;

It means that this EA is for H1 timeframe and for EURUSD, EURGBP and USDCHF only. To use more pairs so we need to add more pairs in this code and compile the EA.

Sergey Golubev
Moderator
110865
Sergey Golubev  

And I see this one inside the code:

trend1 = iMA(NULL,0,LSMA,0,MODE_SMA,PRICE_LOW,CurrentBar);

trend2 = iMA(NULL,0,LSMA,0,MODE_SMA,PRICE_LOW,CurrentBar+1);

trend3 = iMA(NULL,0,USMA,0,MODE_SMA,PRICE_HIGH,CurrentBar);

trend4 = iMA(NULL,0,USMA,0,MODE_SMA,PRICE_HIGH,CurrentBar+1);[/CODE]

and

[CODE]extern int CurrentBar = 1;

extern int USMA = 10;

extern int LSMA = 8;

It means the following:

trend1 is SMA indicator with price low and period = 8 for previous bar.

trend2 is SMA indicator with price low and period = 8 for the bar before previous one.

trend3 is SMA indicator with price high and period 10 for previous bar.

trend4 is SMA indicator with price high and period 10 for the bar before previous one.

Sergey Golubev
Moderator
110865
Sergey Golubev  

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.

Sergey Golubev
Moderator
110865
Sergey Golubev  

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.

Sergey Golubev
Moderator
110865
Sergey Golubev  
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.

nancy2006bj
78
nancy2006bj  

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.
nancy2006bj
78
nancy2006bj  

Test result totally different

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

nancy2006bj
78
nancy2006bj  

This is attach of the test result

Files:
machannel.gif 56 kb
nancy2006bj
78
nancy2006bj  

This is the result of Machannel test

Files:
To add comments, please log in or register