Reduce CPU use when use EA on Offline chart

 

Good evening all.


I built an EA which is used on an Offline chart. Cause it's an offline, i think the best way to force routine is use While operator. And my CPU show "terminal" = 99% used.


Can i use some functions, other of "While" maybe, to reduce CPU used?


Thanks :)

 
The EA should just return from start(). It's the offline generator that should send a tick if it doesn't already.
 

So i have to find a solution to send to the EA that a tick is arrived.

When i used the EA without "While", it runs start() function and appears to stop when finish the function. There is no rountine and not return from start() like classic chart.

 
Kane59: So i have to find a solution to send to the EA that a tick is arrived.
Your offline chart generator should already be doing that.
Reason: