Automated Trendline Trader - page 3

 

Can anyone fix this EA so it work on the latest MT4 update?

Compiling 'ZZ SR TL.mq4'...

'spread' - expression on global scope not allowed C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (26, 19)

'slip' - expression on global scope not allowed C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (27, 19)

'spread' - expression on global scope not allowed C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (27, 32)

'(' - unexpected token C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (194, 39)

'(' - unexpected token C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (195, 40)

2 error(s), 3 warning(s)

 

Hi,

The links in the first post dont work.

Can someone post EA?

 
smeden:
Can anyone fix this EA so it work on the latest MT4 update?

Compiling 'ZZ SR TL.mq4'...

'spread' - expression on global scope not allowed C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (26, 19)

'slip' - expression on global scope not allowed C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (27, 19)

'spread' - expression on global scope not allowed C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (27, 32)

'(' - unexpected token C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (194, 39)

'(' - unexpected token C:\Program Files\FastFX Trader\experts\indicators\ZZ SR TL.mq4 (195, 40)

2 error(s), 3 warning(s)

Modify line 193->195 like this:

if(pres>(past+Point*1)) {

if(OrderType()==OP_BUYSTOP) {OrderDelete(OrderTicket());}

if(OrderType()==OP_SELLSTOP) {OrderDelete(OrderTicket());} }

 

Which pairs are you trading?

crepuscular:
So far I have had great results from only 2 days of testing. Somewhere around 100-200 +pips, sorry don't have exact estimates. I am trading on a 1-hour TF with the default options.

One thing I really wish this EA had was an option for a Trailing stop. I have had quite a few trades which would have closed in profit (if there were a trailing stop).

Anyone out there with the know-how that can add some code for a Trailing stop?

Thanks
 

How do you find a specific line number in the code? Or can you post the corrected EA?

Me@Home:
Modify line 193->195 like this:

if(pres>(past+Point*1)) {

if(OrderType()==OP_BUYSTOP) {OrderDelete(OrderTicket());}

if(OrderType()==OP_SELLSTOP) {OrderDelete(OrderTicket());} }

 

corrected one

robp:
How do you find a specific line number in the code? Or can you post the corrected EA?
Files:
zz_sr_tl.mq4  13 kb
 

Indicator

Can someone post the trendline indicator please to get the EA working? The links on post one don't work grrr.

Cheers,

Cal

 

Thanks. I'm now getting an error in my experts tab that says:

peterdias77:
corrected one

2007.05.16 13:57:14 Cannot open file 'C:\Program Files\MultiBank Trader\experts\indicators\ZZ SR TL Indicator.ex4' on the GBPUSD,H1

The indicator is in the indicators folder, but can't get it to work.

 

Zz Sr Tl

Got it working, still uses same indicator.

Regards

tools

 

how did you stumble across an EA's code?

I thought the ex4 file was the only one attached

seems to work but backtest works REAAAAALY slow

I'll see if I can make it get faster

besides what is it doing? It places orders and then deletes orders and then re-places the SAME orders!

all at the same minute!

Reason: