Copy file indicator to other name

 

Helo,

It is possible to copy an indicator that is in the indicator folder to another file, for example


input string InpSrc="\Indicators\MyFolder\MyIndicator.ex5";      
input string InpDst="\Indicators\MyFolder\MyIndicator2.ex5";  

FileCopy(InpSrc,0,InpDst,0)


I've tried everything but I always get the same mistake

5002

Tks for help me

 

You would need to use WinAPI for that.

Native mql5 file functions are working only in the sandbox MQL5\Files. Please read the documentation.

Reason: