In any case : results of my tests (used the code attached) for bar 5000 access
As of the rest : not going to go into details to explain why the above image is going to be the same for any called indicator (unless it is messed up and recalculates all the bars or the parameters are all wrong) since all that can be found in official documentation of the metatrader too. Just wanted to say thanks to all of you doing so many skillful tests that opened my eyes as of what is going on in the world of metatrader coders ... good luck guys
Code: Select all
#property indicator_chart_window
#property indicator_buffers 0
#property strict
int OnInit() { return(INIT_SUCCEEDED); }
int start()
{
ResetLastError();
ulong _timer=GetMicrosecondCount();
double _dummy = iCustom(_Symbol,_Period,"Chaos visual averages 1.43",0,5000);
int _error = GetLastError();
Comment("Test performed at : ",TimeLocal()," retrieved value : ",_dummy," possible error code ",_error," execution time : ",(GetMicrosecondCount()-_timer)/1000," ms");
return(0);
}