Forum

How can I release Indicator memory (RAM)?

Hi all, My indicator runs on every chart that I open, but the problem is that the memory usage (RAM) increase madly. So I tried to free and delete all general arrays and objects of not in focus charts, using anything: ArrayFree(array_name) ArrayResize(array_name,0) ObjectsDeleteAll(EMPTY,EMPTY) but

How to calculate Trend Line values without creat the object?

Hi all, Does anyone know if there is a possibility to calculate Trend Line values without the need to create it on the chart? Thanks

CopyTicks / CopyTicksRange - function not defined

Hi All, I'm trying to use the functions CopyTicks and CopyTicksRange in my MQL4 code but get the error "function not defined" CopyTicks: https://www.mql5.com/en/docs/series/copyticks CopyTicksRange: https://www.mql5.com/en/docs/series/copyticksrange It seems that these function doesn't available in

FileIsExist return error 5002 (file not found)

I'm trying to copy a temporary .tpl file that I saved using the ChartSaveTemplate function into the Files directory. The .tpl file located in the templates directory of the Terminal directory . The problem is that I'm trying to find this .tpl file (that exists in the templates directory of my

Is there any speed difference between The Math functions formats vs their basics functions formats?

I'm trying to speed up and light up my Indicator calculations, so I'm searching some ways for that. I wonder if there is a speed difference between Math functions formats and the regular/basic formats. For Example: MathMod() vs fmod() MathCeil() vs ceil() MathFloor() vs floor() MathAbs() vs fabs()

How can I detect by my Indicator code if an Expert is placed on the chart?

I have an Indicator that displays some information panes on the Chart window and one of them is at the right top side of the chart. The problem is that when someone will attach an expert to this Chart, the Expert name and its smiley are appearing right there. So, I need one of this two options: 1