while-loop better?

 

Hi,

I want to program an EA which is buying or sending a limit order at a defined time.

Now my question:

Is it better the EA is in a while-Loop all the time or is it better it worked with ticks?

Or to say it in another way, does it change anything in a while-Loop, because I think the brokers doesn't react, when there is no tick???


Can such an EA work at a defined second??

 
sunshineh:

Hi,

I want to program an EA which is buying or sending a limit order at a defined time.

Now my question:

Is it better the EA is in a while-Loop all the time or is it better it worked with ticks?

better with ticks

Or to say it in another way, does it change anything in a while-Loop, because I think the brokers doesn't react, when there is no tick???


Can such an EA work at a defined second??

if there is no new tick coming the EA doesn't work (but, u can fake a tick)

 

Thank you for your answer!

How can I fake a tick and why does it help me (if the tick isn't really true)??

 
sunshineh:

Thank you for your answer! How can I fake a tick and why does it help me (if the tick isn't really true)??

Here's a Tick Generator. Somehow I taught there were more on this forum but could only find that one.

Is it better the EA is in a while-Loop all the time or is it better it worked with ticks? Here's a discussion.