Download MetaTrader 5

question about structure for infinite loop

To add comments, please log in or register
Find out how to add a video in the messages editor
faustf 2016.05.18 20:22 

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  ???


faustf 2016.05.18 21:59  
i answer me  use  start 
Fernando Carreiro
Fernando Carreiro 2016.05.18 22:21  

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 2016.05.19 00:53  
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