Disliked{quote} First: You don't need to initialize EventSetTimer() as a variable!!! It is not a variable!!! You just initialize the function in OnInit() event. Which you have done. Second: Sleep() does not apply to indicators!!! Sleep() works only in Expert Advisors. In indicators it does nothing, because Sleep() for indicators is prohibited!!! {image} https://docs.mql4.com/common/sleep {file} {quote} Just delete that line all together! We only initialize: EventSetTimer(seconds); in OnInit(), where "seconds" can be a fixed integer, or a global...Ignored
Secondly, I didn’t ask to explain anything.
Thirdly, you don’t need to teach me what to do better
If you don’t want to or can’t help, there’s no need to pour out verbal diarrhea.
www.myfxbook.com/members/AMBASSADORFX