I'm developing my first EA. I would like to use an indicator main() function as a custom function in the EA.
In the indicator "int counted_bars=IndicatorCounted();" returns "the amount of bars not changed after the indicator had been launched last" (as writen in this function documentation). Then I have to test each bar.
In an EA is the amount of bars changed after the EA had been launched last always egal to 1, since the EA is launched every ticks ?
I couldn't find an equivalent function for EA, so that's my guess, as I said I'm new to EA development.
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.
Hi,
I'm developing my first EA. I would like to use an indicator main() function as a custom function in the EA.
In the indicator "int counted_bars=IndicatorCounted();" returns "the amount of bars not changed after the indicator had been launched last" (as writen in this function documentation). Then I have to test each bar.
In an EA is the amount of bars changed after the EA had been launched last always egal to 1, since the EA is launched every ticks ?
I couldn't find an equivalent function for EA, so that's my guess, as I said I'm new to EA development.
Thanks and regards,
Jean Coiron