Expert not working

 

Hi,

I created expert that writtes in file some information. It worked perfectly. I got csv file as I wanted.

Then I take a break from programming, now I got back but after I compile it don't work. In place of 10 000 rows I get only written one.

But the code stayed the same, without any changes at all.

It could be my platform error ? I tried to reinstall platform but without succes.

Is there any solution?

I added my code here, so you could check it.

Please help me out :)

Thanks

Files:
 
Probably because you placed all the codes within init(). Was it you who wrote the Codes? What exactly is it suppose to be doing again?
 
ubzen:
Probably because you placed all the codes within init(). Was it you who wrote the Codes? What exactly is it suppose to be doing again?


It has to be in initit() because I need to do all that work when EA is added to chart, not on every thick or somethink.

Yes, I wrote the code, but some ideas I gather from here. :)

 

The init seem OK, if you only need to run it once a day, and actually it runs even if the experts button is off.

Try to append some output (Print) to monitor, 1.how many times the loop runs and 2.what size the arrays are.

Reason: