Closing orders after a specified number of bars - page 2

 

Hi, this code states in Metaeditor as error as in jpg attached. 


How to make this work as ea or indicator please?

Files:
ea.jpg  86 kb
Reason: