Test for a new candle.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Its a "slow" indicator suitable for the 4H period. So for me should be enough if it gets re-started only when a new candle opens, for example, or when the user refresesh the graphic window...
After reading the documentation I didnt find the solution. https://docs.mql4.com/basis/function/events
This approximation works for me, but I want to know if exists a better way:
extern bool FlagOnlyOneExecution = true;
int start() {
if (FlagOnlyOneExecution) {
//... do the thing here ...
}
FlagOnlyOneExecution = false;
}