royzen:
Below is my latest effort. It saves the correct filename but with no actual file
I've struggled too long with this and now I need help. Thanks.
Seems like the filename can only contain alphanumeric characters or _, so it'll work if you change this portion of your code (basically to replace ':' with '_'):
//--- Prepare a text to show on the chart and a file name string time=TimeToString(TimeLocal(),flags); StringReplace(time,":","_"); string name=(Symbol())+time+".PNG";
Seng Joo Thio:
Seems like the filename can only contain alphanumeric characters or _, so it'll work if you change this portion of your code (basically to replace ':' with '_'):
Thank you! Thank you! Thank you!
I'm a novice programer and would not have done this without help from you guyz.
Thank you so much for responding and so quick.

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
Hi.
If anyone could so kindly help me fix this mt5 code to save a screenshot with a correct filename representing the date, time and seconds the shot was taken.
At the moment this is the result I'm getting as an example.
GBPUSD1565895501.jpg
I would like something like this instead.
GBPUSD 2019 08 15 22:31:59 .jpg
Below is my latest effort. It saves the correct filename but with no actual file
I've struggled too long with this and now I need help. Thanks.