- How to use other price types (Median/Typical/etc) in developing a custom indicator
- Highest High from candles A to B
- Buy and sell signal notification indicator
Look in the documentation.
FileWrite and FileWriteString.
Thank you for your answer, here's what I tried to do but it doesn't work... when I compile there is no error but when I launch my strategy tester I don't see a file created with gain written in it
string gain = "GAIN";
void on start ()
{
int filehandle = FileOpen("fichier.txt", FILE_READ|FILE_WRITE|FILE_TXT|FILE_ANSI);
FileWriteString(filehandle,gain);
}
Thank you for your answer, here's what I tried to do but it doesn't work... when I compile there is no error but when I launch my strategy tester I don't see a file created with gain written in it
string gain = "GAIN";
void on start ()
{
int filehandle = FileOpen("fichier.txt", FILE_READ|FILE_WRITE|FILE_TXT|FILE_ANSI);
FileWriteString(filehandle,gain);
}
Are you looking in the correct place?
Look in the Tester folder.
all right thank you, where can I find the Tester folder please ?
File - Open Data Folder - Tester - Files.
Thank you for your answer, here's what I tried to do but it doesn't work... when I compile there is no error but when I launch my strategy tester I don't see a file created with gain written in it
string gain = "GAIN";
void on start ()
{
int filehandle = FileOpen("fichier.txt", FILE_READ|FILE_WRITE|FILE_TXT|FILE_ANSI);
FileWriteString(filehandle,gain);
}
I just realised that your code is a script.
How did you manage to open a script with the strategy tester?
You should also close the file after you have finished with it.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use