Does someone could explain difference between eachtick and complete bar ? - page 2

 
You can't define a function in another function! Functions in MQL4 can be defined on the global scope only. If you don't understand what I just said, then u definitely need to do some reading -> https://book.mql4.com/basics/functions.


Additionally, u are having problems with brace balancing... There's explanations and tips in this thread -> https://www.mql5.com/en/forum/124136.

 

Ok, I'm gonna read it carrefully .

I let you know.

Thank you for your help.

 

Hi,

I would llike to thanks cameofx, gordon and ssn for their help !

I learnt a lot by reading basics functions of mql4.

My ea is working now (in a demo account) but I have to adjust some parameters to make it more profitable. Because I doubt about metatrader backtesting accuracy, I prefer let the system work 1 month to have results close to reality. The fact I intervene on 15 minutes chart will generate enough positions I believe.

I let you know about the results.

Thanks again.

Joe

Reason: