Is there any tools or way to detect memory leak for my EA or indicator?

 
codeidea:
like topic
Yes MT5.
 
Is there any alone tool?
 
codeidea:
Is there any alone tool?

I don't understand your request. MT5 writes in the log when there is  a memory leak, so you have to debug your code in this case.

Which message did you get ?

 

1- Run the Metatrader alone (1 chart).

2- Open Windows Task Manager and see how much memory/cpu MT5 uses.

3- Attach the EA to the opened chart.

4- Check the task manager after the EA attaching.

 

I write an indicator, when I open the MT5 , run it  , it costs 3s , 

I let it run for 1-2 days, it is cost 400s , I donot know what happened, so need some tools to help me .

 
codeidea:

I write an indicator, when I open the MT5 , run it  , it costs 3s , 

I let it run for 1-2 days, it is cost 400s , I donot know what happened, so need some tools to help me .

You can use profiler.
 

marketeer:
You can use profiler

thanks

Reason: