If you need to find out dynamically via code the file path for a cTrader indicator or cBot then follow the code below.
public string GetAlgoFilePath(this Algo algo)
{
var documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
var sourcesFolderPath = Path.Combine(documentsPath, "cAlgo", "Sources");
var algoFileName = string.Format("{0}.algo", Assembly.GetAssembly(algo.GetType()).GetName().Name);
var algoFilePath = Path.Combine(sourcesFolderPath, algo is Robot ? "Robots" : "Indicators", algoFileName);
if (!File.Exists(algoFilePath))
{
throw new FileNotFoundException("Algo file not found", algoFilePath);
}
return algoFilePath;
}