Download MetaTrader 5

question about structure for infinite loop

To add comments, please log in or register
faustf
88
faustf  

hi  guy i    ,  want in my ea  control in real time a price  of  most  trade  ,  thinked , i will do with a inifnite loop , i tryed  infinite loop +  simply print price , but   MT4 ,  go little  bit  in busy , some one  have  alternative idea  for  do that  ???

thankz

faustf
88
faustf  
i answer me  use  start 
Fernando Carreiro
2233
Fernando Carreiro  

You don't need an "infinite loop". Use proper programming! The "OnTick" event (previously called "start") is already called on every tick. Orders only need to be managed when price changes during tick events.

Learn to code properly by following tutorials, reading documentation and looking at example code both in the Code Base and here on the Forum.

whroeder1
15073
whroeder1  
learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
To add comments, please log in or register