EA is lagging a lot. Any advice would be appreciated.

 
Is there a way to debug the runtime to see exactly where in the process the EA is getting stuck on in the MetaEditor or elsewhere so I can try and modify it. Thanks in advance
 

what can cause lag:

- using too many historical bars (which aren't needed)

- using while loops that doesn't use a break statement efficiently

 
PlutoG:
Is there a way to debug the runtime to see exactly where in the process the EA is getting stuck on in the MetaEditor or elsewhere so I can try and modify it. Thanks in advance

There is the built-in profiler in MetaEditor.