Ickyrus:
GlobalVariables would be one way.
Declaring a variable after the extern section is accessable to all functions that follow which includes start()
Thanks, that's what I was doing. It turned out to be a double to string on write and string to double on read conversion error on my part. I initial did not decalre FILE_CSV and wrote the file by hand. So I had my EA re-write the file with FILE_CSV declared.
Works now.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a routine to read a file on init(), then would like to pass the value to start(). How can I pass this value to start()? I don't want to read the disk on every tick.