Tester bug: too many sub-windows

 

Hi, experimenting with EA where one indicator directly changing the setting of another, not via externals...

It do not work even with simple std indicators. Even a simple direct change of setting, see code, will cause the problem.

Seems everytime the setting is changed (every tick or bar) a new sub-window appear, there can be 10' or 100's of them... See picture.

Is there a way around this problem? I've seen it before and it happends when passing incorrect order or number of parameters to iCustom.

Maybe there is a way to force indicator reset/init after chaning the param?


  
//+------------------------------+
//| The main start function      |
//+------------------------------+  
int start()
   {
        if(Bars<100) {  Print("bars less than 100"); return(0); } 
        
        Len =  Len + 10;
        
        double wp0 = iATR(NULL,0,Len,0);

//----
Files:
Image211.jpg  205 kb
Reason: