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.
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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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