- Início
- Comunidade
- Programação
- asking about EA refresh time
Edit Your Comment
asking about EA refresh time
Membro Desde Sep 26, 2013
10 postagens
Nov 20, 2020 at 10:06
Membro Desde Sep 26, 2013
10 postagens
Hello
I am developing an expert prototype.
i have an idea but i need help.
I need to know if we can incorporate a command line so that the expert checks the data every second and no longer relies on the tik candles on the different timeframes.
that is possible ?
I am a professional trader but I am new to MQL programming
thank you
USD
Membro Desde Aug 06, 2020
3 postagens
Nov 24, 2020 at 05:16
Membro Desde Aug 06, 2020
3 postagens
//mql4
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
void OnInit()
{
while(EventSetTimer(1) != true) //set your time interval here
{
Sleep(500);
}
Print('Init OK');
}
//+------------------------------------------------------------------+
//| Timer function |
//+------------------------------------------------------------------+
void OnTimer()
{
//type your code here
}
Step by Step
Membro Desde Sep 26, 2013
10 postagens
Nov 24, 2020 at 10:18
Membro Desde Sep 26, 2013
10 postagens
Thank you soo much dhinosaurus
USD
*Não serão tolerados uso comercial ou spam. O não cumprimento desta regra poderá resultar na exclusão da conta.
Dica: Ao adicionar uma URL de imagem/youtube, você estará automaticamente incorporando-a à sua postagem!
Dica: Digite o símbolo @ para que o nome de um usuário que participe desta discussão seja completado automaticamente.