Ojala EA - page 8

 
FX-Hedger:
Walaikom-Salam Brother Mohammed,

How do I compile? I've restarted the Metatrader. But no luck!!

(I put the indicator in the indicator folder and the expert in the expert folder. then restarted MTrader)!??

Salam Hedger,

To compile an EA:

1- Copy it to the MT4/expertsfolder.

2- Double click it to open with MetaEditor.

4- Press F5 in MetaEditor.

To compile an Indicator:

1- Copy it to the MT4/experts/indicators folder.

2- Double click it to open with MetaEditor.

4- Press F5 in MetaEditor.

 

Mohammed,

Very interesting EA. I added a timefilter to the EA, perhaps it might reduce down the "riskiness" of it. You can use it if you want.

I was wondering, how do you get such a good win ratio? When I turn on the indicator, I noticed that there were some losses there or do you have another filter that kicks in?

Anyhow, here is the filtered version if anyone is interested. It will only open trades during the hours specified if you turn it on.

Files:
ojala_1a.mq4  5 kb
 
holyguy7:
Mohammed,

Very interesting EA. I added a timefilter to the EA, perhaps it might reduce down the "riskiness" of it. You can use it if you want.

I was wondering, how do you get such a good win ratio? When I turn on the indicator, I noticed that there were some losses there or do you have another filter that kicks in?

Anyhow, here is the filtered version if anyone is interested. It will only open trades during the hours specified if you turn it on.

Thanks holyguy very much for your ea!

I don't use any extra filter and if I used any I have to SAY it here!

 

Hi,

I'm trying to put the SL but I always get ERROR 130 in some trades, why?

Thanks ALOT!

 
JoZo:
Hi,

I'm trying to put the SL but I always get ERROR 130 in some trades, why?

Thanks ALOT!

Hi JoZo,

130 Error means "Invalid stops" , Please modify your stop loss.

 
JoZo:
Hi,

I'm trying to put the SL but I always get ERROR 130 in some trades, why?

Thanks ALOT!

think before you ask

 
EURUSD:
think before you ask

My question wasn't for you so don't reply.

 
Mohammed:
Hi JoZo, 130 Error means "Invalid stops" , Please modify your stop loss.

I have changed the SL but I get some good trades and some errors, don't understand why.

Have changed to true and changed the SL but always the sam error.

Thanks in advance

2006.03.12 13:46:50 2006.01.02 15:14 Tester: take profit #3 at 1.1825 (1.1823 / 1.1825)

2006.03.12 13:46:50 2006.01.02 13:53 Ojala EURUSD,M15: SELL order opened : 1.1835

2006.03.12 13:46:50 2006.01.02 13:53 Ojala EURUSD,M15: open #3 sell 10.00 EURUSD at 1.1835 sl: 1.1855 tp: 1.1825 ok

2006.03.12 13:46:49 2006.01.02 13:51 Ojala EURUSD,M15: Error opening SELL order : 130

2006.03.12 13:46:49 2006.01.02 10:40 Ojala EURUSD,M15: BUY order opened : 1.1853

2006.03.12 13:46:49 2006.01.02 10:40 Ojala EURUSD,M15: open #2 buy 10.00 EURUSD at 1.1853 sl: 1.1833 tp: 1.1863 ok

 

as-salamu wa alaikum

Br Muhammed I tried to test your EA , the forward test did not happen , I tried to backtest but it gives me error 131.

please advise

thx

 

Error description

You migt want to add following code to the EA to show a short textual error description.

err=GetLastError();

Print("Error opening BUY order (",err,"): ", ErrorDescription(err));

A short description of each error can be found from the function documentation of the GetLastError() function. (Open MetaEditor and search for GetLastError...)

Aki

Reason: