Creating objects in other charts and CPU%

 

I always use 3 charts (M3 M15 H1 of the same symbol).

I copy a part of the drawn objects into the other charts by creating them from the main chart with ObjectCreate(chart_ID,name . . .  

So far so good.

If I did this a few times the CPU usage of the MT5 increases from 2 - 3% to 25-30%.  MT5 only reacts badly.

Surprising:
I stop the EA - the CPU load remains high.
I delete the objects - the CPU load remains high.
I save the profile - quit MT5 and restart (with the saved profile) - - the CPU load is immediately high again.
I load a new profile - CPU against ebi 2-3%.

Has anyone seen this before?

 
Willbur: Has anyone seen this before?
  1. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.

    Always post all relevant code.
         How To Ask Questions The Smart Way. 2004
              Be precise and informative about your problem

    We can't see your broken code.

    With the information you've provided — we can only guess. And you haven't provided any useful information for that.

  2. I'd guess you have the same code running on all three charts. Thus, M3 code creates M15 object and the code on M15 makes the H1 object and the H1 code tries to creates the M3 object, an infinite loop.

    Verify that the other chart object already exists and break the loop.