Detected Country () : English
Repeating Process By Timer - codingforex.com

Welcome to CodingForex.Com!

Knowledge portal where you can learn how to create forex indicators and robot.

Click button below to choose level that suite you:

Repeating Process By Timer

Level Beginner [2017-11-07 10:53:36] - by hillzx
Featured Image

Sometimes we need the process to be repeated over and over again continuously. We can not put the program code in the OnTick module because the OnTick module is only executed when there is a price change, the best solution is to use the Timer Object.

There are 3 modules involved in creating Timer Objects:

  1. OnInit()
  2. OnDeinit()
  3. OnTimer()

OnInit, in this module timer is initialized, here we can specify how much delay the process will be repeated. For example EventSetTime (1) means the process will be repeated every 1 second.

OnDeinit, when timer is stopped, this module will be executed.

OnTimer, write any codes here, and it will be executed continuously when timer is enabled.

timer

Timer is usually used to display the current clock / time, or count down something.

Good luck, do not forget to share and follow our official facebook and youtube, happy trading!



Previous Article

Featured Image

Accepting Input




- Provided by HiLLzSoft Studio -