Can anyone give me a functional example?

To add comments, please log in or register
niva
210
niva  

I want an indicator can create txt file contain common information of bars, such as open, close and so on. I don't really know to handle files. Can anyone give me an example?

eli
610
eli  
niva:
I want an indicator can create txt file contain common information of bars, such as open, close and so on. I don't really know to handle files. Can anyone give me an example?

Here you go.

Files:
writecci.mq4 2 kb
niva
210
niva  

I never had chance to work with scripts, could you explain how it function.

eli
610
eli  
niva:
I never had chance to work with scripts, could you explain how it function.

Put the script in the expert/scripts directory. Compile and drag it to the chart.

You can use it as an example hot to write into a file.

in your EA or indicator INIT procedure open the file(handle variable must be global) and inside the START procedure write into the file. Close the file in the REINIT procedure.

niva
210
niva  

Totally understood.

To add comments, please log in or register