Graphical panel - expression not boolean

 

I have working trade panel, code not giving errors but there is a warning:

1st. problem


2.problem

Recently I noticed that arrows and lines of closed trades are placed over the panel. Not such problem occured previously.


 
return(FileWriteInteger(file_handle,Pressed())>0 ? true : false);
 
Amir Yacoby #:

Thank you! Works!

Reason: