Not outside of the sandbox for security reasons.
Read the second line here: https://www.mql5.com/en/docs/files![Documentation on MQL5: File Functions Documentation on MQL5: File Functions](https://c.mql5.com/36/34/documentation-on-mql5-file-function.png)
- www.mql5.com
Not outside of the sandbox for security reasons.
Read the second line here: https://www.mql5.com/en/docs/filesthank you for quick reply
so if i have multiple instances of MT5 they are all like islands w.o accessing to each others!
can you point me to a direction so i can share same file with multiple instances then?!
You could try this
![Search - MQL5.community Search - MQL5.community](https://c.mql5.com/36/34/search-mql5-community__4.png)
- www.mql5.com
Perhaps you should read the manual. Specifically the common flag.
Perhaps you should read the manual. Specifically the common flag.
not helpful
not helpful
//--- Common folder for all client terminals string common_data_path=TerminalInfoString(TERMINAL_COMMONDATA_PATH);Did you read the link ?
Did you read the link ?
i did and tried for some reason didn't work maybe due windows 10 or something i gonna change access level of windows see if it works or not
tnX
Did you read the link ?
seems any sorta path result with error
void OnStart() { string MyPath=TerminalInfoString(TERMINAL_COMMONDATA_PATH); int Handle=FileOpen(MyPath+"\\Yolo.csv",FILE_WRITE|FILE_CSV,",",CP_UTF8); FileWrite(Handle,TimeCurrent(),_Symbol,(ENUM_TIMEFRAMES)_Period,iClose(_Symbol,_Period,1)); FileFlush(Handle); FileClose(Handle); Print(MyPath+"\\Yolo.csv"); Print(GetLastError()); }
2020.04.27 05:24:01.624 CopyTrade USDCHF,H1: 5008
2020.04.27 05:24:01.624 CopyTrade USDCHF,H1: C:\Users\user1\AppData\Roaming\MetaQuotes\Terminal\Common\Yolo.csv
darn at last found why its not working
there is no need for TerminalInfoString function
just add flag of
FILE_COMMON
to FileOpen it automatically read/write file in common folder
i hope save other people time this as well
tnX everyone trying to help me out
int filehandle=FileOpen(filename,FILE_WRITE|FILE_BIN|FILE_COMMON);
![Documentation on MQL5: Checkup / TerminalInfoString Documentation on MQL5: Checkup / TerminalInfoString](https://c.mql5.com/36/35/documentation-on-mql5-checkup-termi.png)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi guys,
wondering is there anyway to use fileopen with absolute path?!
as far as i see in help document any sort of path result with error
even if it means same subfolder as using file w.o absolute address
i tried with local address & network path
same result
getting this error
Failed to open the file by the absolute path \\PC\share\yolo.csv
Error code 5002
i appreciate your help in advance
tnX