Draw indicator on chart

 
From the Expert program I write a variable into a file. handle = FileOpen( "test. text",FILE_WRITE|FILE_BIN); FileWriteInteger(handle,BarsOrderOpen); FileClose(handle); This file is stored as listing.......tester files.
With icustom import I bring my indicator into the Expert program.
My indicator picks then in the Expert program from the file the variable out. int start() { int handle = FileOpen( "test.text",FILE_READ|FILE_BIN); int BarsOrderOpen=FileReadInteger(handle); FileClose( handle); } Both co-operate in the visual test well. If I apply now the indicator by hand to the Chart, then I can not see with thevisual test the indicator line in the Chart, because my indicator reads in the file the variable not out and therefore does not work.As I can reach it that the indicator applied by hand to the Chart picks the variable out from the file.

I would be pleased, if i get help .