Forum

How to release memory use by build-in indicators?

How can I release the memory previously used by iRSI, iStochastic etc.? I run into memory issues when using iStochastic for 1 million bars with various settings. I think that if it was somehow possible to clean up MT4's internal memory use it would be better

Range-bound switch?

How can I do something like this better; int zero_to_hundred=x,shift; if (zero_to_hundred<= 10 ){shift= 4 ;} else { if (zero_to_hundred<= 20 ){shift= 5 ;} else { if (zero_to_hundred<= 30 ){shift= 8 ;} else { if (zero_to_hundred<= 40 ){shift= 4 ;} else { if (zero_to_hundred<= 50 ){shift= 9 ;} else {