pLEASE! helpppp!!! I ONLY WANT the alert to alert [once]. And, stops when I close the pop up window. What to do?
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Hi
As it was mentioned above simply perform function at the end of the bar, not every tick. You can use a function to detect if there is a new bar and call your function only then. For example:
void OnTick(){ if(isnewbar()){ getHammerSignal(); } } bool isnewbar(){ static datetime prevbartime = 0; if(prevbartime != iTime(_Symbol, PERIOD_CURRENT, 0)){ prevbartime = iTime(_Symbol, PERIOD_CURRENT, 0); return(true); } return(false); }
Have a nice weekend👍📊
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